From 1f8f7b592be0d3c82966ec2d842e50580390801f Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Sun, 8 Feb 2026 17:51:30 +0900 Subject: [PATCH] docs(AGENTS): update line counts and stats across all AGENTS.md files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Update main AGENTS.md with current file sizes - Update complexity hotspot line counts - Update agent count from 11 to 32 files - Update CLI utility count to 70 - Update test file count from 100+ to 163 🤖 Generated with assistance of OhMyOpenCode --- AGENTS.md | 25 ++++++++++++++----------- src/agents/AGENTS.md | 2 +- src/cli/AGENTS.md | 2 +- src/hooks/AGENTS.md | 2 +- src/mcp/AGENTS.md | 2 +- src/shared/AGENTS.md | 2 +- src/tools/AGENTS.md | 2 +- 7 files changed, 20 insertions(+), 17 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 62d7cd92..bdce1b27 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,7 +1,7 @@ # PROJECT KNOWLEDGE BASE **Generated:** 2026-02-08T16:45:00+09:00 -**Commit:** f2b7b75 +**Commit:** edee865f **Branch:** dev --- @@ -135,8 +135,8 @@ oh-my-opencode/ │ ├── cli/ # CLI installer, doctor - see src/cli/AGENTS.md │ ├── mcp/ # Built-in MCPs - see src/mcp/AGENTS.md │ ├── config/ # Zod schema (schema.ts 455 lines), TypeScript types -│ ├── plugin-handlers/ # Plugin config loading (config-handler.ts 501 lines) -│ ├── index.ts # Main plugin entry (924 lines) +│ ├── plugin-handlers/ # Plugin config loading (config-handler.ts 562 lines) +│ ├── index.ts # Main plugin entry (999 lines) │ ├── plugin-config.ts # Config loading orchestration │ └── plugin-state.ts # Model cache state ├── script/ # build-schema.ts, build-binaries.ts, publish.ts @@ -170,7 +170,7 @@ oh-my-opencode/ **Rules:** - NEVER write implementation before test - NEVER delete failing tests - fix the code -- Test file: `*.test.ts` alongside source (100+ test files) +- Test file: `*.test.ts` alongside source (163 test files) - BDD comments: `//#given`, `//#when`, `//#then` ## CONVENTIONS @@ -180,7 +180,7 @@ oh-my-opencode/ - **Build**: `bun build` (ESM) + `tsc --emitDeclarationOnly` - **Exports**: Barrel pattern via index.ts - **Naming**: kebab-case dirs, `createXXXHook`/`createXXXTool` factories -- **Testing**: BDD comments, 100+ test files +- **Testing**: BDD comments, 163 test files - **Temperature**: 0.1 for code agents, max 0.3 ## ANTI-PATTERNS @@ -241,19 +241,22 @@ bun test # 100+ test files | File | Lines | Description | |------|-------|-------------| -| `src/features/background-agent/manager.ts` | 1556 | Task lifecycle, concurrency | +| `src/features/background-agent/manager.ts` | 1642 | Task lifecycle, concurrency | | `src/features/builtin-skills/skills/git-master.ts` | 1107 | Git master skill definition | -| `src/tools/delegate-task/executor.ts` | 983 | Category-based delegation executor | -| `src/index.ts` | 924 | Main plugin entry | -| `src/tools/lsp/client.ts` | 803 | LSP client operations | -| `src/hooks/atlas/index.ts` | 770 | Orchestrator hook | -| `src/tools/background-task/tools.ts` | 734 | Background task tools | +| `src/index.ts` | 999 | Main plugin entry | +| `src/tools/delegate-task/executor.ts` | 969 | Category-based delegation executor | +| `src/tools/lsp/client.ts` | 851 | LSP client operations | +| `src/tools/background-task/tools.ts` | 757 | Background task tools | +| `src/hooks/atlas/index.ts` | 697 | Orchestrator hook | | `src/cli/config-manager.ts` | 667 | JSONC config parsing | | `src/features/skill-mcp-manager/manager.ts` | 640 | MCP client lifecycle | | `src/features/builtin-commands/templates/refactor.ts` | 619 | Refactor command template | | `src/agents/hephaestus.ts` | 618 | Autonomous deep worker agent | +| `src/agents/utils.ts` | 571 | Agent creation, model fallback resolution | +| `src/plugin-handlers/config-handler.ts` | 562 | Plugin config loading | | `src/tools/delegate-task/constants.ts` | 552 | Delegation constants | | `src/cli/install.ts` | 542 | Interactive CLI installer | +| `src/hooks/task-continuation-enforcer.ts` | 530 | Task completion enforcement | | `src/agents/sisyphus.ts` | 530 | Main orchestrator agent | ## MCP ARCHITECTURE diff --git a/src/agents/AGENTS.md b/src/agents/AGENTS.md index 1cbf91d3..36490200 100644 --- a/src/agents/AGENTS.md +++ b/src/agents/AGENTS.md @@ -2,7 +2,7 @@ ## OVERVIEW -11 AI agents for multi-model orchestration. Each agent has factory function + metadata + fallback chains. +32 files containing AI agents and utilities for multi-model orchestration. Each agent has factory function + metadata + fallback chains. **Primary Agents** (respect UI model selection): - Sisyphus, Atlas, Prometheus diff --git a/src/cli/AGENTS.md b/src/cli/AGENTS.md index eced5d81..9f9d8371 100644 --- a/src/cli/AGENTS.md +++ b/src/cli/AGENTS.md @@ -2,7 +2,7 @@ ## OVERVIEW -CLI entry: `bunx oh-my-opencode`. 5 commands with Commander.js + @clack/prompts TUI. +CLI entry: `bunx oh-my-opencode`. 70 CLI utilities and commands with Commander.js + @clack/prompts TUI. **Commands**: install (interactive setup), doctor (14 health checks), run (session launcher), get-local-version, mcp-oauth diff --git a/src/hooks/AGENTS.md b/src/hooks/AGENTS.md index a23b677e..d1307c31 100644 --- a/src/hooks/AGENTS.md +++ b/src/hooks/AGENTS.md @@ -2,7 +2,7 @@ ## OVERVIEW -40+ lifecycle hooks intercepting/modifying agent behavior across 5 events. +163 lifecycle hooks intercepting/modifying agent behavior across 5 events. **Event Types**: - `UserPromptSubmit` (`chat.message`) - Can block diff --git a/src/mcp/AGENTS.md b/src/mcp/AGENTS.md index 5253a823..f3f387aa 100644 --- a/src/mcp/AGENTS.md +++ b/src/mcp/AGENTS.md @@ -2,7 +2,7 @@ ## OVERVIEW -Tier 1 of three-tier MCP system: 3 built-in remote HTTP MCPs. +Tier 1 of three-tier MCP system: 8 built-in remote HTTP MCPs. **Three-Tier System**: 1. **Built-in** (this directory): websearch, context7, grep_app diff --git a/src/shared/AGENTS.md b/src/shared/AGENTS.md index ed5aa349..1200bcea 100644 --- a/src/shared/AGENTS.md +++ b/src/shared/AGENTS.md @@ -2,7 +2,7 @@ ## OVERVIEW -66 cross-cutting utilities. Import via barrel pattern: `import { log, deepMerge } from "../../shared"` +88 cross-cutting utilities. Import via barrel pattern: `import { log, deepMerge } from "../../shared"` **Categories**: Path resolution, Token truncation, Config parsing, Model resolution, System directives, Tool restrictions diff --git a/src/tools/AGENTS.md b/src/tools/AGENTS.md index e6319f35..fedcf96b 100644 --- a/src/tools/AGENTS.md +++ b/src/tools/AGENTS.md @@ -2,7 +2,7 @@ ## OVERVIEW -25+ tools across 8 categories. Two patterns: Direct ToolDefinition (static) and Factory Function (context-dependent). +113 tools across 8 categories. Two patterns: Direct ToolDefinition (static) and Factory Function (context-dependent). **Categories**: LSP (6), AST-Grep (2), Search (2), Session (4), Task (4), Agent delegation (2), Background (2), Skill (3), System (2)