RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/AGENTS.md/Yeachan-Heo/oh-my-claudecode

AGENTS.md

src/AGENTS.md
AGENTS.md

Quality

77/100

Scores the file, not the repository.

Length

695 words

18 headings · 4 code blocks

Repository

38k

— · pushed 0 days ago

Last changed

3 days ago

First indexed 3 days ago.
Yeachan-Heo/oh-my-claudecode/src/AGENTS.mdRawGitHub
1<!-- Parent: ../AGENTS.md -->
2<!-- Generated: 2026-01-28 | Updated: 2026-03-02 -->
3 
4# src
5 
6TypeScript source code for oh-my-claudecode - the core library that powers multi-agent orchestration.
7 
8## Purpose
9 
10This directory contains all TypeScript source code organized into modules:
11 
12- **agents/** - 32 specialized AI agent definitions with tiered variants
13- **tools/** - 15 LSP/AST/REPL tools for IDE-like capabilities
14- **hooks/** - 31 event-driven behaviors for execution modes
15- **features/** - Core features (model routing, state management, verification)
16- **config/** - Configuration loading and validation
17- **commands/** - Command expansion utilities
18- **mcp/** - MCP server integration
19 
20## Key Files
21 
22| File | Description |
23|------|-------------|
24| `index.ts` | Main entry point - exports `createOmcSession()` |
25| `shared/types.ts` | Shared TypeScript types used across modules |
26 
27## Subdirectories
28 
29| Directory | Purpose |
30|-----------|---------|
31| `agents/` | 32 agent definitions with prompts and tools (see `agents/AGENTS.md`) |
32| `tools/` | 15 LSP, AST, and Python REPL tools (see `tools/AGENTS.md`) |
33| `hooks/` | 31 hooks for execution modes (see `hooks/AGENTS.md`) |
34| `features/` | Core features like model routing, state (see `features/AGENTS.md`) |
35| `config/` | Configuration loading (`loader.ts`) |
36| `commands/` | Command expansion utilities |
37| `mcp/` | MCP server configuration and team runtime convergence helpers |
38| `cli/` | CLI entry points and command surfaces |
39| `hud/` | Heads-up display components |
40| `installer/` | Installation system |
41| `__tests__/` | Test files |
42 
43## For AI Agents
44 
45### Working In This Directory
46 
471. **Module Organization**: Each major feature has its own directory with:
48 - `index.ts` - Main exports
49 - `types.ts` - TypeScript interfaces
50 - Supporting files as needed
51 
522. **Entry Point Pattern**:
53```typescript
54 // Main export in index.ts
55 export { createOmcSession } from './session';
56 export { lspTools, astTools, allCustomTools } from './tools';
57 export { getAgentDefinitions, omcSystemPrompt } from './agents/definitions';
58```
59 
603. **Tool Registration**: Custom tools are registered in `tools/index.ts`:
61 
62```typescript
63 export const allCustomTools = [
64 ...lspTools, // 12 LSP tools
65 ...astTools, // 2 AST tools
66 pythonReplTool // 1 REPL tool (15 total)
67 ];
68```
69 
704. **Agent Registration**: Agents defined in `agents/definitions.ts`:
71```typescript
72 export function getAgentDefinitions(): Record<string, AgentConfig> {
73 return {
74 architect: architectAgent,
75 executor: executorAgent,
76 // ... all 32 agents
77 };
78 }
79```
80 
81### Testing Requirements
82 
83- Test files are in `__tests__/` with pattern `*.test.ts`
84- Run `npm test -- --grep "module-name"` for specific modules
85- Verify type safety with `npm run build` after changes
86- Use `lsp_diagnostics_directory` tool for project-wide type checking
87 
88### Common Patterns
89 
90#### Creating a New Agent
91 
921. Add agent file in `agents/` (e.g., `new-agent.ts`)
932. Export from `agents/index.ts`
943. Add to `getAgentDefinitions()` in `agents/definitions.ts`
954. Create prompt template in `/agents/new-agent.md`
965. Update `docs/REFERENCE.md` (Agents section) with new agent
97 
98#### Adding a New Hook
99 
1001. Create directory in `hooks/` (e.g., `new-hook/`)
1012. Add `index.ts`, `types.ts`, `constants.ts`
1023. Export from `hooks/index.ts`
1034. Update `docs/REFERENCE.md` (Hooks System section) with new hook
104 
105#### Adding a New Tool
106 
1071. Create tool definition with Zod schema
1082. Add to appropriate tools file (`lsp-tools.ts`, `ast-tools.ts`)
1093. Export from `tools/index.ts`
1104. Update `docs/REFERENCE.md` if user-facing tool
111 
112#### Adding a New Feature
113 
1141. Create feature directory in `features/`
1152. Export from `features/index.ts`
1163. Update `docs/FEATURES.md` with API documentation
117 
118#### TypeScript Conventions
119 
120- Use strict mode (`noImplicitAny`, `strictNullChecks`)
121- Prefer interfaces over type aliases for public APIs
122- Use barrel exports (`index.ts`) for each module
123- File size: 200-400 lines typical, 800 max
124- Use Zod for runtime input validation (see `templates/rules/coding-style.md`)
125 
126## Dependencies
127 
128### Internal
129- Uses types from `shared/types.ts`
130- Imports agent prompts from `/agents/*.md`
131- Loads skills from `/skills/*.md`
132 
133### External
134 
135Key packages by module: `zod` (tools, features), `@ast-grep/napi` (tools/ast), `vscode-languageserver-protocol` (tools/lsp), `better-sqlite3` (hooks/swarm), `chalk` (cli, hud). See root AGENTS.md for full dependency list.
136 
137### MCP Runtime Notes
138 
139- Team MCP runtime status/wait behavior is implemented in `mcp/team-server.ts`.
140- Shared team-job convergence helpers (artifact-first status convergence, scoped team-state cleanup) live in `mcp/team-job-convergence.ts`.
141 
142## Module Dependency Graph
143 
144```
145index.ts
146├── agents/definitions.ts → agents/*.ts → /agents/*.md (prompts)
147├── tools/index.ts
148│ ├── lsp-tools.ts → lsp/*.ts
149│ ├── ast-tools.ts
150│ └── python-repl/
151├── hooks/index.ts → hooks/*/*.ts
152├── features/index.ts
153│ ├── model-routing/
154│ ├── boulder-state/
155│ ├── verification/
156│ └── ...
157├── config/loader.ts
158└── mcp/servers.ts
159```
160 
161<!-- MANUAL: -->
162 

Commands it names

  • npm test -- --grep "module-name"
  • npm run build

Sections

  • src
  • Purpose
  • Key Files
  • Subdirectories
  • For AI Agents
  • Working In This Directory
  • Testing Requirements
  • Common Patterns
  • Dependencies
  • Internal
  • External
  • MCP Runtime Notes
  • Module Dependency Graph

What it covers

buildtestcode-stylearchitecturetypesdependencies

Stack — with the evidence

typescript

(1.00)

vitest

(1.00)

eslint

(1.00)

node

(0.95)

react

(0.70)

vite

(0.70)

pytest

(0.70)

javascript

(0.60)

github-actions

(0.60)

python

(0.50)

Format

AGENTS.md

A plain-markdown README for coding agents, deliberately unopinionated: no frontmatter, no globs, no vendor keys. That minimalism is why it became the one file a dozen different agents will read, and why it carries the least per-file targeting power of any format here.

What the corpus says about it

Repository

Owner
Yeachan-Heo
Language
—
License
—
Archived
no

All configs in this repo

Also in Yeachan-Heo/oh-my-claudecode

Diff this repo’s formats

One repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?

The other instruction files in this repository
RepositoryFormatStackCoversScoreChanged
Yeachan-Heo/oh-my-claudecode.github/CLAUDE.md · 38kCLAUDE.mdtypescriptvitest+8setupbuildstylegit+279/1003 days ago
Yeachan-Heo/oh-my-claudecodeAGENTS.md · 38kAGENTS.mdtypescriptvitest+8setuplint-formatstyletypes+445/1003 days ago
Yeachan-Heo/oh-my-claudecodeskills/AGENTS.md · 38kAGENTS.mdtypescriptvitest+8teststylearchdependencies+166/1003 days ago
Yeachan-Heo/oh-my-claudecodesrc/agents/AGENTS.md · 38kAGENTS.mdtypescriptvitest+8teststylearchdependencies+166/1003 days ago
Yeachan-Heo/oh-my-claudecodesrc/features/AGENTS.md · 38kAGENTS.mdtypescriptvitest+8teststylearchdependencies74/1003 days ago
Yeachan-Heo/oh-my-claudecodesrc/hooks/AGENTS.md · 38kAGENTS.mdtypescriptvitest+8setupteststylearch+274/1003 days ago
Yeachan-Heo/oh-my-claudecodesrc/tools/AGENTS.md · 38kAGENTS.mdtypescriptvitest+8setupteststylearch+186/1003 days ago
Yeachan-Heo/oh-my-claudecodesrc/tools/diagnostics/AGENTS.md · 38kAGENTS.mdtypescriptvitest+8teststylearchtypes+277/1003 days ago
Yeachan-Heo/oh-my-claudecodesrc/tools/lsp/AGENTS.md · 38kAGENTS.mdtypescriptvitest+8setupteststylearch+274/1003 days ago
Yeachan-Heo/oh-my-claudecodeCLAUDE.md · 38kCLAUDE.mdtypescriptvitest+8setupbuildstylegit+165/1003 days ago
Diff against .github/CLAUDE.md Diff against AGENTS.md Diff against skills/AGENTS.md Diff against src/agents/AGENTS.md Diff against src/features/AGENTS.md Diff against src/hooks/AGENTS.md Diff against src/tools/AGENTS.md Diff against src/tools/diagnostics/AGENTS.md Diff against src/tools/lsp/AGENTS.md Diff against CLAUDE.md

Similar configs

Same format, overlapping stack, ranked by quality.

Same format, overlapping stack, ranked by quality
RepositoryFormatStackCoversScoreChanged
trick77/agents-md-syncAGENTS.md · 2AGENTS.mdtypescriptnode+4setupbuildteststyle+5100/1003 days ago
SkeneTechnologies/skene-cookbookAGENTS.md · 51AGENTS.mdpythoneslint+4setupbuildtestlint-format+7100/1002 days ago
duckduckgo/content-scope-scriptsspecial-pages/AGENTS.md · 70AGENTS.mdtypescriptjavascript+5buildteststylearch+3100/1003 days ago
mui/material-uiAGENTS.md · 99kAGENTS.mdtypescriptjavascript+13setupbuildtestlint-format+9100/1003 days ago
n8n-io/n8npackages/@n8n/agents/AGENTS.md · 199kAGENTS.mdtypescriptlangchain+16buildteststylearch+3100/1003 days ago
aaif-goose/gooseAGENTS.md · 52kAGENTS.mdrusttypescript+2setupbuildtestlint-format+6100/1003 days ago
TryGhost/Ghoste2e/AGENTS.md · 55kAGENTS.mdtypescriptjavascript+12setupteststylearch+2100/1003 days ago
code-yeongyu/oh-my-openagentpackages/web/AGENTS.md · 67kAGENTS.mdtypescriptbun+10setupbuildtestlint-format+6100/1002 days ago
RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack