The /newtask Command
/newtask is a built-in slash command that summarizes the current conversation and opens a new task with that context. Use it when you want to start a clean session while keeping the key information about what has been done.
How It Works
Section titled “How It Works”When you type /newtask in the chat input:
- The command is handled directly in the request loop — no additional model call is made to analyze the command.
- Kodik summarizes the full history of the current conversation. The summary is generated using the same structured template as automatic summarization (goal, progress, key decisions, next steps, relevant files, etc.).
- The summary is passed as context to the new task.
- A new task is opened. The new conversation starts with the prepared summary — the model immediately knows what was done previously.
If there are too few messages in the history to summarize, Kodik will notify you and no new task will be created.
Workspace Modes
Section titled “Workspace Modes”When creating a new task programmatically (not through the UI), a workspace mode can be specified: local (normal working directory) or worktree (git worktree). In the chat UI, /newtask always creates a task in the current workspace.
Usage Example
Section titled “Usage Example”When the context window is full and you want to start the next part of your project with a clean slate, type /newtask. Kodik will compress everything important into a summary, and the new task will begin with full understanding of what has been done.
Unlike /compact, /newtask creates a new, separate task. This is useful when the old conversation is exhausted and you are moving on to the next phase of work.