PersonaChatMode
The autonomous control loop that orchestrates task execution, manages reasoning state, and defines the agent's problem-solving persona.
Core Architecture
Stateful
Strategy Engine
⌨️ User Prompt (Expansion Syntax)
@[Refactor|Optimize] the
@{AuthModule}
using @(1..3) parallel workers.
→
🧠 Session UI (Tabbed Display)
Plan
Run
State
Output
Executing: FileModificationTask
✔ Applying patch to AuthProvider.kt...
ℹ Persona: Scientific Method
⚠ Hypothesis: Concurrency may cause race condition.
ℹ Persona: Scientific Method
⚠ Hypothesis: Concurrency may cause race condition.
Architectural Patterns
| Mode Name | Architecture | Best Use Case |
|---|---|---|
| WaterfallMode | Plan -> Review -> Execute |
Well-defined problems requiring roadmap approval. |
| ConversationalMode | Listen -> Act -> Reply |
Interactive debugging or simple "Chat with Code". |
| AdaptivePlanningMode | Loop(Think -> Act -> Reflect) |
Complex goals requiring research and self-correction. |
| PersonaChatMode | Persona -> Expand -> Execute |
High-level orchestration with complex state management. |