11# PROJECT KNOWLEDGE BASE
22
3- ** Generated:** 2025-12-31T14:05 :00+09:00
4- ** Commit:** 502e9f5
3+ ** Generated:** 2026-01-01T21:15 :00+09:00
4+ ** Commit:** 490c0b6
55** Branch:** dev
66
77## OVERVIEW
@@ -14,12 +14,12 @@ OpenCode plugin implementing Claude Code/AmpCode features. Multi-model agent orc
1414oh-my-opencode/
1515├── src/
1616│ ├── agents/ # AI agents (7): Sisyphus, oracle, librarian, explore, frontend, document-writer, multimodal-looker
17- │ ├── hooks/ # 21 lifecycle hooks - see src/hooks/AGENTS.md
17+ │ ├── hooks/ # 22 lifecycle hooks - see src/hooks/AGENTS.md
1818│ ├── tools/ # LSP, AST-Grep, Grep, Glob, etc. - see src/tools/AGENTS.md
1919│ ├── mcp/ # MCP servers: context7, websearch_exa, grep_app
2020│ ├── features/ # Claude Code compatibility - see src/features/AGENTS.md
2121│ ├── config/ # Zod schema, TypeScript types
22- │ ├── auth/ # Google Antigravity OAuth (antigravity/)
22+ │ ├── auth/ # Google Antigravity OAuth - see src/auth/AGENTS.md
2323│ ├── shared/ # Utilities: deep-merge, pattern-matcher, logger, etc. - see src/shared/AGENTS.md
2424│ ├── cli/ # CLI installer, doctor, run - see src/cli/AGENTS.md
2525│ └── index.ts # Main plugin entry (OhMyOpenCodePlugin)
@@ -38,14 +38,16 @@ oh-my-opencode/
3838| Add MCP | ` src/mcp/ ` | Create config, add to index.ts and types.ts |
3939| LSP behavior | ` src/tools/lsp/ ` | client.ts (connection), tools.ts (handlers) |
4040| AST-Grep | ` src/tools/ast-grep/ ` | napi.ts for @ast-grep/napi binding |
41- | Google OAuth | ` src/auth/antigravity/ ` | OAuth plugin for Google models |
41+ | Google OAuth | ` src/auth/antigravity/ ` | OAuth plugin for Google/Gemini models |
4242| Config schema | ` src/config/schema.ts ` | Zod schema, run ` bun run build:schema ` after changes |
4343| Claude Code compat | ` src/features/claude-code-*-loader/ ` | Command, skill, agent, mcp loaders |
4444| Background agents | ` src/features/background-agent/ ` | manager.ts for task management |
4545| Interactive terminal | ` src/tools/interactive-bash/ ` | tmux session management |
4646| CLI installer | ` src/cli/install.ts ` | Interactive TUI installation |
4747| Doctor checks | ` src/cli/doctor/checks/ ` | Health checks for environment |
4848| Shared utilities | ` src/shared/ ` | Cross-cutting utilities |
49+ | Slash commands | ` src/hooks/auto-slash-command/ ` | Auto-detect and execute ` /command ` patterns |
50+ | Ralph Loop | ` src/hooks/ralph-loop/ ` | Self-referential dev loop until completion |
4951
5052## CONVENTIONS
5153
@@ -70,6 +72,8 @@ oh-my-opencode/
7072- ** Over-exploration** : Stop searching when sufficient context found
7173- ** High temperature** : Don't use >0.3 for code-related agents
7274- ** Broad tool access** : Prefer explicit ` include ` over unrestricted access
75+ - ** Sequential agent calls** : Use ` background_task ` for parallel execution
76+ - ** Heavy PreToolUse logic** : Slows every tool call
7377
7478## UNIQUE STYLES
7579
@@ -80,6 +84,7 @@ oh-my-opencode/
8084- ** Agent tools** : ` tools: { include: [...] } ` or ` tools: { exclude: [...] } `
8185- ** Temperature** : Most agents use ` 0.1 ` for consistency
8286- ** Hook naming** : ` createXXXHook ` function convention
87+ - ** Factory pattern** : Components created via ` createXXX() ` functions
8388
8489## AGENT MODELS
8590
@@ -123,11 +128,12 @@ bun test # Run tests
123128
124129| File | Lines | Description |
125130| ------| -------| -------------|
126- | ` src/index.ts ` | 690 | Main plugin orchestration, all hook/tool initialization |
127- | ` src/hooks/anthropic-context-window-limit-recovery/executor.ts ` | 670 | Session compaction, multi-stage recovery pipeline |
128- | ` src/cli/config-manager.ts ` | 669 | JSONC parsing, environment detection, installation |
129- | ` src/auth/antigravity/fetch.ts ` | 621 | Token refresh, URL rewriting, endpoint fallbacks |
130- | ` src/tools/lsp/client.ts ` | 611 | LSP protocol, stdin/stdout buffering, JSON-RPC |
131+ | ` src/index.ts ` | 697 | Main plugin orchestration, all hook/tool initialization |
132+ | ` src/cli/config-manager.ts ` | 670 | JSONC parsing, environment detection, installation |
133+ | ` src/auth/antigravity/fetch.ts ` | 622 | Token refresh, URL rewriting, endpoint fallbacks |
134+ | ` src/tools/lsp/client.ts ` | 612 | LSP protocol, stdin/stdout buffering, JSON-RPC |
135+ | ` src/hooks/anthropic-context-window-limit-recovery/executor.ts ` | 555 | Session compaction, multi-stage recovery pipeline |
136+ | ` src/agents/sisyphus.ts ` | 505 | Orchestrator prompt, delegation strategies |
131137
132138## NOTES
133139
@@ -137,3 +143,4 @@ bun test # Run tests
137143- ** Config** : ` ~/.config/opencode/oh-my-opencode.json ` (user) or ` .opencode/oh-my-opencode.json ` (project)
138144- ** Trusted deps** : @ast-grep/cli , @ast-grep/napi , @code-yeongyu/comment-checker
139145- ** JSONC support** : Config files support comments (` // comment ` , ` /* block */ ` ) and trailing commas
146+ - ** Claude Code Compat** : Full compatibility layer for settings.json hooks, commands, skills, agents, MCPs
0 commit comments