🧠 Cognitive Modes (Research, Plan, Agent)
To keep the assistant disciplined—no invented numbers, no premature file changes, no silent deliverable claims—AMBA enforces the Lean Triad cognitive model (Research, Plan, Agent). Switch modes instantly from the segmented control in the chat composer, or let Agent handle end-to-end execution.
The Lean Triad Cognitive Model /
├── 💬 1. Research (Conversational Q&A) ➔ Pure read-only inspection, exploration & calculation (Zero disk writes)
├── 📋 2. Plan (Hard-Locked Blueprint) ➔ Rigorous strategic roadmap saved to desk/drafts/plans/YYYYMMDD_<slug>.md
└── ⚡ 3. Agent (Autonomous Execution) ➔ Compiles native Office (Excel, Word, PowerPoint) and vector PDF deliverables💬 Research Mode
Pure Read-Only InspectionExploration, formula verification & analytical calculation. Zero disk writes.
📋 Plan Mode
Hard-Locked Strategic BlueprintRigorous strategic blueprint saved to workings/plans/YYYYMMDD_<slug>.md.
⚡ Agent Mode
Autonomous Delivery to reports/Autonomous multi-step runtime compiling verified board-ready deliverables.
1. 💬 Research Mode — Conversational Q&A & Exploration
When to use: Exploring documents, asking complex domain questions, or checking formulas with zero disk modifications.
- Behavior: Pure conversation, document inspection, and analytical calculation.
- Allowed Capabilities: Reading workspace files (
read,files), deterministic analytical SQL queries (table), and web search (when enabled). - Hard Restriction: Strictly Read-Only. The assistant is physically prevented by the Rust Policy Engine from writing anywhere in the project (workspace or Sources). Every tool declares whether it writes: editing workbooks, decks or Word documents, Office scripts and connected MCP tools are refused too, before any permission prompt. Previewing a deck or Word edit without saving it is allowed.
2. 📋 Plan Mode — Hard-Locked Strategic Blueprint
When to use: Formulating a multi-step execution roadmap, reviewing analytical assumptions, and agreeing deliverables before touching output files.
- The Sovereign Executive Contract: In top-tier agent architectures, Plan Mode provides an uncompromising contract: hard-locked read-only inspection. The agent analyzes raw source documents in Sources, establishes calculation formulas, specifies expected file layouts, and outlines execution steps—stopping completely without modifying production files.
- Chronological Dated Plan Convention (
desk/drafts/plans/YYYYMMDD_<slug>.md):- Every plan is saved directly to disk as a dated Markdown artifact:
desk/drafts/plans/YYYYMMDD_<short_slug>.md(e.g.desk/drafts/plans/20260917_q3_financial_reconciliation.md). - Traceable Business Audit History: Business users and finance controllers maintain a clean, chronological record of strategic roadmaps over time. Plans never overwrite each other blindly; same-day variants gracefully increment (
_v2.md). - Interactive Plan Inspector Card: The chat UI renders a dedicated interactive card with the plan title, timestamp, planned deliverables checklist chips, and two buttons:
[ Review Plan ]opens the plan file;[ Generate Drafts ]builds the deliverables intodesk/drafts/for review. When the drafts are right, ask the agent in chat for the final version (for example "finalize the report"); it writes the final deliverables todesk/.
- Every plan is saved directly to disk as a dated Markdown artifact:
- Hard Restriction: Hard-locked against direct deliverables. The agent can only draft plans under
desk/drafts/plans/. Writing deliverables on the Desk is strictly blocked by the runtime until the plan is approved.
3. ⚡ Agent Mode — Autonomous Execution & Delivery
When to use: Turning an approved plan or a direct executive request into verified, board-ready deliverables.
- Behavior: Executes multi-step workflows, loads data tables into embedded SQLite, evaluates exact formulas, and writes verified deliverables directly into the Desk (
desk/). - Approved Plan Execution: Generate Drafts hands Agent mode the dated blueprint (
[EXECUTE PLAN DRAFT: desk/drafts/plans/YYYYMMDD_<slug>.md]); it verifies prerequisites, executes each milestone step, writes the drafts todesk/drafts/and marks the plan status asExecuted. Once you have reviewed the drafts, ask for the final version in chat and the agent writes it todesk/. - In-Tree Artifact Factory (No Python, LibreOffice, Node, or cloud sidecars):
- Native Excel workbooks (
.xlsx) viaworkbook: create one, edit one in place or fill a template, with live formulas. - Native Word documents (
.docx) and PDFs viadocument, starting from your company Word template. - Native 16:9 PowerPoint decks (
.pptx) viadeck, starting from your company deck template. - Markdown briefs (
.md) viaedit_file, with an automatic PDF copy. - Every task ends with
finish: the files and key figures are checked, each figure against the cell or source it comes from.
- Native Excel workbooks (
- Which tools: every model (Claude, OpenAI, Azure, Gemini) uses these agent tools, and the Tools & MCP page lists only them. A task from an earlier version that calls an older tool name still runs for now.
- 1+1 Deliverable Pack Standard: Business playbooks require one structured analytical model (
.xlsx) plus one narrative strategy document (.docx,.pptx,.md, or.pdf).
🌐 Cross-Lingual Reasoning Boundary (ADR-020)
Across all three cognitive modes, AMBA enforces the Strict Cross-Lingual Reasoning Boundary:
- Reasoning stays out of the answer (ADR-074): The model reasons in its provider's own reasoning channel; AMBA never asks it to write reasoning or plans into the answer. Multi-step work shows its plan as a checklist next to the answer (recorded through the plan tool), and tool parameters (paths, sheet names, formulas) stay exactly as the files define them.
- Native Localized Output: All conversational replies, interactive UI cards, and finalized Office/PDF files are compiled directly in the active project locale (
en,vi,ja,ko).
👁️ What an Agent Turn Shows (ADR-074)
Every answer comes with three things you can open, kept apart from the answer itself:
- Thinking: a short summary of how the model reasoned, written by the model provider. It is folded by default; open it to read it, with the time spent. While the agent works it streams live, and short progress notes appear under the running step. AMBA never shows raw reasoning, and older answers without a summary show none.
- Plan: for multi-step work the agent keeps a checklist of its steps and ticks them off as it goes. When it kept no plan, the turn lists Steps taken instead, built from the actions it actually ran (shown lighter).
- Result: work that runs on its own (processes) hands in its result with the files it produced; they appear as chips under the answer and open with one click. If an answer had no text at all, the turn simply says the task was completed, in your language.
✍️ Typing While the Agent Works
The message box stays open while a turn runs, next to Stop:
- Send now (Enter): the agent reads your message after the step it is on and adjusts its work. The message appears in the turn where the agent read it, marked Sent mid-run, and the agent's next step answers it. Until then it waits above the message box.
- Send when done (Ctrl/⌘+Shift+Enter, or the clock button): the message waits above the message box, where you can edit or remove it, and goes as the next turn when the agent finishes. Several waiting messages go together as one turn.
- Nothing is lost: if the agent finishes before reading a message, it goes as a new turn and the chat says so. If the turn stops (Stop, an error or a pause), unsent messages go back into the message box. If the app closes mid-turn, Continue reads them.
- Turns of processes run on their own and take no messages; a turn waiting on your answer to a question takes your reply as usual.
📜 Reading a Long Chat
- The chat stays where you read. Scroll up while the agent works and the page holds still: answers that finish or grow above you, a process turn arriving or a run ending do not move it. New content shows as New messages at the bottom right; click it to go down. The chat only goes to the end by itself when you are already at the end or when you send a message.
- Turn header. In a long chat a line at the top names the turn you are reading (Turn 12 · your prompt). The ↑ / ↓ buttons, or Alt+↑ / Alt+↓ when you are not typing, go to the previous or next turn; ↑ first returns to the start of the turn you are in.
- Turn rail. A slim rail at the right edge has one mark per prompt, placed where it sits in the chat. Hover a mark to see the prompt and its time; click it to go there. Red marks a turn with an error, amber one where the agent decided points alone, green one that made or changed files. The [?] in the header explains the rail.
📍 Chips on Questions
When a question of the agent is about a place in a file (a cell, a page, a sentence), it has a 📍 chip next to it in the question card: hover to see what is there, click to open the file at that place, highlighted. Under the question you see the value Now, and the agent's suggestion is already filled in as the answer, ready to send or change.
- All questions stay in one card; Send sends one message, each answer with its place, so the agent knows which place each answer is about.
- A question that names no file still gets a chip: AMBA looks for the amounts, invoice numbers, names and dates of the sentence in the workbooks the agent just read or filled and points at those rows; when nothing matches, it points at the file the task delivered. Hover the chip to see how the place was found (Guessed from the content: … or File only, the place is not known).
- In Balanced and Run through, questions with a clear suggestion are taken at once (listed as Agent decided, still open to Choose again); the others are asked in the card and wait on the Board with their chip. Review opens their turn in the chat.
- Every answer field takes @ like the chat box: type
@to pick a project file, then#to point into it (@BCTC.xlsx#KQKD!C12). The agent reads that place with your answer.
Cognitive Modes Comparison
| Mode | Primary Intent | Sandbox Disk Policy | Output Deliverables |
|---|---|---|---|
| 💬 Research | Read-only Q&A, source inspection & calculation assistance | Read-only (read, files, table) | None (chat answers) |
| 📋 Plan | Strategic roadmap, requirements breakdown & formula design | Read-only + Plan drafting under desk/drafts/plans/ | desk/drafts/plans/YYYYMMDD_<slug>.md |
| ⚡ Agent | Autonomous end-to-end execution & deliverable production | Full tool access (workbook, document, deck, edit_file, finish) | Verified files in desk/ (or where you ask) & working papers |
Choosing the Right Mode
| Business Goal | Recommended Mode |
|---|---|
| "Explain the revenue variance between these two CSV files" | Research |
| "Read this rate card and understand our pricing tiers" | Research |
| "Break down the steps and assumptions before building the 3-year model" | Plan |
| "I reviewed the blueprint, go build the financial model" | Agent (via [ Generate Drafts ], then ask for the final version) |
| "Produce the complete Q3 Board Briefing and Excel workbook" | Agent |
🕒 Leaving a Long Turn Running (Autonomy)
A long task can take an hour. Next to the model in the message box, pick how much the agent decides alone while you are away; each project has a default in Project settings → General. The [?] next to each level explains it.
| Level | Questions | Approvals |
|---|---|---|
| Ask me (default) | Every question waits for you, as before | Every approval waits for you |
| Balanced | Answered with the agent's recommended option when it gave exactly one; otherwise the turn stops and asks | A tidy-up into the trash (restorable) is approved |
| Run through | Always the recommended option (else the first), recorded, and the work goes on | A tidy-up into the trash is approved |
- Never decided alone, at any level: sending anything to a person (Telegram, email, delivery), deleting for good, writing over Final, Templates or Sources, and going past your limits. The agent finishes everything else and lists those under Waiting for you.
- Your limits: under the level, Limits (collapsed) takes a maximum of tokens and of minutes for the turn. Reaching one stops at the last saved step and tells you; it never goes on by itself. Continue starts a new allowance.
- Quotas: when the model provider or the AMBA account runs out of quota, the turn learns when it resets and shows Waiting for quota — continues at HH:mm, with Try now and Stop. A daily quota shows the real reset time (midnight Pacific for Google). In Ask me the turn stops as before and the error says when the quota resets.
- Away from the computer: while such a turn runs the computer does not go to sleep (Windows and macOS). When it ends you get a desktop notification and, when the project has an owner chat on Telegram, one short line there: "Done … — decided 3 alone, 52 min, ~180k tokens".
- Review: the answer starts with The agent decided N point(s) alone, and each choice is on the Board as Agent's choice with the options it did not take. Choose again on a choice (under the answer, or on its Board item) lets you pick another option or write your own: AMBA first shows which files go to the trash (restorable), which get their earlier content back, and which in Final, Templates or Sources are left alone; then the agent goes on from exactly that point with your answer, and the old turn stays in the chat marked as chosen again. Choices made before this feature show a [?] instead.
- Add later: when the agent asks for something you do not have yet, press Add later under the question (or answer "later", "skip for now"). The agent leaves a placeholder and goes on, and never asks it again. In Balanced and Run through, what only you have waits this way by itself. These items wait under the answer in Waiting to add later (N), each with its 📍 place and Answer now, and on the Board as Add later until you answer them.
