Skip to content

🧠 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 workings/plans/YYYYMMDD_<slug>.md
└── ⚡ 3. Agent (Autonomous Execution) ➔ Compiles native Office (Excel, Word, PowerPoint) and vector PDF deliverables
READ-ONLY

💬 Research Mode

Pure Read-Only Inspection

Exploration, formula verification & analytical calculation. Zero disk writes.

1-Click Knowledge Ingest
HARD-LOCKED

📋 Plan Mode

Hard-Locked Strategic Blueprint

Rigorous strategic blueprint saved to workings/plans/YYYYMMDD_<slug>.md.

Review & Approve
🚀 Approve & Execute Plan
AUTONOMOUS

⚡ Agent Mode

Autonomous Delivery to reports/

Autonomous multi-step runtime compiling verified board-ready deliverables.

📦Native Excel (.xlsx)
📦Word Briefings (.docx)
📦16:9 Slides (.pptx)
📦Vector PDF

⚡ TypeSafe AI (Jev — System 1 Decision Engine) Auto-Routing ​

Rather than manually toggling modes for every prompt, AMBA supports TypeSafe AI (Jev — System 1 Decision Engine) as an experimental auto-routing engine:

  • Sub-Second Intent Classification: Evaluates incoming prompts in milliseconds to classify the optimal operational mode (Research, Plan, or Agent).
  • Real-Time Latency Badge: When active, AMBA displays a real-time badge in the chat composer (e.g., Jev · 68ms) confirming sub-second classification.
  • Configured in Step 3 of Model Settings: Easily enabled with your TypeSafe API key in Model Settings > Step 3 (Advanced & Experimental Routing).

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 (filesystem_read, excel_read, pdf_read), deterministic analytical SQL queries (accounting_sql_query, accounting_load_file), and web search (when enabled).
  • Persistent Knowledge Ingest: When the agent discovers critical business rules, tax codes, or definitions, you can ingest them into persistent local SQLite memory with 1 click using the message action button.
  • 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, shell commands 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 (workings/plans/YYYYMMDD_<slug>.md):
    • Every plan is saved directly to disk as a dated Markdown artifact: workings/plans/YYYYMMDD_<short_slug>.md (e.g. workings/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 a one-click action trigger: [ 🚀 Approve & Execute Plan ].
  • Hard Restriction: Hard-locked against direct deliverables. The agent can only draft plans under workings/plans/. Writing deliverables in the workspace 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 workspace (by default the report folder reports/).
  • Approved Plan Execution: When triggered via [ 🚀 Execute Plan ], Agent mode loads the dated blueprint ([EXECUTE PLAN: workings/plans/YYYYMMDD_<slug>.md]), verifies prerequisites, executes each milestone step, and marks the plan status as Executed.
  • In-Tree Artifact Factory (No Python, LibreOffice, Node, or cloud sidecars):
    • Native Excel workbooks (.xlsx) via excel_write / accounting_export_table_to_xlsx with dynamic XML formulas.
    • Native Word executive briefings (.docx) via docx_write.
    • Native 16:9 widescreen PowerPoint decks (.pptx) via pptx_write.
    • Vector-rendered PDFs (.pdf) via pdf_generate.
    • Markdown briefs (.md) via filesystem_write with automatic synchronized PDF compilation.
  • 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:

  1. Internal Reasoning in Technical English: The model conducts all internal chain-of-thought, arithmetic formulas, and tool parameter calls inside <thought> blocks strictly in Technical English. This prevents parameter distortion, token bloat, and translation hallucinations.
  2. 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).

Cognitive Modes Comparison ​

ModePrimary IntentSandbox Disk PolicyOutput Deliverables
💬 ResearchRead-only Q&A, source inspection & calculation assistanceRead-only (filesystem_read, excel_read, pdf_read, sql)None (Chat answers + 1-Click Knowledge Ingest)
📋 PlanStrategic roadmap, requirements breakdown & formula designRead-only + Plan drafting under workings/plans/workings/plans/YYYYMMDD_<slug>.md
⚡ AgentAutonomous end-to-end execution & deliverable productionFull tool access (excel_write, docx_write, pptx_write, pdf_generate)Verified files in reports/ (or where you ask) & working papers

Choosing the Right Mode ​

Business GoalRecommended Mode
"Explain the revenue variance between these two CSV files"Research
"Read this rate card and understand our pricing tiers"Research (+ Ingest to Knowledge)
"Break down the steps and assumptions before building the 3-year model"Plan
"I reviewed the blueprint, go build the financial model"Agent (via [ 🚀 Execute Plan ])
"Produce the complete Q3 Board Briefing and Excel workbook"Agent