Repository navigation
t3 thread: add archive, settle, and delete subcommands
#27428
Replies: 7 comments 1 reply
|
We built this (and a bit past it) on a fork, so consolidating here rather than in a second thread β I opened #27972 a day after this one before finding it. Branch: https://github.com/dmitryrechkin/t3code/tree/feat/plat-240-cli-commands (on top of What it does, and how it maps to the tools that already exist:
On delete: I left it out for the reason you give β no MCP tool exposes One small server change came with it: Focused tests: 34 in Not upstreamed yet β waiting on approval, per CONTRIBUTING. |
|
was going to do the same, it's useful for me |
|
+1, and two additions that matter once a script has to clear more than a handful of threads.
|
|
+1 from a recurring-automation angle. I run a scheduled job that polls for pull requests assigned to me for review and starts a T3 thread for each new one. The agent posts its review, writes a report, and finishes. The thread stays, so by the end of the day the sidebar holds a few dozen of them next to my actual work. Settle and archive move them out of sight, but I don't open these threads again and want them gone. The only route I found today is the one the web app uses: send a Two parts of the proposal would replace that workaround:
|
|
Note Written by Claude Opus 5.5 on behalf of nerophon. +1 for |
|
Note Written by Claude Opus 5.5 on behalf of Averus89. +1, with one more reason a CLI command is needed: the usual workaround does not work for full-access threads. We run an orchestrator on a separate machine. It uses What we do now:
|
|
+1 for t3 thread delete (and a delete action in t3_thread_organize). Ran into this during a cleanup across tools: Codex and Hermes both expose CLI delete commands, while T3 has no CLI or MCP way to delete archived threads once they're cleared, leaving only manual one-by-one deletion in the UI. A bulk form or --archived filter would make cleanup scripts straightforward without touching the live SQLite DB. |
Uh oh!
There was an error while loading. Please reload this page.
t3 threadcanlist/start/send/show, so scripts and outside orchestrators can create threads but can't clean them up. Bots that run many jobs leave dozens of finished threads behind (see also #27117, one auth session per call).cli/thread.tsalready opens an MCP session to/mcp, andt3_thread_organizesupportssettle | archive | unarchive(and pin/snooze). Proposal:The first three map directly to
t3_thread_organize. Delete currently has no MCP tool (only thethread.deleteorchestration command), so this needs either at3_thread_deletetool (or adeleteaction) requiringorchestration:operate, or delete stays out of scope. Exit non-zero on active turns, consistent with #23451. Settle/archive of an active thread should error instead of breaking the turn (#15135).All reactions