Skip to main content

AGENTASIAN system manual

Status: Ready

Truth label: Current

Audience: Fleet operator, System designer

Reader outcome: Install, configure, and operate the whole control plane from one manual: prerequisites, startup, providers, projects, tasks, pipelines, workers, monitoring, checkpoints, schedules, chat controls, memory, analytics, backups, supervision, and shutdown.

Last verified: 2026-09-13

This is the end-to-end product and operator manual. It describes current behavior, including known limits. Use the runbook for condensed incident procedures and configuration for every setting.

1. Product model​

AGENTASIAN combines:

  • Cortex, the operator interface
  • Brain, the chat and knowledge service
  • Forge Central, the task control plane
  • Forge Workers, the execution clients
  • external coding-agent CLIs

Brain helps reason, retrieve information, and dispatch work. Forge executes work against registered repositories. Cortex provides one browser interface to both.

2. Prerequisites​

Central host​

  • Python 3.11 or newer
  • a native local filesystem for SE_MANAGER_DATA_DIR
  • provider access for Brain, such as Ollama or cloud API keys
  • ports 3000, 8080, and 8081 available

Worker host​

  • Python 3.11 or newer
  • a local checkout of each project the worker will execute
  • at least one supported CLI installed and authenticated
  • network access to Central and, preferably, Brain

Supported worker CLIs are Claude Code, Codex, Codex OSS through Ollama, and Antigravity. Legacy engines remain available but are not the primary path.

3. Installation​

Create a virtual environment appropriate for the host operating system and install the project in editable mode.

On Linux, WSL, or macOS:

python3 -m venv .venv-linux
.venv-linux/bin/python -m pip install -e ".[dev]"

On Windows PowerShell:

py -3.11 -m venv .venv
.venv\Scripts\python.exe -m pip install -e ".[dev]"

Copy .env.example to .env and set only the providers and services you plan to use. Do not commit .env.

4. Start the system​

4.1 Interactive local stack​

From the repository root:

./run-all.sh

This starts:

  • Forge Central at http://127.0.0.1:8080
  • Brain at http://127.0.0.1:8081
  • Cortex at http://127.0.0.1:3000

It does not start a worker. The shell owns the three processes. Closing it or pressing Ctrl+C stops the stack.

4.2 Start a local worker​

./run-worker.sh

4.3 Start a remote worker​

./run-worker.sh http://central-host:8080 http://central-host:8081

The first URL is required. When the first URL ends in port 8080 and the Brain URL is omitted, the launcher derives port 8081 on the same host.

4.4 Confirm health​

curl http://127.0.0.1:8080/health
curl http://127.0.0.1:8081/health

Both should return a JSON status of ok. Health routes are intentionally public. Other routes follow the local-or-token policy.

5. Open and configure Cortex​

Open http://127.0.0.1:3000.

Cortex contains these primary sections:

SectionPurpose
ChatTalk to Brain, select provider, lens, register, and generation controls
MemorySearch, add, ingest, inspect, edit, and remove stored knowledge
ProjectsRegister and manage Forge projects
TasksCreate, monitor, cancel, retry, inspect, and delete tasks
CheckpointsApprove, grade, revise, or fail held work
RulesManage persistent Brain rules
AnalyticsReview egress, outcomes, stages, and learning candidates

Session, schedule, worker, and related controls are embedded in the project and task views.

If API authentication is enabled, enter the fleet bearer when Cortex prompts. The browser stores it in local storage. Use a dedicated browser profile on a trusted machine.

6. Configure providers​

Brain chat and embeddings are configured separately.

Chat providers​

  • ollama
  • openai
  • anthropic
  • google

Embeddings​

Set EMBEDDING_PROVIDER and EMBEDDING_MODEL. Existing Chroma collections record their embedding identity. A mismatched provider or model is rejected to avoid mixing incompatible vectors.

For local-first use, run Ollama on the Brain host and configure its base URL. For a cloud provider, place the corresponding key on the Brain host. Provider key distribution to workers is off unless AA_ALLOW_KEY_DISTRIBUTION=true.

7. Register a project​

A Forge project represents one repository or working directory.

Required fields:

  • name
  • absolute or resolvable path

Optional fields:

  • repository URL
  • description
  • supervision mode
  • client id
  • internal-shared flag

