agentleFS
Yeachan-HeoYeachan-Heo/oh-my-claudecode/src/AGENTS.md

oh-my-claudecode / src

AGENTS.md40k starsChanged 2 months agoMITView on GitHub

TypeScript source code for oh-my-claudecode - the core library that powers multi-agent orchestration. This directory contains all TypeScript source code organized into modules:

Adopted by

Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data

Week of Sep 27: 0 new projectsWeek of Oct 4: 0 new projectsWeek of Oct 11: 0 new projectsWeek of Oct 18: 0 new projectsWeek of Oct 25: 0 new projectsWeek of Nov 1: 0 new projectsWeek of Nov 8: 0 new projectsWeek of Nov 15: 0 new projects
Sep 2026Oct 2026Nov 2026
New projects taking a version of this file each week, over the 8 weeks our latest run read: only 0 in all, so this is a hint, not a trend.

Who's talking about Yeachan-Heo/oh-my-claudecode

The biggest 5 of 60 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 60

Talked about on GitHub and Bluesky (60 times).

On GitHub · 50

45 more on GitHub

On Bluesky · 10

5 more on Bluesky

The file

Show its rules and text

We split this AGENTS.md into the rules it gives an agent

20 rules. About 0 are common, 2 are distinctive, and 18 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 18

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Test files are in __tests__/ with pattern *.test.ts

    line 83
  2. Very specific:

    Run npm test -- --grep "module-name" for specific modules

    line 84
  3. Very specific:

    Verify type safety with npm run build after changes

    line 85
  4. Very specific:

    Use lsp_diagnostics_directory tool for project-wide type checking

    line 86
  5. Very specific:

    Add agent file in agents/ (e.g., new-agent.ts)

    line 92
  6. Very specific:

    Add to getAgentDefinitions() in agents/definitions.ts

    line 94
  7. Very specific:

    Create prompt template in /agents/new-agent.md

    line 95
  8. Very specific:

    Update docs/REFERENCE.md (Agents section) with new agent

    line 96
  9. Very specific:

    Create directory in hooks/ (e.g., new-hook/)

    line 100
  10. Very specific:

    Add index.ts, types.ts, constants.ts

    line 101
  11. Very specific:

    Update docs/REFERENCE.md (Hooks System section) with new hook

    line 103
  12. Distinctive:

    Create tool definition with Zod schema

    line 107
  13. Very specific:

    Add to appropriate tools file (lsp-tools.ts, ast-tools.ts)

    line 108
  14. Very specific:

    Update docs/REFERENCE.md if user-facing tool

    line 110
  15. Very specific:

    Create feature directory in features/

    line 114
  16. Very specific:

    Update docs/FEATURES.md with API documentation

    line 116
  17. Very specific:

    Use strict mode (noImplicitAny, strictNullChecks)

    line 120
  18. Distinctive:

    Prefer interfaces over type aliases for public APIs

    line 121
  19. Very specific:

    Use barrel exports (index.ts) for each module

    line 122
  20. Very specific:

    Use Zod for runtime input validation (see templates/rules/coding-style.md)

    line 124

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md
<!-- Parent: ../AGENTS.md --><!-- Generated: 2026-01-28 | Updated: 2026-03-02 -->

src

TypeScript source code for oh-my-claudecode - the core library that powers multi-agent orchestration.

Purpose

This directory contains all TypeScript source code organized into modules:

  • agents/ - 32 specialized AI agent definitions with tiered variants
  • tools/ - 15 LSP/AST/REPL tools for IDE-like capabilities
  • hooks/ - 31 event-driven behaviors for execution modes
  • features/ - Core features (model routing, state management, verification)
  • config/ - Configuration loading and validation
  • commands/ - Command expansion utilities
  • mcp/ - MCP server integration

Key Files

FileDescription
index.tsMain entry point - exports createOmcSession()
shared/types.tsShared TypeScript types used across modules

Subdirectories

