Terminal guide
Use the terminal interface for conversation, workspace diffs, and approvals. To track work independently, submit a swarm task and keep its ID so you can look up progress, evidence, and results later.
Start and resume a session
Run codant from your project directory in an interactive ANSI/VT terminal. The terminal interface attempts to start the local daemon if needed. Use codant -c or codant resume to resume the most recent session, or /sessions inside the UI to browse saved sessions. Use codant --no-animation to skip the startup animation. Use codant --ascii for ASCII art and English setup, session, and approval controls.
/help lists the interactive commands supported by your build. Run codant --help for command-line options. CLI entry point and help in main · Terminal daemon startup in bootstrapDaemon
Submit a task and follow its progress
Ask questions in natural language in the current session. For work with a distinct goal, scope, or acceptance criteria, use /task with a daemon that has scheduling enabled. A task description can span multiple lines.
Start by putting workspace operations in read-only mode. Submit each of the commands below separately in Codant.
/mode planWhen Plan mode is active, submit the investigation.
/task Locate file encoding handling in the import flow and list the files, call order, and related tests.After Codant acknowledges the task, check its progress.
/antsOpen /ants to see the swarm and active tasks. Use /ants <task ID> to open a specific task. Keep the task ID returned in its receipt. If you have only the submission UUID, use /ants --submission <UUID> to find the original submission. Task commands in runSchedulerCommand · Submission receipts
Trace a task through the swarm
- In the
/antsmain view, pressmto group by caste or status. Select an ant and pressEnterto see its ID, current activity, and last active time. PressEscto return, then pressTabto open the pheromone matrix for current tasks. Select a task and pressifor its status, claimant, and the effective concentration and count of each of the five signal types. From the matrix, pressEnterto open the task. Swarm panel and keys · Matrix navigation - In the task details, check its status, parent, and attempt. Press
mfor collaboration messages and receipts,lfor the task's plan and context,hfor execution history, andwfor file results. The plan view reports confirmation and live observation status. Task details · Task plan · History and file-result keys - Open
/ants historyto find tasks that have left the current working set. Select a task, then presscfor its child task tree,Enterfor its execution records, orffor its retained file results. These queries are read-only. Working-set snapshot · Saved task catalog and keys · File-result query
Review history, evidence, and changes
| Command | What it reads |
|---|---|
/ants history | Persistent task trees, with filters such as --status and --query. |
/ants changes <task ID> | Retained file results for that task. |
/diff | The current workspace diff. |
codant task show <task ID> | Task details. |
codant task evidence <task ID> | Paginated evidence retained by the task. |
Use codant task changes <task ID> --source delivered to filter file records by their source. To read a particular entry's diff, use codant task change <task ID> <entry ID> --part diff. Other sources include writes for recorded writes and candidate for candidate changes. Task commands and pagination · File-result filter arguments
Send input while work is running
Open the shared input queue with /queue. Before sending the next message, choose how to send it with /queue mode <mode>.
| Mode | Behavior |
|---|---|
queue | Queue the message until the current work yields. |
steer | Send guidance to the task currently shown in the interface. |
interrupt-send | Request a stop for the displayed task, then prioritize the new input. |
If submission is unconfirmed, look up the original request using the displayed submission UUID or task ID. From the command line, use codant task show --submission <UUID>. When a turn is running with no overlay open, press Esc to request an interruption. Afterward, check the task and workspace diff for operations that have already run. Queue modes in useQueueMode · Keyboard handling · Original submission lookup
Run from a script
codant exec runs a single prompt. Use --mode plan for read-only investigation. With --json, stdout carries JSONL receipts, bounded events, and a final result. Diagnostics go to stderr. A script can inspect the process exit status for the run's outcome.
codant exec --mode plan --json "Identify the repository entry point and test directories."Use codant hunt to submit a swarm task from the command line. Choose an answer deliverable with --answer. For a task that produces file results, select a configured trusted check with --check <check ID>. Non-interactive CLI options · Hunt arguments
Guide overview · Shared tasks and pheromones · Local stdio integration
