Swarm communication and project memory
During a task, agents can leave pheromone signals that inform scheduling and send specific questions to collaborators in the same task tree. After a task or session ends, a Nurse can extract lessons from work with verifiable records for later use in the same project. The five castes · Pheromone bus
When to use signals, mail, and memory
| Mechanism | Purpose | Example |
|---|---|---|
| Pheromone bus | Leave signals on a task card with a strength and expiration so the scheduler can account for them | A Scout records a trail after making progress on an investigation. |
| Task mailbox | Send text to a specific authorized task and retain acceptance and delivery evidence | One running subtask tells a running sibling which entry file it found. |
| Project memory | Extract reusable information from verified work for retrieval in later sessions or tasks | Capture the project's testing convention for the import flow. |
Message a collaborator in the same task tree
An execution with collaboration tools enabled can use list_collaborators to see its direct parent, direct children, and siblings in the same task tree. The list shows whether each target can currently receive a message. send_message queues up to 4 KiB of UTF-8 text by task ID. Sending authority is bound to the active lease and generation. Queued mail waits for the original recipient's own execution flow and carries no user authorization. Collaboration tool definitions · Target and sender checks
A send uses a UUID as its requestId. In the same sender generation, resubmitting the same ID, target, and body returns the original record. Changing the target or body is refused. Use message_receipt to query the original result. If the original recipient cannot receive the message, the receipt shows recipient-unavailable, and the text remains in the task evidence. Check the following stages to see how far the message reached. Sending and receipt lookup
| Receipt stage | What it confirms |
|---|---|
accepted | The original message has been stored in collaboration evidence. Queue delivery may still be unconfirmed. |
queued | The message entered the original recipient's mailbox queue. |
recorded | The message was saved in the recipient's original history. |
model-request | An actual model request included some or all of the message, and the original response was saved. The receipt shows the visible and total bytes. |
When a subtask ends, the daemon can also use the mailbox to register a terminal notice for its direct parent. If the parent's original execution has ended, the notice stays in task evidence. The task card and delivery records retain the subtask's acceptance and results. Terminal notice handling
To inspect a submitted task, open /ants <task ID> in the terminal UI and press m for Collaboration. A script can read the root task's original evidence with codant task evidence <root task ID>. After a model receipt appears, check the actual work against the execution and delivery acceptance criteria. Delivery and history confirmation · Receipt fields and evidence command · Task detail shortcuts
How Nurses create project memory
The daemon schedules background memory jobs from eligible terminal task records and exited sessions. The pipeline verifies the source identity and version, builds a bounded view of the records, and asks a model to extract candidates. Candidates become memory cards after consolidation and commit. The pipeline rechecks the source and scope before committing. Memory work has its own evidence and result, while the delivery workflow remains the source of the original task acceptance. Task and session scheduling · Task memory processing · Extraction and consolidation
Automatically extracted memory is scoped to its source project. Codant normally uses the exact resolved workspace path. On Windows, differently spelled paths can share a scope when Codant verifies that they refer to the same local directory. The original session or task also needs evidence for that shared scope. Otherwise, new candidates stay in the exact-path scope. A direct child of the root task must additionally pass checks on the original delegation, parent history, child acceptance, and artifact evidence before using the shared scope. A second clone in a different directory has its own project scope. Directory scope calculation · Session scope verification · Child task source verifier
Browse, save, or disable memory
Enter these commands individually in the Codant terminal UI. Memory switches apply to all connections to the current daemon and persist across restarts. Terminal memory commands · Browsing and manual saves
| Action | Command |
|---|---|
| Browse current project, user, or all memory cards | /memory project, /memory user, /memory all |
| Save a project convention | /remember <text> |
| Save a personal preference for use across projects | /remember --scope user <text> |
| Delete one card | /forget <complete card ID> |
| Stop future memory writes | /memory write off |
| Stop future model retrieval and context injection | /memory read off |
/memory write off waits for accepted writes to settle before taking effect. With /memory read off, context already in the session remains available. Setting CODANT_MEMORY=off in the daemon process environment disables both reads and writes. Deleting a card removes the card and updates the index. Task evidence, message history, and requests already sent to a model have their own records. When settings take effect · Environment variable and settings · Card deletion
Memory cards and the index are stored in the daemon data directory. Extraction and consolidation send requests to the daemon's selected model, so a remote model receives the corresponding content. The pipeline masks recognizable paths when it builds record views for the model. Separate rules mask common credential formats when saving cards. Each set of rules covers the patterns it matches. Local storage layout · Memory model calls · Record view and path handling · Card saving
