BLACKOUT STAGE OFFLINE ANTS 0 CHECKED 0
CODANT v0.0.1 · LOCAL CODING AGENTS

Share the work
Keep the evidence

Codant is a local execution harness we designed for swarm coding agents. The initial release brings task claims, pheromone-guided dispatch, isolated execution, and verifiable delivery into one workflow you can run and trace in the terminal. It is a minimal implementation of swarm coordination.

Quickstart →
$codant
The Codant mascot, a red and orange ant holding a code placard
COORDINATION Task board · pheromone bus
CASTES Queen · Scout · Worker · Soldier · Nurse
CLIENTS Terminal UI · VS Code (experimental) · Custom clients
01 // ARCHITECTURE

How the swarm completes a task

Workers can propose scoped subtasks as they run. The daemon uses task signals, model budgets, available capacity, and file reservations to decide which work starts and which work queues. Follow the handoffs and results in the same task tree. Follow a real hunt from request to delivery → Read the Codant source guide →

01 / STIGMERGY BUS

Share findings on the task board

The pheromone bus is the swarm’s shared blackboard. It carries trail, intent, doubt, alarm, and success signals. For a claimed task, the daemon checks the agent and claim generation against the lease.

02 / CASTE ROLES

Five built-in roles

Queens manage the agent lifecycle, scouts investigate, workers make changes, soldiers review candidate diffs, and nurses maintain session memory.

03 / SWARM HUNT

Split work by scope and verify the results

Subtasks with disjoint write scopes can run in parallel when budget and capacity allow. Their changes form a candidate. A soldier reviews the diff, the daemon runs the selected checks against that candidate, and then requests approval to write it back.

04 / LOCAL RUNTIME

Keep task state in a local daemon

The daemon maintains tasks, sessions, and events. Queue new input or steer an active task, then inspect history, results, and acceptance evidence from the terminal.

02 // TERMINAL & IDE

Many clients, one local daemon

The built-in TUI and experimental VS Code panel can use the same daemon. Custom TUIs and desktop tools can read tasks and subscribe to events over stdio JSON-RPC. The official standalone GUI is pending release.

Terminal UI CODANT SHELL
# Start from your project directory
codant

# Inside the terminal UI
/model setup
/task Find where import and export set their default encodings
/ants
/diff
VS Code and local API LOCAL DAEMON
# Start the local bridge for the experimental VS Code panel
codant serve --ide
# Select the returned IDE bridge record in the panel

# Connect a stdio client to the running daemon
codant bridge
# Equivalent command: codant serve --stdio
ARCHITECTURE & SIMULATION

Design

Codant began with a question. Could the way ant colonies cooperate inform coding agents? We built caste roles, task claims, and a pheromone blackboard into our own harness so investigation, edits, review, and memory can build on the same task tree. The initial release implements that workflow and gives us a foundation for further work on coordination.

01 // STIGMERGY SIMULATION

Decentralized coordination and the pheromone bus

The animations compare centralized dispatch with pheromone-based coordination. Adjust the decay or agent count, then simulate an outage. Counts, latency, and the decay slider are simulation parameters.

Let agents hand off work

Workers can propose scoped subtasks. Findings and candidate changes return to the same task tree, where other roles can pick up the work. One local daemon checks capacity, model budgets, write scopes, and claim leases. Both the terminal and VS Code see the same task state.

Apply ACO’s pheromone ideas to tasks

Inspired by the trails and feedback of ant colony optimization (ACO), Codant records clues on task cards. A success can leave a trail, and a failure can leave doubt. These signals influence later dispatch. A signal drops out of the effective concentration at expiry, and the scheduler checks thresholds and runtime conditions before dispatching work.

Read about the ACO inspiration →
CENTRAL MASTER QUEUING
MERGED 0 LATENCY 140ms
SWARM STIGMERGY CONVERGED
MERGED 0 ENTROPY 32%
02 // CASTES & ROLES

Five built-in roles and a hunt formation

Select a caste to see its work, idle, and blueprint poses. Each role has its own responsibilities and tools. Scores and logs use demo data.

WORKER-IO CORE CARRIER

Worker

RECORDTask card · candidate diff
ROLEAuthorized changes
Queen
Manages agent lifecycles by registering, canceling, and reclaiming instances.
Scout
Finds code and tests with read-only tools and returns findings to the parent task.
Worker
Makes authorized changes, delegates scoped subtasks when needed, and returns results.
Soldier
Reviews candidate diffs in a separate context and records structured findings.
Nurse
Extracts and consolidates reusable memory from completed tasks and sessions.
Read about caste tools and permissions →
03 // SWARM HUNT SIMULATION

The army-ant formation and the swarm hunt

The army-ant formation in the animation brings the existing castes together. In the runtime, independent subtasks can run in parallel, siblings with overlapping write scopes queue, and active alarms reduce concurrency. The resulting changes become a candidate diff. A soldier reviews it and the daemon runs the selected checks on the same candidate.

RECON Scout

Codant’s design innovations

Use pheromone signals in dispatch

Findings can change the stimulus used for dispatch, and active alarms can reduce concurrency. Expired signals drop out of scheduling calculations, while unresolved alarms can still block acceptance.

Read the signal and dispatch rules →

Keep parallel work within its scope

Workers propose scoped subtasks. The runtime checks write conflicts and the root task’s model budget to decide which subtasks can run together and which must queue.

Read the concurrency and delegation limits →

Validate a single candidate throughout

The soldier reviews the diff, and the runtime runs trusted checks against the same candidate. Publication approval is bound to this change, and the runtime rechecks the candidate and target against the original plan before applying it.

Follow the evidence from candidate to delivery →

Keep interrupted work traceable

When an action’s outcome cannot be confirmed, the daemon keeps the original task and action records. Restart recovery retires stale leases and preserves unknown outcome receipts so you can inspect the original task.

Read about failure and recovery →
PROJECT & COMMUNITY

Community

Codant is an independent open-source project developed by an individual for non-commercial, non-profit purposes.Read about the project and its license →

Codant Feishu group

Discuss using, designing, and developing Codant on Feishu.

SOURCEAPACHE-2.0

Codant source

The product repository will host the source for the CLI, terminal UI, daemon protocol, and VS Code extension.

RELEASEv0.0.1

Installers and checksums

Find the Windows x64 MSI, Linux x64 archive, and SHA-256 checksums on GitHub Releases.

View the release →
FEEDBACKGITHUB ISSUES

Product feedback

Include the Codant version, operating system and architecture, reproduction steps, and redacted diagnostics.

Product issues →
WEBSITEGITHUB

Website repository

Track website changes and report problems with documentation, links, or demos.

View the website repository →

Try it on your project

Follow the quickstart in your terminal or connect the experimental VS Code panel.

Quickstart →