Path rules:

  1. Local paths are expanded and resolved on Central.
  2. A foreign operating-system path is stored as a pure absolute path.
  3. A remote request must remain inside SE_MANAGER_ALLOWED_PROJECT_ROOTS.
  4. Central does not map the path for another worker platform.

For a heterogeneous fleet, pin tasks to the worker whose checkout matches the stored path. Automatic path mapping is not implemented.

Client scope​

client_id assigns the project to a confidentiality scope. No client id means internal. An internal project may be marked shared so its methodology is eligible for client work. A client project cannot be marked shared.

The Cortex project form does not currently expose these fields. Use the Forge API for scope administration until the UI is completed.

8. Create an ordinary task​

A task requires a project, title, and description. Important controls include:

ControlMeaning
priority1 is highest, 10 is lowest by convention
supervision modeautonomous, checkpoint, or supervised
enginerequested worker backend
permissionsafe, write, or yolo
assigned worker idpin to one worker
required capabilitiestags the worker must advertise
worker typepersona such as developer, architect, QA, or PM
skillsextra skill packages, capped during prompt assembly
verification commandindependent post-engine argv command
automatic retryretry a machine or verification failure
session idgroup related work
parent task idblock until the dependency completes

The request field for a worker pin is assigned_worker_id. Unknown request fields are currently ignored, so verify the returned task contains assigned_worker after creating a pinned task.

Do not use yolo for a repository you do not fully trust. Treat safe as a best-effort engine mode, not an operating-system sandbox.

9. Create a pipeline​

Use GET /pipelines to inspect available templates and POST /pipelines/{name} to instantiate one.

Required inputs:

  • project id
  • overall goal

Recommended inputs:

  • assigned worker id for cross-platform fleets
  • engine
  • a platform-correct verification command
  • QA rework budget

Delivery pipeline​

  1. Scope, safe, PM, checkpoint
  2. Execute, write, developer, autonomous
  3. QA gate, safe, QA, autonomous
  4. Solution audit, safe, architect, autonomous
  5. Status report, safe, PM, checkpoint

Quickfix pipeline​

  1. Execute, write, developer, autonomous
  2. QA gate, safe, QA, autonomous
  3. PR summary, safe, PM, checkpoint

Pipeline instantiation is treated as operator consent to execute its write stage. Verify the selected worker has the engine and project path before starting. Pipeline creation does not currently prove every stage capability against the worker in advance.

10. Worker behavior​

Registration​

The worker identifies itself by hostname and optional FORGE_WORKER_NAME. Central mints a credential on first registration. The worker stores it under:

<data_root>/worker-credentials/<hostname>-<instance>.token

Central stores only the token hash.

Polling and routing​

The worker normally polls every ten seconds. Central considers:

  • worker pin
  • installed engine
  • required capabilities
  • parent completion
  • task state
  • worker idle state

Project paused or archived status does not currently remove tasks from routing.

Prompt assembly​

The served task prompt can include:

  • task and project identity
  • task description and spec
  • persona instructions
  • up to five requested skills
  • repository control files
  • active Brain rules
  • session and parent context
  • scoped CPMI and learnings
  • verification expectations
  • prior retry or revision feedback

Repository controls are trusted instructions for that repository. Retrieved history and knowledge are labeled as untrusted evidence.

Execution​

The selected adapter maps the task permission to engine flags and starts the CLI in the project directory. Standard input is closed. Output is captured and supported progress events are sent to Forge.

The worker snapshots the project before and after execution to identify changed files. Git status is used when available.

Verification​

If a verification command is configured, the worker parses it with shell-like argv rules but does not invoke a shell. It runs with a maximum of ten minutes. If no command is configured and the project has .git, the fallback is git diff --check.

Choose a command that exists on the selected worker. python -m pytest may use Python 2 or a missing global interpreter on macOS. Prefer an explicit virtual environment path or a worker-resolved command.

11. Monitor a task​

Task data includes:

  • lifecycle status
  • assigned worker
  • current run id and attempt number
  • live logs
  • result or error
  • verification result
  • changed files
  • engine metadata and token usage
  • cost when the provider reports it
  • checkpoint and pipeline fields
  • creation, start, and completion times

Use Cortex for routine monitoring. API clients can use:

  • GET /tasks/{id}
  • GET /tasks/{id}/logs?after=<sequence>
  • GET /tasks/{id}/runs
  • GET /runs/{run_id}/trace

Task traces currently contain the full task result inside the outcome object. Treat the trace API as sensitive, despite older documentation describing it as fully sanitized.

