Skip to content
Website ↗

What is Codant? ​

Codant is a personal project for coding with a swarm of agents. The first preview starts at the CLI. Run codant from a project directory to open the terminal UI, submit a task, and inspect the result. Codant has its own local agent harness. The daemon receives tasks, manages claims and execution permissions, and records candidate changes, acceptance checks, and delivery outcomes. Source guide

What to try with the swarm ​

GoalExample taskWhat you can inspect
Understand unfamiliar codeFind the file-import entry point, call path, and existing tests. Ask for file locations and start in plan mode.Findings, code locations, and test entry points.
Change behavior across filesDefault import and export to UTF-8 and preserve explicit overrides.Subtask scopes, the combined candidate diff, and selected checks.
Connect your own local toolComplete the stdio handshake, then try a read-only query based on the capabilities returned for that connection.Initialization result, request IDs, line-delimited replies, and available event subscriptions.

Follow these paths in Terminal tasks and sessions, Run a hunt with a trusted check, and stdio integration. The source entry points are packages/api/src/scout-task-executor.ts and packages/api/src/protocol-initialization.ts.

Why divide the work? ​

A cross-file task often involves several kinds of work. Scouts narrow the investigation with read-only tools, and workers make changes within the granted scope. When a candidate diff needs review, a soldier examines it in a separate model context. The queen manages agent lifecycles, and nurses extract reusable memory in the background from finished tasks and sessions. The runtime selects a path based on task type and configuration, so a single task may use only some of the roles. Castes and their tools · Hunt execution and validation in the source

Take the default encoding change. If the task is split into separate edits to import-options.json and export-options.json, the declared file scopes are independent and the subtasks can run in parallel when dispatch conditions are met. If both subtasks also need to edit the same test file, the second queues while the first holds that write scope. Task cards record goals and dependencies. The lease records who claimed a card and the claim generation. A finished subtask can leave a trail signal about progress. Completion depends on acceptance evidence for the current generation and the state of its dependencies. See schedule in packages/core/src/ant/scheduler.ts and stageCompletion in packages/core/src/bus/lease-commands.ts.

In a real run, use codant task show TASK_ID to inspect task state and recorded dispatch decisions. Use codant task evidence TASK_ID to check the candidate review and validation evidence. Whether the model splits a task depends on the work. Follow a hunt from change to evidence

What does “decentralized” mean here? ​

Decentralization describes how agents collaborate. Workers can request bounded delegation. Task records, findings, and results live on the bus, where other roles can pick them up. The local daemon maintains state and enforces execution rules, using a runtime lock for each data directory. The terminal and IDE observe tasks through that daemon. See PheromoneBus in packages/core/src/bus/bus.ts and startDaemon in packages/api/src/daemon.ts.

Follow the quickstart for a read-only first task. Then read The five castes for each role's tools, Pheromone bus and scheduling for how signals influence dispatch, or Swarm communication and project memory for directed messages and memory across sessions.

Versions and availability ​

How you run itAvailability and entry point
Packaged v0.0.1 previewWindows 10/11 x64 uses an MSI. Linux x64 uses an archive. Run codant from your project directory to open the terminal UI. Install the preview
Build from sourceThe repository has build entry points for Windows, Linux, and macOS. Run the built CLI and use the checkout to verify architecture and interface behavior. Build steps · Source guide
Custom terminal UI (TUI)Use codant bridge to send JSON-RPC requests over stdio to the same local daemon. stdio integration
Experimental VS Code extensionUse a local VSIX and codant serve --ide to connect to the local daemon. The manifest requires VS Code ^1.113.0. VS Code integration
Standalone official GUIPending release.

Run codant --version to identify the CLI you are running. When integrating, use serverVersion, protocolVersion, and capabilities from daemon/initialize to check the interfaces available on the current connection. Initialization and capability negotiation