todo-init
todo-init
Set up the agent todos configuration for this project. Creates .agent-todos.local.json in the project root and initializes the todo store directory.
The default todo store is docs/agent-todos/ inside the project. Users with Obsidian can point todosRoot to a vault path instead.
Workflow
Step 1: Check for Existing Config
Read .agent-todos.local.json in the project root, if it exists.
If a config file is found, show the current settings and ask the user whether to reconfigure or abort.
Upgrade path — missing projectName: If the existing config is kept (user chooses not to reconfigure) but projectName is absent, ask: "Would you like to add a projectName to your config? This value is included in the projects: frontmatter of every new todo (e.g. [[my-project]])." If yes, ask for the value and write it to the config file.
Upgrade path — missing CLAUDE.md section: If the existing config is kept but no ## Agent Todos section exists in CLAUDE.md, proceed to Step 6 to add it.