11# PROJECT KNOWLEDGE BASE
22
3- ** Generated:** 2025-12-28T19:26 :00+09:00
4- ** Commit:** 122e918
3+ ** Generated:** 2025-12-31T14:05 :00+09:00
4+ ** Commit:** 502e9f5
55** Branch:** dev
66
77## OVERVIEW
@@ -20,7 +20,8 @@ oh-my-opencode/
2020│ ├── features/ # Claude Code compatibility - see src/features/AGENTS.md
2121│ ├── config/ # Zod schema, TypeScript types
2222│ ├── auth/ # Google Antigravity OAuth (antigravity/)
23- │ ├── shared/ # Utilities: deep-merge, pattern-matcher, logger, etc.
23+ │ ├── shared/ # Utilities: deep-merge, pattern-matcher, logger, etc. - see src/shared/AGENTS.md
24+ │ ├── cli/ # CLI installer, doctor, run - see src/cli/AGENTS.md
2425│ └── index.ts # Main plugin entry (OhMyOpenCodePlugin)
2526├── script/ # build-schema.ts, publish.ts, generate-changelog.ts
2627├── assets/ # JSON schema
@@ -34,14 +35,17 @@ oh-my-opencode/
3435| Add agent | ` src/agents/ ` | Create .ts, add to builtinAgents in index.ts, update types.ts |
3536| Add hook | ` src/hooks/ ` | Create dir with createXXXHook(), export from index.ts |
3637| Add tool | ` src/tools/ ` | Dir with index/types/constants/tools.ts, add to builtinTools |
37- | Add MCP | ` src/mcp/ ` | Create config, add to index.ts |
38+ | Add MCP | ` src/mcp/ ` | Create config, add to index.ts and types.ts |
3839| LSP behavior | ` src/tools/lsp/ ` | client.ts (connection), tools.ts (handlers) |
3940| AST-Grep | ` src/tools/ast-grep/ ` | napi.ts for @ast-grep/napi binding |
4041| Google OAuth | ` src/auth/antigravity/ ` | OAuth plugin for Google models |
4142| Config schema | ` src/config/schema.ts ` | Zod schema, run ` bun run build:schema ` after changes |
4243| Claude Code compat | ` src/features/claude-code-*-loader/ ` | Command, skill, agent, mcp loaders |
4344| Background agents | ` src/features/background-agent/ ` | manager.ts for task management |
4445| Interactive terminal | ` src/tools/interactive-bash/ ` | tmux session management |
46+ | CLI installer | ` src/cli/install.ts ` | Interactive TUI installation |
47+ | Doctor checks | ` src/cli/doctor/checks/ ` | Health checks for environment |
48+ | Shared utilities | ` src/shared/ ` | Cross-cutting utilities |
4549
4650## CONVENTIONS
4751
@@ -64,6 +68,8 @@ oh-my-opencode/
6468- ** Year 2024** : NEVER use 2024 in code/prompts (use current year)
6569- ** Rush completion** : Never mark tasks complete without verification
6670- ** Over-exploration** : Stop searching when sufficient context found
71+ - ** High temperature** : Don't use >0.3 for code-related agents
72+ - ** Broad tool access** : Prefer explicit ` include ` over unrestricted access
6773
6874## UNIQUE STYLES
6975
@@ -109,8 +115,19 @@ bun test # Run tests
109115
110116## CI PIPELINE
111117
112- - ** ci.yml** : Parallel test/typecheck, build verification, auto-commit schema on master
118+ - ** ci.yml** : Parallel test/typecheck, build verification, auto-commit schema on master, rolling ` next ` draft release
113119- ** publish.yml** : Manual workflow_dispatch, version bump, changelog, OIDC npm publish
120+ - ** sisyphus-agent.yml** : Agent-in-CI for automated issue handling via ` @sisyphus-dev-ai ` mentions
121+
122+ ## COMPLEXITY HOTSPOTS
123+
124+ | File | Lines | Description |
125+ | ------| -------| -------------|
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 |
114131
115132## NOTES
116133
@@ -119,3 +136,4 @@ bun test # Run tests
119136- ** Multi-lang docs** : README.md (EN), README.ko.md (KO), README.ja.md (JA), README.zh-cn.md (ZH-CN)
120137- ** Config** : ` ~/.config/opencode/oh-my-opencode.json ` (user) or ` .opencode/oh-my-opencode.json ` (project)
121138- ** Trusted deps** : @ast-grep/cli , @ast-grep/napi , @code-yeongyu/comment-checker
139+ - ** JSONC support** : Config files support comments (` // comment ` , ` /* block */ ` ) and trailing commas
0 commit comments