[PR #6642] feat: add /todo slash command #12016

Closed
opened 2026-02-16 18:16:57 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/6642

State: closed
Merged: No


Summary

Changes

  • Add packages/opencode/src/command/template/todo.txt - New prompt template
  • Modify packages/opencode/src/command/index.ts - Register the command

Usage

# Add items
/todo check error handling in auth module
/todo 1. fix tests 2. update docs

# Complete items
/todo done auth-error

# Cancel items  
/todo cancel old-task

# List items
/todo list
/todo

The key feature is that the agent will process the todo command and immediately resume previous work without context switching, addressing the core request in #4134.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/6642 **State:** closed **Merged:** No --- ## Summary - Adds `/todo` built-in slash command to manage the session todo list without interrupting current work - Closes #4134 ## Changes - Add `packages/opencode/src/command/template/todo.txt` - New prompt template - Modify `packages/opencode/src/command/index.ts` - Register the command ## Usage ```bash # Add items /todo check error handling in auth module /todo 1. fix tests 2. update docs # Complete items /todo done auth-error # Cancel items /todo cancel old-task # List items /todo list /todo ``` The key feature is that the agent will process the todo command and **immediately resume previous work** without context switching, addressing the core request in #4134.
yindo added the pull-request label 2026-02-16 18:16:57 -05:00
yindo closed this issue 2026-02-16 18:16:57 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12016