Skip to content
Website ↗

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.

text
/mode plan

When Plan mode is active, submit the investigation.

text
/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.

text
/ants

Open /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 ​

  1. In the /ants main view, press m to group by caste or status. Select an ant and press Enter to see its ID, current activity, and last active time. Press Esc to return, then press Tab to open the pheromone matrix for current tasks. Select a task and press i for its status, claimant, and the effective concentration and count of each of the five signal types. From the matrix, press Enter to open the task. Swarm panel and keys · Matrix navigation
  2. In the task details, check its status, parent, and attempt. Press m for collaboration messages and receipts, l for the task's plan and context, h for execution history, and w for file results. The plan view reports confirmation and live observation status. Task details · Task plan · History and file-result keys
  3. Open /ants history to find tasks that have left the current working set. Select a task, then press c for its child task tree, Enter for its execution records, or f for 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 ​

CommandWhat it reads
/ants historyPersistent task trees, with filters such as --status and --query.
/ants changes <task ID>Retained file results for that task.
/diffThe 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>.

ModeBehavior
queueQueue the message until the current work yields.
steerSend guidance to the task currently shown in the interface.
interrupt-sendRequest 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.

sh
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