2025-12-28 17:40:51 +09:00
|
|
|
# AGENTS KNOWLEDGE BASE
|
|
|
|
|
|
|
|
|
|
## OVERVIEW
|
2026-02-01 19:26:57 +09:00
|
|
|
|
|
|
|
|
11 AI agents for multi-model orchestration. Each agent has factory function + metadata + fallback chains.
|
|
|
|
|
|
|
|
|
|
**Primary Agents** (respect UI model selection):
|
|
|
|
|
- Sisyphus, Atlas, Prometheus
|
|
|
|
|
|
|
|
|
|
**Subagents** (use own fallback chains):
|
|
|
|
|
- Hephaestus, Oracle, Librarian, Explore, Multimodal-Looker, Metis, Momus, Sisyphus-Junior
|
2025-12-28 17:40:51 +09:00
|
|
|
|
|
|
|
|
## STRUCTURE
|
|
|
|
|
```
|
|
|
|
|
agents/
|
2026-01-26 11:48:30 +09:00
|
|
|
├── atlas.ts # Master Orchestrator (holds todo list)
|
|
|
|
|
├── sisyphus.ts # Main prompt (SF Bay Area engineer identity)
|
2026-02-01 19:26:57 +09:00
|
|
|
├── hephaestus.ts # Autonomous Deep Worker (GPT 5.2 Codex, "The Legitimate Craftsman")
|
2026-01-26 11:48:30 +09:00
|
|
|
├── sisyphus-junior.ts # Delegated task executor (category-spawned)
|
2026-01-17 22:01:56 +09:00
|
|
|
├── oracle.ts # Strategic advisor (GPT-5.2)
|
2026-01-26 11:48:30 +09:00
|
|
|
├── librarian.ts # Multi-repo research (GitHub CLI, Context7)
|
2026-02-01 19:26:57 +09:00
|
|
|
├── explore.ts # Fast contextual grep (Claude Haiku)
|
2026-01-17 22:01:56 +09:00
|
|
|
├── multimodal-looker.ts # Media analyzer (Gemini 3 Flash)
|
2026-02-01 19:26:57 +09:00
|
|
|
├── prometheus-prompt.ts # Planning (Interview/Consultant mode, 1283 lines)
|
2026-01-26 11:48:30 +09:00
|
|
|
├── metis.ts # Pre-planning analysis (Gap detection)
|
|
|
|
|
├── momus.ts # Plan reviewer (Ruthless fault-finding)
|
2026-01-26 14:56:55 +09:00
|
|
|
├── dynamic-agent-prompt-builder.ts # Dynamic prompt generation
|
2026-01-22 22:48:50 +09:00
|
|
|
├── types.ts # AgentModelConfig, AgentPromptMetadata
|
|
|
|
|
├── utils.ts # createBuiltinAgents(), resolveModelWithFallback()
|
2026-01-17 22:01:56 +09:00
|
|
|
└── index.ts # builtinAgents export
|
2025-12-28 17:40:51 +09:00
|
|
|
```
|
|
|
|
|
|
2026-01-17 22:01:56 +09:00
|
|
|
## AGENT MODELS
|
2026-01-23 02:14:08 +09:00
|
|
|
| Agent | Model | Temp | Purpose |
|
|
|
|
|
|-------|-------|------|---------|
|
2026-01-30 16:15:00 +09:00
|
|
|
| Sisyphus | anthropic/claude-opus-4-5 | 0.1 | Primary orchestrator (fallback: kimi-k2.5 → glm-4.7 → gpt-5.2-codex → gemini-3-pro) |
|
2026-02-01 19:26:57 +09:00
|
|
|
| Hephaestus | openai/gpt-5.2-codex | 0.1 | Autonomous deep worker, "The Legitimate Craftsman" (requires gpt-5.2-codex, no fallback) |
|
2026-01-30 14:52:45 +09:00
|
|
|
| Atlas | anthropic/claude-sonnet-4-5 | 0.1 | Master orchestrator (fallback: kimi-k2.5 → gpt-5.2) |
|
2026-01-23 02:14:08 +09:00
|
|
|
| oracle | openai/gpt-5.2 | 0.1 | Consultation, debugging |
|
2026-01-30 14:52:45 +09:00
|
|
|
| librarian | zai-coding-plan/glm-4.7 | 0.1 | Docs, GitHub search (fallback: glm-4.7-free) |
|
|
|
|
|
| explore | anthropic/claude-haiku-4-5 | 0.1 | Fast contextual grep (fallback: gpt-5-mini → gpt-5-nano) |
|
2026-01-24 15:30:35 +09:00
|
|
|
| multimodal-looker | google/gemini-3-flash | 0.1 | PDF/image analysis |
|
2026-01-30 14:52:45 +09:00
|
|
|
| Prometheus | anthropic/claude-opus-4-5 | 0.1 | Strategic planning (fallback: kimi-k2.5 → gpt-5.2) |
|
|
|
|
|
| Metis | anthropic/claude-opus-4-5 | 0.3 | Pre-planning analysis (fallback: kimi-k2.5 → gpt-5.2) |
|
|
|
|
|
| Momus | openai/gpt-5.2 | 0.1 | Plan validation (fallback: claude-opus-4-5) |
|
2026-01-22 22:48:50 +09:00
|
|
|
| Sisyphus-Junior | anthropic/claude-sonnet-4-5 | 0.1 | Category-spawned executor |
|
2026-01-17 22:01:56 +09:00
|
|
|
|
|
|
|
|
## HOW TO ADD
|
2026-01-26 11:48:30 +09:00
|
|
|
1. Create `src/agents/my-agent.ts` exporting factory + metadata.
|
|
|
|
|
2. Add to `agentSources` in `src/agents/utils.ts`.
|
|
|
|
|
3. Update `AgentNameSchema` in `src/config/schema.ts`.
|
|
|
|
|
4. Register in `src/index.ts` initialization.
|
2025-12-28 17:40:51 +09:00
|
|
|
|
2026-01-17 22:01:56 +09:00
|
|
|
## TOOL RESTRICTIONS
|
|
|
|
|
| Agent | Denied Tools |
|
|
|
|
|
|-------|-------------|
|
|
|
|
|
| oracle | write, edit, task, delegate_task |
|
|
|
|
|
| librarian | write, edit, task, delegate_task, call_omo_agent |
|
|
|
|
|
| explore | write, edit, task, delegate_task, call_omo_agent |
|
2026-01-22 22:48:50 +09:00
|
|
|
| multimodal-looker | Allowlist: read only |
|
2026-01-23 02:14:08 +09:00
|
|
|
| Sisyphus-Junior | task, delegate_task |
|
2026-01-17 22:01:56 +09:00
|
|
|
|
2026-01-23 02:14:08 +09:00
|
|
|
## PATTERNS
|
2026-01-26 11:48:30 +09:00
|
|
|
- **Factory**: `createXXXAgent(model: string): AgentConfig`
|
|
|
|
|
- **Metadata**: `XXX_PROMPT_METADATA` with category, cost, triggers.
|
|
|
|
|
- **Tool restrictions**: `createAgentToolRestrictions(tools)` or `createAgentToolAllowlist(tools)`.
|
|
|
|
|
- **Thinking**: 32k budget tokens for Sisyphus, Oracle, Prometheus, Atlas.
|
2026-01-17 19:16:49 +09:00
|
|
|
|
2026-01-13 21:00:00 +09:00
|
|
|
## ANTI-PATTERNS
|
2026-01-26 11:48:30 +09:00
|
|
|
- **Trust reports**: NEVER trust "I'm done" - verify outputs.
|
|
|
|
|
- **High temp**: Don't use >0.3 for code agents.
|
|
|
|
|
- **Sequential calls**: Use `delegate_task` with `run_in_background` for exploration.
|
|
|
|
|
- **Prometheus writing code**: Planner only - never implements.
|