End-to-end walkthrough
Status: Ready
Truth label: Limited
Audience: New builder, Fleet operator, System designer
Reader outcome: Set up AGENTASIAN in the right order, know which feature to reach for at each stage, and run ten common cases end to end with the evidence that proves each one worked.
Last verified: 2026-09-12
Full guides: System manual, Operator manual, Runbook
How to use this page
The handbook has one page per feature. This page is the order those features go in. Each stage states its outcome, the few actions that produce it, the pages that hold the detail, and the check that proves the stage is done. The worked cases at the end run several stages together the way real work does.
Do the stages in sequence the first time. Every later stage assumes the
checks of the earlier ones passed. Feature IDs such as FG-09 refer to rows
in the feature catalog.
Stage 0: Know the four parts
Outcome: you can say which process owns which state.
| Part | Port | Owns |
|---|---|---|
| Forge Central | 8080 | Projects, tasks, workers, sessions, schedules, checkpoints, run ledger |
| Brain | 8081 | Chat, retrieval, sources, voice, research, briefs, budgets |
| Cortex | 3000 | The browser surface for both: a rail, a workspace, and an inspector (CX-06) |
| Worker | none, outbound only | Runs a coding CLI in a project directory and reports back |
Chat cannot write code. Its only path to a build request is to find a real project and file one task (BR-01). Every task, from chat or from the form, lands in the same queue and follows the same routing, permission, evidence, and review rules.
Open: Architecture.
Check: you can name the port for each of the three services and say where a task's result is stored.
Stage 1: Install and start
Outcome: both services answer on their ports and Cortex loads.
- Clone the application repository. Clone the Academy beside it only if you want these pages offline.
- Create the virtual environment and install the package.
- Copy
.env.exampleto.env. Change nothing yet. - Run
./run-all.sh(orrun-all.bat), then curl/healthon 8080 and 8081.
Open: Install from scratch, Running the stack.
Check: both health routes report ok and http://127.0.0.1:3000 loads with
no connection error. If it does not, Troubleshooting
starts with exactly this symptom.
Stage 2: Configure Brain
Outcome: Brain reasons with the provider you chose, embeds with a model you will keep, and has room for the prompts you will send.
- Choose the chat provider (BR-02). Ollama keeps everything on your machines;
OpenAI, Anthropic, or Google sends prompt material out. Set
LLM_PROVIDERandLLM_MODEL. - Choose the embedding provider and model (KN-02) and treat the choice as permanent for every collection you fill. Brain records the identity per collection and refuses a mismatch.
- If you run Ollama anywhere but the Brain host, declare it as a local processing host (ST-03) so local-only material may reach it.
- Open Manage Cortex > Context budgets and inspect the effective budget for your chat model (ST-04). The default is 262,144 estimated tokens. Leave it unless the first failures tell you otherwise.
- Set the shared chat defaults you want every request to inherit (ST-02).
Open: Configuration reference, Settings and budgets, Advanced configuration.
Check: a plain chat message returns a reply, and the reply's generation report (BR-05) names the provider and model you configured.
Stage 3: Give Brain its memory
Outcome: replies draw on your notes, your sources, and your standing context, with provenance you can inspect.
- Point
KNOWLEDGE_DIRat a folder of notes and ingest it (KN-03). - Import a book or document through Sources (KN-04). Review the extraction and its quality report (KN-05), preview the passage boundaries (KN-06), then publish.
- Put a source into a group and a lens (KN-08) so a reasoning lens can draw on it.
- Record the context that should follow you across work as briefs, decisions, preferences, lessons, and rules (KN-12).
- Register your repositories as projects in Stage 6 and their root memory files become searchable through canonical project memory (KN-14).
Open: Sources and influences, Briefs and memory.
Check: a chat reply cites a passage from your imported source with its page or chapter, and the reference is labeled as evidence, not instruction (SEC-05).
Stage 4: Shape the voice
Outcome: drafts sound like you, and a register change never changes a fact.
- Skip this stage on a first install. The built-in voice pack already supplies lenses and registers (VO-01).
- When you are ready, create an inactive pack from Cortex, author or import its profiles, samples, and style rules, then activate it (VO-02).
- Correct a draft in chat and approve the corrected version as an example
(VO-04). Choose its privacy class;
local-onlyexamples never reach a cloud provider (VO-03). - Use Write as me for deliverables and Assist for discussion (BR-07). Turn on polish when wording matters and read what it changed (BR-09).
Open: Writing and voice, Voice packs, Chat.
Check: the generation report lists which examples and which register were used, and a reply rated Needs work shows up in reply ratings (QA-01).
Stage 5: Set up agents
Outcome: one worker is online with a known engine, a known identity, and a known permission ceiling. Then a second one.
- On the worker host, install one coding CLI and complete its login as the same operating-system user that will run the worker (WK-02).
- Start the worker with an explicit
--engine, a stable--name, a default permission, and a maximum permission (WK-04). The ceiling always wins over a task request (SEC-03). - Confirm the worker is online in Cortex with the expected engine and CLI version (WK-01, FG-18).
- Add a second worker on the same host with a different name and engine
(WK-07), or on another machine you own by passing the Central and Brain
URLs. Remote registration needs
AA_BIND_HOST,AA_API_TOKEN, andAA_ALLOWED_ORIGINSset on the Central host (SEC-01). - Decide which effort level each engine should run at (WK-09). Leave it blank for the CLI default.
Open: Workers, Configuration reference, Security boundaries.
Check: the fleet panel shows each worker with a recent heartbeat, and a task
that requests yolo on a worker whose ceiling is write runs at write,
which the attempt's execution evidence records.
Stage 6: Register projects
Outcome: Central knows each repository by the path the worker sees, the review policy it gets by default, and the client it belongs to.
- Register the project with the absolute path as it exists on the worker that will run it (FG-01). Central stores the path literally and does not translate between operating systems.
- Keep the default
checkpointsupervision so completed work holds for review until you trust the setup (FG-14). - Set a client label when the project belongs to one client (FG-03). This scopes retrieval and session attachment; it is not tenant isolation.
- Set project task defaults for engine, permission, method, and verification command (FG-05), and preview what a task would resolve to before creating one.
- Pause a project to stop new work; archive it when it is finished (FG-02).
Open: Projects.
Check: the project's path exists on its worker, and Preview effective task settings shows every value with an origin you expected.
Stage 7: Run the first task and read the evidence
Outcome: one narrow task completes end to end and you can read its evidence without opening the repository.
- Create a task that asks for one new file, with
writepermission and a verification command that already exists in the repository (FG-04, WK-06). - Watch the live log (FG-11). Cancel it once to see that cancellation kills the CLI within seconds (FG-12), then retry.
- When it holds under Waiting on you, open the run in the inspector, read the diff and the retained deliverables (RV-05, RV-03), then approve with a grade (FG-15). At a plan hold, Approve plan, mark as done closes a task whose plan was the deliverable without billing a run.
- Open the attempt's trace and its context allocation record (PLT-03, ST-04).
Open: Tasks, Reviews and deliverables.
Check: the task shows final state, worker, engine, run ID, files changed, and an independent verification result that is separate from the engine's own claim of success.
Stage 8: Define success before the run
Outcome: tasks carry criteria, results are judged against them, and judgments feed learning.
- Write a brief with a goal, constraints, acceptance criteria with expected evidence, and requested output files (RV-01). It freezes at assignment.
- Review the held result against the criteria and record acceptance or rejection (RV-02). Revise with bounded feedback when it is close; fail it when it is not.
- Rate the task, or one attempt (QA-02). Judge an exact artifact version when the file matters more than the task (QA-03).
- Promote a highly graded run into shared knowledge only after writing a generalized, client-free summary (KN-17).
Open: Tasks, Reviews and deliverables, Quality and feedback.
Check: the acceptance record names the criterion, the evidence, and the attempt it was judged on, and a later rework does not rewrite it.
Stage 9: Scale the method
Outcome: repeatable work runs through reviewed methods, ordered stages, and schedules instead of hand-written prompts.
- Clone a starter managed method and pin it to a project's defaults (WF-03). Its skills, instructions, and output contract are versioned.
- Instantiate the bundled
quickfixordeliverypipeline on a small goal (WF-01). Read the stage inputs each stage received (RV-04). - Clone a pipeline into a workflow template and change one stage (WF-02).
- Schedule a task or a workflow on a cadence with a timezone and an overlap policy (WF-05, WF-06). Start with the one-click weekly self-review (WF-07).
Open: Methods and workflows, Recurring tasks.
Check: an occurrence shows its frozen stage definitions, and the reviewed cursor carries the previous occurrence's summary into the next one.
Stage 10: Research with evidence
Outcome: current claims come with the page they came from.
- Create a research brief with the question, search backends, and domain rules (RS-01).
- Run it, inspect the fetched pages and passages, and accept or reject each proposed finding (RS-02).
- Attach the cited brief to a conversation and draft from it. Point a run at imported books when the evidence is on your shelf (RS-03).
Open: Research and findings.
Check: every claim in the draft traces to an accepted finding, and the finding traces to a fetched passage.
Stage 11: Judge quality with a method
Outcome: you know whether a voice, a prompt, or a budget change helped, and you know what that evidence does not prove.
- Rate replies as they arrive (QA-01) and review the list weekly.
- Build evaluation cases and held-out writing, then run a blind comparison suite across two setups (QA-06).
- Label private polish regression cases and run meaning verifier trials to choose a local checker (QA-04, QA-05).
- Read work analytics for spend, tokens, duration, and outcome grades by engine and model (QA-07). The retrieval lift shown there is observational.
- To compare a cheaper method, model, effort, or helper policy, pause the project, label matched tasks in Task comparison settings, run them, grade them, and record review minutes (QA-09). Enter your own price table and allowance observations; the report ships none.
Open: Quality and feedback, Advanced configuration.
Check: a comparison run names the profile, pack hash, model, controls, and budget for each candidate, so two runs can be told apart, and the usage report shows each labelled task with its frozen variant and a priced denominator.
Stage 12: Operate
Outcome: the stack survives a reboot, a crash, and a restore rehearsal.
- Read the three health signals: service health, worker heartbeat, and the alert bar (OP-02, FG-17).
- Supervise Central and workers on Windows with the supervisor scripts, or run the server stack in containers (OP-03, PLT-04). Workers stay on hosts.
- Back up the data root together with worker credentials, the outbox, and the voice and influence directories (OP-04). Rehearse a restore into a scratch data root before you need it.
- Work through the deployment checklist before opening any port beyond loopback (SEC-01, SEC-08).
Open: Running the stack, Security boundaries, Troubleshooting.
Check: after a Central restart, due schedules fire, workers show online again on their next poll, and a task result held in a worker's outbox reaches Central (FG-10).
Stage 13: Extend
Outcome: you can add a CLI backend, a Brain tool, or a client without touching the core loop.
- Read the API map and open the live schema at
/docson each service (API-01, API-02). - Send a request ID with every task creation and reuse it on retry.
- Add a backend by implementing the adapter contract and one registry line (WK-10). Add a Brain tool by binding it in the graph and stating its trust level (API-03).
Open: API reference map, Season 11 lessons.
Check: the extension has a test that exercises its primary path, and the feature catalog has a row for it.
Worked cases
Each case names the goal, the stages it uses, the steps, the evidence that proves it worked, and the limit that stays true afterward.
Case 1: Fix a bug with a QA gate
Uses stages 6, 7, 9.
- Register the repository, or pick it, with
checkpointsupervision. - Instantiate the
quickfixpipeline with the goal, the engine, a worker pin if the fleet is mixed, and a platform-correct verification command. - Execute runs with
write; QA gate runs withsafeand its own verification; PR summary holds at a checkpoint. - Read the QA stage's verdict in its stage inputs before approving.
Proof: the QA stage's independent verification passed, the run diff matches the goal, and the PR summary names the commit it describes.
Limit: safe permission is an engine mode. The QA stage's tests still execute repository code.
Case 2: Deliver a feature through scope, execute, QA, and audit
Uses stages 6 through 9.
- Write the goal as a definition of done, not a task list.
- Instantiate
delivery. Approve or revise the scope stage's plan at its checkpoint before anything is written. - Let execute, QA gate, and solution audit run autonomously.
- Review the status report at the final checkpoint with the audit findings beside it, then grade it.
Proof: each stage's inputs show the prior stage's frozen result and brief; acceptance is recorded against the criteria the scope stage wrote.
Limit: pipeline instantiation is consent to the write stage. Confirm the worker's engine and path before you start.
Case 3: Write a post in your voice from three sources
Uses stages 2, 3, 4.
- Select the three sources for the conversation and deselect general knowledge if the post should stay inside them.
- Choose the lens that groups those sources, your register, and Write as me.
- Draft, correct, and approve the corrected draft as an example with the right privacy class.
- Turn on polish for the final pass and read the meaning check.
Proof: the generation report lists the three sources, the register, and the examples used; the polish record shows locked spans untouched.
Limit: retrieval from approved examples is not model training. The voice improves only through corrections you approve.
Case 4: Answer a question with current web evidence
Uses stages 3, 10.
- Create a research brief with the question and allowed domains.
- Run it, then accept the findings whose passages support them.
- Attach the cited brief and draft the answer with Assist.
- Save the conversation with the brief attached.
Proof: each claim in the draft has a finding, and each finding has a fetched passage with its URL and retrieval time.
Limit: research records what a page said when it was fetched. It does not monitor the page afterward.
Case 5: A weekly report the system writes about itself
Uses stages 9, 11, 12.
- In Work schedules, choose the weekly self-review template.
- Set the timezone and an overlap policy that skips rather than stacks.
- After the first occurrence, read the report it wrote into the repository and the occurrence's evidence.
- Rate the task so the next occurrence carries the judgment.
Proof: the occurrence history shows the fire time, the task it created, and the result; the analytics window it analyzed matches the report.
Limit: zero cost in analytics means the backend reported no price, not that the run was free.
Case 6: Add a Windows worker with a different engine
Uses stages 5, 12.
- On the Windows host, install the CLI, log in as the worker's user, and confirm it is on that user's PATH.
- Set
AA_BIND_HOST,AA_API_TOKEN, andAA_ALLOWED_ORIGINSon Central, restart it, and open the firewall for 8080 and 8081 only to that host. - Start the worker with the Central and Brain URLs, an explicit engine, a
stable name, and a
writeceiling. - Register the project with the path as the Windows worker sees it, and pin tasks for it to that worker.
Proof: the fleet panel shows the worker with its engine and CLI version; a pinned task claims there and nowhere else.
Limit: project paths are literal and machine-local. Automatic path mapping across workers is not implemented.
Case 7: Import a book and reason with it
Uses stages 3, 4.
- Upload the PDF or EPUB, review the extraction quality report, and fix or accept the flagged pages.
- Preview passage boundaries; adjust size and overlap for that book only.
- Publish, then add the source to a group and a lens.
- Ask a question under that lens and open the cited passages.
Proof: cited passages carry page or chapter references, and the extraction version is recorded so a later re-extraction can be compared and restored.
Limit: image-only pages need OCR before import. The extractor identifies them and does not read them.
Case 8: A task fails before dispatch with a required-context error
Uses stages 2, 7.
- Read the error. It names the required-input size and the allocation that could not hold it. The estimate counts bytes, not tokens.
- Open the task's context allocation record to see which protected sections made up the requirement.
- Raise the total context estimate, apply it to all agents and models, and save all profiles.
- Inspect the saved worker budget for that engine and model, then retry.
Proof: the retry's allocation record shows the new profile revision and an input allocation above the requirement.
Limit: this is an application budget. It does not change the model's actual capacity or the CLI's private context handling.
Case 9: Work for two clients on one fleet
Uses stages 6, 8, 12.
- Give each client's projects a client label.
- Keep sessions inside one client scope; pipelines are single-project by construction.
- Promote knowledge from a client run only through the candidate inbox, with a generalized summary and the explicit acknowledgment.
- Keep the operator token off worker hosts; it is needed only for all-scope search.
Proof: a worker task in one client's project retrieves that client's and internal canonical memory only, chat retrieves internal memory unless a scope is requested, an all-scope search without the operator token returns 403, and a candidate promotion never exposes the deliverable.
Limit: client scope is not tenant isolation. The security page lists the open gaps, and this deployment is not approved for confidential multi-client production.
Case 10: Change the embedding model without losing memory
Uses stages 2, 3, 12.
- Back up the data root first.
- Start a scratch instance with a separate data root and the new
EMBEDDING_PROVIDERandEMBEDDING_MODEL. - Re-ingest the knowledge directory and re-import published sources there. A CPMI refresh rebuilds project memory from the registered repositories.
- Compare retrieval on a fixed set of questions before switching the production data root.
Proof: the new collections record the new embedding identity, and Brain starts without a mismatch rejection.
Limit: stored collections do not re-embed themselves. Anything you do not re-ingest or re-import stays behind in the old data root.
Where to go next
- One feature at a time: Handbook overview.
- Every feature in one table: Feature catalog.
- The reasoning behind each control: Learning paths.
- When a stage check fails: Troubleshooting.