12. Checkpoint decisions​

At a checkpoint, choose one of these actions:

Approve​

  • At a plan checkpoint, approval requeues the execution stage.
  • At a final checkpoint, approval completes the task.
  • At a failure checkpoint, ordinary approval retries the failed stage.

An optional grade from 1 to 5 feeds outcome analytics and the learning-candidate inbox.

Approve a plan and close the task​

complete_now=true is valid only at a plan checkpoint. It completes the task without releasing the execution stage, for a plan that was itself the deliverable or whose work is already done. Acceptance criteria are recorded as for any completion, and the decision is approve-complete.

Approve with gate override​

override_gate=true is valid only at a failure checkpoint. It completes the failed stage and unblocks downstream work while retaining the failure evidence. The current Cortex form does not expose this flag. Use the Forge API.

Revise​

A revision appends bounded feedback and requeues the appropriate stage. Human revision does not consume the automatic machine-retry budget.

Fail​

Failing the checkpoint stops the task. For a pipeline, dependent pending stages are cancelled deliberately.

13. Sessions and dependencies​

A session groups tasks for one project and provides completed task context to later tasks. Parent-task dependencies are stricter: a child is not offered until its parent completes.

Keep a session inside one client scope. Pipeline sessions are single-project by construction. The API should reject cross-scope task attachment, but do not use sessions as a confidentiality boundary until the GL-07 audit findings are closed.

14. Schedules​

Schedules create tasks from a stored template. Supported cadence forms are:

every 90m
daily 03:00
weekly sun 03:00

Central checks due schedules every 30 seconds. A schedule depends on the Central process being supervised and the target project remaining valid.

15. Brain chat controls​

Reasoning lens​

The reasoning lens selects reviewed analytical guidance and eligible influence sources. It changes what principles and evidence are emphasized.

Voice register​

The voice register controls delivery. It must not change facts or decisions.

Voice polish​

Voice polish is optional. The default remains off. A candidate revision must preserve fact locks and pass regression checks before replacing the original.

Generation controls​

Brain validates controls per provider. Unsupported fields are rejected. Temperature and top-p cannot be set together. Unspecified provider defaults remain unknown instead of being guessed.

Auto-save​

Conversation auto-save is off by default. Cortex maintains the active conversation UUID locally.

16. Knowledge and memory​

Brain uses multiple collections because they have different trust and retention roles:

CollectionPurpose
knowledgeingested documents and operator-authored knowledge
notesshort user notes
learningstask outcomes and feedback-derived records
conversationssaved conversation excerpts
voice examplesapproved style-only examples
CPMIcanonical repository memory and governance history

Knowledge can be added as text or ingested from a server-side path. An authenticated caller therefore has access to files readable by the Brain process. Do not expose the Brain API to an untrusted client.

17. Canonical project memory​

CPMI indexes governance and memory files from registered repositories. It preserves stable record ids, file and line provenance, status, content hashes, and freshness signals.

Search combines semantic and lexical matches with scope, phase, record type, and freshness. If embeddings are unavailable, lexical search can continue.

Target-repository controls are read directly. Retrieved CPMI history is untrusted evidence and must not override those controls.

18. Learning loop​

Highly graded runs can appear in the candidate inbox. The inbox deliberately does not expose the run result. An operator must write a generalized, client-free summary and acknowledge that it is not copied client content.

Promotion stores the summary as internal shared methodology. Current client-scoped knowledge search does not honor that shared metadata, so promoted methodology is not yet available to client-scoped tasks as designed.

Promotion is always a human decision. Never paste a client deliverable into the promotion form.

19. Analytics​

Egress​

Egress analytics summarize task and chat provider usage, token counts, prompt shape, duration, and reported cost. Cost is authoritative only when the engine reports it.

Outcomes​

Outcome analytics join checkpoint grades with run lineage. Retrieval outcome lift is observational. It is not an A/B test and does not establish causality.

The current implementation also treats a QA-gate metadata field as evidence of retrieval. Use the metric directionally until that classification is corrected.

Scope audit​

Scoped HTTP search writes counts of returned and denied records to scope_audit.jsonl. This measures denials seen by that filter. It cannot detect retrieval paths that bypass the filter.

20. Backups​

Run a manual Central backup with:

python scripts/backup_data.py --keep 7

The script uses the SQLite backup API for every *.sqlite3 file and creates a timestamped zip under <data_root>/backups/.

