Skip to content

Commit c0a2668

Browse files
committed
feature: add /clear guidance before /cat:work in Next Steps
Users should clear context before starting a new task to avoid context pollution from previous work. Changes: - status_handler.py: NEXT STEPS table shows "/clear then /cat:work" - work_handler.py: Task complete box shows "/clear then /cat:work"
1 parent 91a5ee7 commit c0a2668

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

plugin/hooks/skill_handlers/status_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ def handle(self, context: dict) -> str | None:
535535
NEXT STEPS table:
536536
| Option | Action | Command |
537537
|--------|--------|---------|
538-
| [**1**] | Execute a task | `/cat:work {active_minor}-<task-name>` |
538+
| [**1**] | Execute a task | `/clear` then `/cat:work {active_minor}-<task-name>` |
539539
| [**2**] | Add new task | `/cat:add` |
540540
541541
Legend: ☑️ Completed · 🔄 In Progress · 🔳 Pending · 🚫 Blocked · 🚧 Gate Waiting

plugin/hooks/skill_handlers/work_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def _build_task_complete_low_trust(self) -> str:
115115
"**Next Up:** {next-task-name}",
116116
"{goal from PLAN.md}",
117117
"",
118-
"`/cat:work` to continue",
118+
"`/clear` then `/cat:work` to continue",
119119
]
120120

121121
footer_content = [""]

0 commit comments

Comments
 (0)