todo_write)This document describes the todo_write tool for Ollama Code.
Use todo_write to create and manage a structured task list for your current coding session. This tool helps the AI assistant track progress and organize complex tasks, providing you with visibility into what work is being performed.
todo_write takes one argument:
todos (array, required): An array of todo items, where each item contains:
content (string, required): The description of the task.status (string, required): The current status (pending, in_progress, or completed).activeForm (string, required): The present continuous form describing what is being done (e.g., “Running tests”, “Building the project”).todo_write with Ollama CodeThe AI assistant will automatically use this tool when working on complex, multi-step tasks. You don’t need to explicitly request it, but you can ask the assistant to create a todo list if you want to see the planned approach for your request.
The tool stores todo lists in your home directory (~/.ollama-code/todos/) with session-specific files, so each coding session maintains its own task list.
The assistant uses todo_write for:
The assistant will not use this tool for simple, single-step tasks or purely informational requests.
todo_write examplesCreating a feature implementation plan:
todo_write(todos=[
{
"content": "Create user preferences model",
"status": "pending",
"activeForm": "Creating user preferences model"
},
{
"content": "Add API endpoints for preferences",
"status": "pending",
"activeForm": "Adding API endpoints for preferences"
},
{
"content": "Implement frontend components",
"status": "pending",
"activeForm": "Implementing frontend components"
}
])