2025-12-28 17:40:51 +09:00
|
|
|
# AGENTS KNOWLEDGE BASE
|
|
|
|
|
|
|
|
|
|
## OVERVIEW
|
2026-01-17 22:01:56 +09:00
|
|
|
|
2026-01-22 22:48:50 +09:00
|
|
|
10 AI agents for multi-model orchestration. Sisyphus (primary), Atlas (orchestrator), oracle, librarian, explore, multimodal-looker, Prometheus, Metis, Momus, Sisyphus-Junior.
|
2025-12-28 17:40:51 +09:00
|
|
|
|
|
|
|
|
## STRUCTURE
|
2026-01-17 22:01:56 +09:00
|
|
|
|
2025-12-28 17:40:51 +09:00
|
|
|
```
|
|
|
|
|
agents/
|
2026-01-22 22:48:50 +09:00
|
|
|
├── atlas.ts # Master Orchestrator (1383 lines) - 7-phase delegation
|
2026-01-20 18:55:18 +09:00
|
|
|
├── sisyphus.ts # Main prompt (615 lines)
|
2026-01-22 22:48:50 +09:00
|
|
|
├── sisyphus-junior.ts # Delegated task executor (136 lines)
|
|
|
|
|
├── dynamic-agent-prompt-builder.ts # Dynamic prompt generation (360 lines)
|
2026-01-17 22:01:56 +09:00
|
|
|
├── oracle.ts # Strategic advisor (GPT-5.2)
|
|
|
|
|
├── librarian.ts # Multi-repo research (GLM-4.7-free)
|
|
|
|
|
├── explore.ts # Fast grep (Grok Code)
|
|
|
|
|
├── multimodal-looker.ts # Media analyzer (Gemini 3 Flash)
|
|
|
|
|
├── prometheus-prompt.ts # Planning (1196 lines) - interview mode
|
|
|
|
|
├── metis.ts # Plan consultant - pre-planning analysis
|
|
|
|
|
├── momus.ts # Plan reviewer - validation
|
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
|
|
|
|
|
|
|
|
|
|
| Agent | Model | Temperature | Purpose |
|
|
|
|
|
|-------|-------|-------------|---------|
|
|
|
|
|
| Sisyphus | anthropic/claude-opus-4-5 | 0.1 | Primary orchestrator, todo-driven |
|
2026-01-22 22:48:50 +09:00
|
|
|
| Atlas | anthropic/claude-opus-4-5 | 0.1 | Master orchestrator, delegate_task |
|
2026-01-17 22:01:56 +09:00
|
|
|
| oracle | openai/gpt-5.2 | 0.1 | Read-only consultation, debugging |
|
|
|
|
|
| librarian | opencode/glm-4.7-free | 0.1 | Docs, GitHub search, OSS examples |
|
|
|
|
|
| explore | opencode/grok-code | 0.1 | Fast contextual grep |
|
|
|
|
|
| multimodal-looker | google/gemini-3-flash | 0.1 | PDF/image analysis |
|
|
|
|
|
| Prometheus | anthropic/claude-opus-4-5 | 0.1 | Strategic planning, interview mode |
|
2026-01-22 22:48:50 +09:00
|
|
|
| Metis | anthropic/claude-sonnet-4-5 | 0.3 | Pre-planning gap analysis |
|
2026-01-17 22:01:56 +09:00
|
|
|
| Momus | anthropic/claude-sonnet-4-5 | 0.1 | Plan validation |
|
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
|
2025-12-28 17:40:51 +09:00
|
|
|
|
2026-01-22 22:48:50 +09:00
|
|
|
1. Create `src/agents/my-agent.ts` exporting factory + metadata
|
|
|
|
|
2. Add to `agentSources` in `src/agents/utils.ts`
|
2026-01-17 22:01:56 +09:00
|
|
|
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 |
|
|
|
|
|
| Sisyphus-Junior | task, delegate_task (cannot spawn implementation agents) |
|
2026-01-17 22:01:56 +09:00
|
|
|
|
|
|
|
|
## KEY PATTERNS
|
|
|
|
|
|
|
|
|
|
- **Factory**: `createXXXAgent(model?: string): AgentConfig`
|
2026-01-22 22:48:50 +09:00
|
|
|
- **Metadata**: `XXX_PROMPT_METADATA: AgentPromptMetadata` with category, cost, triggers
|
|
|
|
|
- **Tool restrictions**: `createAgentToolRestrictions(tools)` or `createAgentToolAllowlist(tools)`
|
|
|
|
|
- **Thinking**: 32k budget tokens for Sisyphus, Oracle, Prometheus, Atlas
|
|
|
|
|
- **Model-specific**: GPT uses `reasoningEffort`, Anthropic uses `thinking` budget
|
2026-01-17 19:16:49 +09:00
|
|
|
|
2026-01-13 21:00:00 +09:00
|
|
|
## ANTI-PATTERNS
|
2026-01-17 22:01:56 +09:00
|
|
|
|
|
|
|
|
- **Trust reports**: NEVER trust subagent "I'm done" - verify outputs
|
|
|
|
|
- **High temp**: Don't use >0.3 for code agents
|
|
|
|
|
- **Sequential calls**: Use `delegate_task` with `run_in_background`
|
2026-01-22 22:48:50 +09:00
|
|
|
- **Missing metadata**: Every agent needs `XXX_PROMPT_METADATA` export
|