DirectoryPurpose
agents/32 agent definitions with prompts and tools (see agents/AGENTS.md)
tools/15 LSP, AST, and Python REPL tools (see tools/AGENTS.md)
hooks/31 hooks for execution modes (see hooks/AGENTS.md)
features/Core features like model routing, state (see features/AGENTS.md)
config/Configuration loading (loader.ts)
commands/Command expansion utilities
mcp/MCP server configuration and team runtime convergence helpers
cli/CLI entry points and command surfaces
hud/Heads-up display components
installer/Installation system
__tests__/Test files

For AI Agents

Working In This Directory

  1. Module Organization: Each major feature has its own directory with:
    • index.ts - Main exports
    • types.ts - TypeScript interfaces
    • Supporting files as needed
  2. Entry Point Pattern:
    // Main export in index.ts
    export { createOmcSession } from './session';
    export { lspTools, astTools, allCustomTools } from './tools';
    export { getAgentDefinitions, omcSystemPrompt } from './agents/definitions';
  3. Tool Registration: Custom tools are registered in tools/index.ts:

    export const allCustomTools = [
      ...lspTools,      // 12 LSP tools
      ...astTools,      // 2 AST tools
      pythonReplTool    // 1 REPL tool (15 total)
    ];
  4. Agent Registration: Agents defined in agents/definitions.ts:
    export function getAgentDefinitions(): Record<string, AgentConfig> {
      return {
        architect: architectAgent,
        executor: executorAgent,
        // ... all 32 agents
      };
    }

Testing Requirements

  • Test files are in __tests__/ with pattern *.test.ts
  • Run npm test -- --grep "module-name" for specific modules
  • Verify type safety with npm run build after changes
  • Use lsp_diagnostics_directory tool for project-wide type checking

Common Patterns

Creating a New Agent

  1. Add agent file in agents/ (e.g., new-agent.ts)
  2. Export from agents/index.ts
  3. Add to getAgentDefinitions() in agents/definitions.ts
  4. Create prompt template in /agents/new-agent.md
  5. Update docs/REFERENCE.md (Agents section) with new agent

Adding a New Hook

  1. Create directory in hooks/ (e.g., new-hook/)
  2. Add index.ts, types.ts, constants.ts
  3. Export from hooks/index.ts
  4. Update docs/REFERENCE.md (Hooks System section) with new hook

Adding a New Tool

  1. Create tool definition with Zod schema
  2. Add to appropriate tools file (lsp-tools.ts, ast-tools.ts)
  3. Export from tools/index.ts
  4. Update docs/REFERENCE.md if user-facing tool

Adding a New Feature

  1. Create feature directory in features/
  2. Export from features/index.ts
  3. Update docs/FEATURES.md with API documentation

TypeScript Conventions

  • Use strict mode (noImplicitAny, strictNullChecks)
  • Prefer interfaces over type aliases for public APIs
  • Use barrel exports (index.ts) for each module
  • File size: 200-400 lines typical, 800 max
  • Use Zod for runtime input validation (see templates/rules/coding-style.md)

Dependencies

Internal

  • Uses types from shared/types.ts
  • Imports agent prompts from /agents/*.md
  • Loads skills from /skills/*.md

External

Key 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.

MCP Runtime Notes

  • Team MCP runtime status/wait behavior is implemented in mcp/team-server.ts.
  • Shared team-job convergence helpers (artifact-first status convergence, scoped team-state cleanup) live in mcp/team-job-convergence.ts.

Module Dependency Graph

index.ts
├── agents/definitions.ts → agents/*.ts → /agents/*.md (prompts)
├── tools/index.ts
│   ├── lsp-tools.ts → lsp/*.ts
│   ├── ast-tools.ts
│   └── python-repl/
├── hooks/index.ts → hooks/*/*.ts
├── features/index.ts
│   ├── model-routing/
│   ├── boulder-state/
│   ├── verification/
│   └── ...
├── config/loader.ts
└── mcp/servers.ts
<!-- MANUAL: -->

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.