Current backup omissions include decisions, scope audit, candidate-resolution state, worker credentials, and outboxes. Remote-worker state is not present on the Central host. Treat the current archive as a partial Central backup.

Before relying on restore:

  1. add every required Central file to the backup set
  2. back up each worker's credential and outbox state separately
  3. stop the stack
  4. restore into an empty target data root
  5. verify SQLite integrity and service startup
  6. verify worker re-enrollment and outbox delivery
  7. record the restore time and any manual steps

See Data and storage for the full plan.

21. Durable service operation​

Windows​

The checked-in PowerShell supervisor restarts Cortex, Brain, and Central based on their listening ports and runs the daily backup. It binds all three to 0.0.0.0 and uses hard-coded repository and data paths.

Review the files before registration:

  • scripts/windows/supervisor.ps1
  • scripts/windows/register-supervisor.ps1

Configure authentication, exact CORS origins, allowed project roots, and private firewall rules before exposing the services to a LAN.

macOS and Linux​

The repository contains an opt-in macOS launchd plist and installer. With the repository under ~/Documents, macOS TCC prevents that launchd job from reading .env unless the operator grants access or relocates the working set. DEC-20260825-01 accepts manual start as the supported default and closes this as won't-do for the current operator workflow.

No equivalent checked-in systemd unit covers Linux. A manually started worker stays down after a crash until the operator restarts it.

Central exposes operational alerts through /alerts. Cortex shows an alert bar and can send browser desktop notifications for new alerts. There is no external push, email, or chat notification destination.

/alerts also reports tasks_stranded: pending tasks pinned to a worker that has been offline longer than SE_MANAGER_PINNED_WORKER_OFFLINE_GRACE_SECONDS (3600 by default), or pinned to a registration that was deleted. Central offers a pinned task to that worker alone and no lease exists before a claim, so nothing expires this work. It is reported rather than moved, because the pin is often load-bearing: a follow-up resumes a CLI session that lives on that worker's disk. Clearing it is an operator decision, by starting that worker or by retrying the task against another one.

22. Security operating rules​

  1. Keep APIs on loopback unless remote workers require LAN access.
  2. Never expose ports 3000, 8080, or 8081 to the public internet.
  3. Use a long random fleet bearer for LAN access.
  4. Restrict firewall rules to trusted private hosts.
  5. Keep provider-key distribution disabled.
  6. Store client work only in a correctly scoped project.
  7. Do not run hostile repositories or tests on a worker.
  8. Do not assume safe provides OS isolation.
  9. Treat worker credential files, outboxes, raw traces, and backups as secrets.
  10. Do not use the system for multiple confidential clients until the security audit P0 findings are resolved.

23. Common failures​

SymptomLikely causeAction
Central refuses startup in WSLData root is on drvfs or 9PRun Central on Windows or move the data root to native Linux storage
Second Central refuses startupProcess lock already heldFind the active Central; do not delete the lock while it is running
Worker registration returns 401Saved token does not match CentralDelete the stale registration, then restart the worker
Worker is idle but task is not offeredPin, engine, capability, parent, or worker-state mismatchCompare task fields with the worker registration
Project path not found on workerLiteral path belongs to another OS or checkoutPin correctly or register a reachable path
Task fails after correct editsVerification command or interpreter is wrongCorrect the command or use a failure-hold override after review
Pipeline QA repeatsFinal verdict is missing, malformed, or failingInspect the final line and QA feedback
Completed work missing in CentralResult is retained in worker outboxRestore connectivity and inspect outbox drain logs
Worker stops a live CLILease was lost or cancellation requestedInspect Central logs, lease TTL, and run-token errors
Brain search returns nothingBrain, Forge scope lookup, embeddings, or collection identity failedCheck health, scope audit, CPMI stats, and embedding configuration
Cortex repeatedly asks for tokenBrowser token is absent or rejectedRe-enter the fleet bearer and verify both APIs use the same setting

24. Shutdown​

For the interactive stack, return to the run-all.sh shell and press Ctrl+C. The launcher terminates Forge, Brain, and Cortex. Stop workers separately.

Before a restore or data migration, stop Central and every process writing to the target data root.

25. Further reference​

Managed recurring tasks​

Use Manage recurring tasks in Cortex for full task templates, timezone previews, overlap/catch-up behavior, version history and occurrence review. Manual runs preserve the next appointment. Pausing holds waiting occurrences; deletion retains their history and created tasks.