Skip to content
Website ↗

Quickstart ​

Run Codant in a project directory, configure a model, and submit a read-only task. The terminal shows the task's progress and the swarm's work.

Install the 0.0.1 preview ​

The preview has installers for Windows 10/11 x64 and Linux x64. The release page includes both installers and a SHA256SUMS file.

Windows x64 ​

The installer targets Windows 10 x64 version 1809 or later and Windows 11 x64. Download Codant-Windows-x64.msi. In your download directory, calculate its SHA-256 hash and compare it with the matching entry in SHA256SUMS.

powershell
Get-FileHash -Algorithm SHA256 -LiteralPath .\Codant-Windows-x64.msi

Run the MSI, then open a new terminal. Follow the first-launch prompts to set up the local sandbox. Windows may ask for administrator confirmation. Windows installation notes

Linux x64 ​

Download codant-linux-x64.tar.gz and compare its SHA-256 hash with the matching entry in SHA256SUMS. Then extract the archive.

sh
sha256sum codant-linux-x64.tar.gz
tar -xzf codant-linux-x64.tar.gz

Open the directory containing install.sh, run the installer, and follow the prompts to update PATH. The installer uses the Node runtime bundled in the archive. Linux installer source

sh
sh install.sh

Verify the installation ​

Check the version in a new terminal. If your shell cannot find codant, check that the installer’s command directory is on PATH.

sh
codant --version

Build from source ​

The repository provides source build entry points for Windows, Linux, and macOS. Use Node.js 22.23.4 and pnpm 10.34.5. Run these commands from the Codant checkout. Project build instructions

sh
pnpm install --frozen-lockfile
pnpm build
pnpm codant --version

Run pnpm build:native with Rust 1.95.0 and your platform’s build tools to build native helpers. Windows x64 also needs the pinned Git/WASI inputs listed in the manifest. With the native helpers ready and Bun on PATH, run pnpm build:binary to build a standalone program. Native build instructions · Windows build inputs

Start the terminal and configure a model ​

Open an interactive ANSI/VT terminal, such as Windows Terminal, in the Git repository you want to inspect. Run codant for an installed copy. For a source build, replace the example path below with the absolute path to your built entry point. CLI entry point · Running from source

sh
node "/absolute/path/to/codant/packages/cli/dist/index.js"

Enter /model setup in Codant. Configure the provider and credentials, select a model, and choose Run the connection checks. Once the checks pass, set the alias and default model option, then choose Save the tested configuration. Wait for the save result before continuing. Model configuration guide · Wizard options in source

text
/model setup

Codant defaults to Chinese in a regular interactive terminal. Use codant --ascii for ASCII art and English setup, session, and approval controls. Some daemon messages keep their original language. Press Ctrl+L inside the model setup wizard to switch its language. Classic CMD on English Windows may select English ASCII mode automatically. Terminal options · Setup wizard labels · Windows installer notes

The experimental VS Code extension currently uses Chinese panel labels. The repository guide covers building and installing the VSIX locally and connecting it to the same Codant daemon. VS Code extension guide

Submit your first read-only task ​

Enter these commands one at a time in Codant. /mode plan puts workspace operations in read-only mode. The example asks for an entry point, call paths, and related tests you can check in the repository. Permission modes

text
/mode plan

When Plan mode is active, submit the investigation.

text
/task Find the entry point of this project and list its main call paths and related tests.

After Codant acknowledges the task, open the swarm panel.

text
/ants

/ants shows agents and task progress. Use /ants <task ID> to inspect a specific task once you have its ID. Task commands

Codant's terminal swarm panel showing example tasks, agent roles, and pheromone levels

Codant's terminal swarm panel with demo data.

CommandPurpose
/task <goal and acceptance criteria>Submit a task you want to track.
/ants changes <task ID>Review the file changes recorded for a task.
/diffInspect the current workspace diff.
/sessions, /resumeBrowse or resume sessions.
/helpList terminal commands supported by your build.

Continue reading ​