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-02-06 17:20:19 +09:00
|
|
|
├── atlas/ # Master Orchestrator (holds todo list)
|
|
|
|
|
│ ├── index.ts
|
2026-02-06 18:59:58 +09:00
|
|
|
│ ├── default.ts # Claude-optimized prompt (390 lines)
|
|
|
|
|
│ ├── gpt.ts # GPT-optimized prompt (330 lines)
|
2026-02-06 17:20:19 +09:00
|
|
|
│ └── utils.ts
|
2026-02-06 18:59:58 +09:00
|
|
|
├── prometheus/ # Planning Agent (Interview/Consultant mode)
|
|
|
|
|
│ ├── index.ts
|
|
|
|
|
│ ├── plan-template.ts # Work plan structure (423 lines)
|
|
|
|
|
│ ├── interview-mode.ts # Interview flow (335 lines)
|
|
|
|
|
│ ├── plan-generation.ts
|
|
|
|
|
│ ├── high-accuracy-mode.ts
|
|
|
|
|
│ ├── identity-constraints.ts # Identity rules (301 lines)
|
|
|
|
|
│ └── behavioral-summary.ts
|
2026-02-06 17:20:19 +09:00
|
|
|
├── sisyphus-junior/ # Delegated task executor (category-spawned)
|
|
|
|
|
│ ├── index.ts
|
|
|
|
|
│ ├── default.ts
|
|
|
|
|
│ └── gpt.ts
|
2026-02-06 18:59:58 +09:00
|
|
|
├── sisyphus.ts # Main orchestrator prompt (530 lines)
|
|
|
|
|
├── hephaestus.ts # Autonomous deep worker (618 lines, GPT 5.3 Codex)
|
2026-01-17 22:01:56 +09:00
|
|
|
├── oracle.ts # Strategic advisor (GPT-5.2)
|
2026-02-06 18:59:58 +09:00
|
|
|
├── librarian.ts # Multi-repo research (328 lines)
|
|
|
|
|
├── explore.ts # Fast contextual grep
|
2026-01-17 22:01:56 +09:00
|
|
|
├── multimodal-looker.ts # Media analyzer (Gemini 3 Flash)
|
2026-02-06 18:59:58 +09:00
|
|
|
├── metis.ts # Pre-planning analysis (347 lines)
|
|
|
|
|
├── momus.ts # Plan reviewer
|
|
|
|
|
├── dynamic-agent-prompt-builder.ts # Dynamic prompt generation (431 lines)
|
2026-01-22 22:48:50 +09:00
|
|
|
├── types.ts # AgentModelConfig, AgentPromptMetadata
|
2026-02-06 18:59:58 +09:00
|
|
|
├── utils.ts # createBuiltinAgents(), resolveModelWithFallback() (485 lines)
|
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-02-06 14:21:15 +09:00
|
|
|
| Sisyphus | anthropic/claude-opus-4-6 | 0.1 | Primary orchestrator (fallback: kimi-k2.5 → glm-4.7 → gpt-5.3-codex → gemini-3-pro) |
|
2026-02-06 14:20:05 +09:00
|
|
|
| Hephaestus | openai/gpt-5.3-codex | 0.1 | Autonomous deep worker, "The Legitimate Craftsman" (requires gpt-5.3-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) |
|
2026-02-02 21:19:21 +09:00
|
|
|
| explore | xai/grok-code-fast-1 | 0.1 | Fast contextual grep (fallback: claude-haiku-4-5 → 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-02-06 14:21:15 +09:00
|
|
|
| Prometheus | anthropic/claude-opus-4-6 | 0.1 | Strategic planning (fallback: kimi-k2.5 → gpt-5.2) |
|
|
|
|
|
| Metis | anthropic/claude-opus-4-6 | 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-6) |
|
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 |
|
|
|
|
|
|-------|-------------|
|
2026-02-06 16:01:54 +09:00
|
|
|
| oracle | write, edit, task, task |
|
|
|
|
|
| librarian | write, edit, task, task, call_omo_agent |
|
|
|
|
|
| explore | write, edit, task, task, call_omo_agent |
|
2026-01-22 22:48:50 +09:00
|
|
|
| multimodal-looker | Allowlist: read only |
|
2026-02-06 16:01:54 +09:00
|
|
|
| Sisyphus-Junior | task, task |
|
2026-02-06 18:59:58 +09:00
|
|
|
| Atlas | task, call_omo_agent |
|
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`
|
2026-02-06 18:59:58 +09:00
|
|
|
- **Metadata**: `XXX_PROMPT_METADATA` with category, cost, triggers
|
|
|
|
|
- **Tool restrictions**: `createAgentToolRestrictions(tools)` or `createAgentToolAllowlist(tools)`
|
|
|
|
|
- **Thinking**: 32k budget tokens for Sisyphus, Oracle, Prometheus, Atlas
|
|
|
|
|
- **Model-specific routing**: Atlas, Sisyphus-Junior have GPT vs Claude prompt variants
|
2026-01-17 19:16:49 +09:00
|
|
|
|
2026-01-13 21:00:00 +09:00
|
|
|
## ANTI-PATTERNS
|
2026-02-06 18:59:58 +09:00
|
|
|
- **Trust reports**: NEVER trust "I'm done" - verify outputs
|
|
|
|
|
- **High temp**: Don't use >0.3 for code agents
|
2026-02-06 16:01:54 +09:00
|
|
|
- **Sequential calls**: Use `task` with `run_in_background` for exploration
|
2026-02-06 18:59:58 +09:00
|
|
|
- **Prometheus writing code**: Planner only - never implements
|