Overview
Zeus builds a custom System Prompt for every Agent invocation. The prompt is assembled from multiple fixed modules and dynamically injected sections, defining the Agent’s identity, capability boundaries, tool usage rules, and behavioral guidelines. The System Prompt is the most complex component of the Context — the complete input sent to the model on each call.Structure
The System Prompt is assembled in the following order:Build Process
The System Prompt is rebuilt byBaseService._build_system_prompt() on every Agent call. The complete assembly pipeline:
Loading Methods
CORE
Core identity declaration. Defines what Zeus is, what it can do, and what it cannot do.Technical Capabilities
- Frontend: TypeScript, JavaScript, React, Vue, Next.js
- Backend: Python, Node.js, Go, Java
- Databases: PostgreSQL, MySQL, MongoDB, Redis
- Infrastructure: Docker, Kubernetes, AWS, GCP
- AI/ML: LLM integration, RAG, Agent frameworks
General Capabilities
Code generation & explanation, architecture design & review, problem diagnosis & debugging, documentation writing.Limitations
- Cannot access real-time internet information (unless using search tools)
- Cannot perform tasks requiring physical interaction
- Cannot guarantee 100% code correctness — recommends user testing
- Has knowledge cutoff date limitations
SOUL
Personality and communication style. Ensures the Agent maintains a consistent professional image across all interactions.Personality Traits
Communication Rules
- No emoji — unless the user explicitly requests them
- Plain text — avoid excessive formatting
- Professional and concise — avoid redundancy and filler
- Language consistency — reply in whatever language the user uses
TOOLS
Tool usage guide. Describes the five-layer tool hierarchy, priority, and selection rules. Tools are layered by priority: Middleware → Filesystem → External MCP → Sandbox → Knowledge Base. The{tools_description} placeholder is replaced at runtime with the current available tool list and descriptions. The system iterates over all enabled tools, extracts names, descriptions, and parameter schemas, generating a formatted tool description list.
Key Distinction
Tools
Tool hierarchy, mode filtering rules, and complete tool list
WORKFLOW
Task processing methodology. Guides the Agent on how to assess task complexity and choose execution strategies.Quick Response vs Complex Task
Execution Flow
Markdown Reports
Generated when the user explicitly requests them or after completing complex analysis tasks. Not proactively generated for simple Q&A or code modifications.MEMORY
Memory system instructions. This module tells the Agent when to save memories, how to choose types and scopes. It is part of the System Prompt’s fixed modules, providing the behavioral rules for memory operations.High-Priority Trigger Words
When the user’s message contains keywords like “remember”, “I like”, “I don’t like”, “my preference”, “from now on”, “always”, “never”, the Agent should immediately callsave_memory.
Quick Reference
Memory — Full Architecture
Four-layer memory model, memU data architecture, Memory Gate, retrieval ranking, profile generation, and API reference
Mode Prompts
Different mode prompts are injected based on the current mode, constraining the Agent’s tool set and behavioral boundaries:Progressive Disclosure
In Ask mode, write tools are replaced with placeholders — the Agent knows the tools exist but cannot call them. It explains that the current mode cannot modify and suggests switching modes.Skills Injection
When available Skills exist, Zeus injects a compact skill metadata list (name + description) without the full content. The Agent loads complete instructions on-demand via theskill_activate tool.
This keeps the base prompt compact while supporting targeted skill usage.
Skills
SKILL.md definition, management API, built-in skills, and progressive loading strategy
Profile & Memory Injection
At the end of the System Prompt, Zeus injects user profile and relevant memories so the Agent can perceive user context without explicit retrieval:- User Profile — aggregated summary of user preferences, skills, and habits
- Project Profile — current project’s tech stack, constraints, and goals
- Related Memories — historical memories matching the current conversation context
_init_context() during the context assembly phase. Profile data comes from the Memory system’s Layer 3 (Profile Layer), which aggregates individual memory items into structured profiles.