Repository navigation
v0.2.0
t3code can now work with threads that already exist. Before, it could only start new ones.
Existing threads
threads listfinds threads by project, folder, or status.threads inspectshows a thread's workspace, branch, model, turn count, context use, and any approval or question it waits on.threads readprints the transcript grouped by turn.--detail answers|messages|full,--turns,--first-turn, and--max-charsset how much it returns.threads sendstarts a turn from--prompt,--prompt-file, or--stdin. It succeeds only once T3 shows the message. Add--waitto wait for the turn that handles it and print the reply.threads waitwaits for whatever the thread is running.threads sendrefuses a busy thread withTHREAD_BUSYand sends nothing. Pass--if-busy injectto send into the running turn. Sending to a settled thread asks for confirmation, or--wake-settledin scripts and JSON mode. Archived threads are rejected.threads setchanges a thread's model, thinking effort, speed, other model options, permission, and plan mode.threads sendtakes the same flags. The CLI checks each value against T3's model catalog, whichmodels listprints.threads interrupt,approve,decline, andansweract on a running turn and on pending approvals and questions.threads settleandthreads unsettlechange settlement without starting a turn.
Thread commands exit with 3 for a missing thread, 4 for a lifecycle or confirmation refusal, 5 when T3 accepted the request but the CLI could not verify the turn, and 6 when a wait timed out.
Agent skills
The package ships a second skill, skills/t3thread. $t3thread <thread-id> <instruction> points an agent at an existing thread. It can brief you on the thread, answer questions about it, continue or review its work, or message it and wait for the reply. The use-t3code-cli skill covers the new commands.
Changes to existing behavior
Usage errors, such as a missing required option, now exit with code 2 and the code INVALID_USAGE. With --json they print the usual error envelope. In 0.1.3 they printed commander's plain text and exited with 1. The JSON envelope is otherwise unchanged, and the new commands only add fields and error codes.
0.1.3 never reached npm because its publish job failed. This release includes its fixes, listed under v0.1.3.
Thanks to @mhmdkhalaf for the first thread messaging commands (#1), and to @jarekbird for the busy-thread proposal (#2).