agent-orchestrator/packages/plugins
prateek 8db5f2b161
docs: comprehensively optimize CLAUDE.md for agent effectiveness (#38)
* docs: condense CLAUDE.md for token efficiency

Reduced CLAUDE.md from 223 to 169 lines (24% reduction).

Changes:
- Removed verbose sections (reference implementation table, redundant explanations)
- Added "Key Files" section highlighting types.ts and plugin examples upfront
- Condensed tech stack, conventions, and commands into scannable format
- Kept critical content: plugin pattern, shell security, common mistakes

Agents spawned by the orchestrator don't need special documentation - they
just read the repo's existing CLAUDE.md. The orchestrator is transparent.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>

* docs: comprehensively optimize CLAUDE.md and add package READMEs

Major improvements to agent effectiveness on this codebase:

## Enhanced CLAUDE.md (169 → 444 lines)

**New sections:**
- Quick Start — get oriented fast (links to common tasks)
- Looking for X? — quick reference table for finding code
- Monorepo Tools — pnpm workspace commands (filter, watch mode, scoped builds)
- Common Tasks — step-by-step guides (add plugin, add Session field, add event type)
- Plugin Development — pattern explanation + examples (notifier-desktop, agent-claude-code)
- Architecture Deep Dive — data flow diagram + state machine + key abstractions

**Improved sections:**
- Commands — added watch mode, filtering, scoped operations
- Shell Security — added exploit example showing actual injection
- Common Mistakes — added 5 code examples (BAD vs GOOD with explanations)
- Design Decisions — added "Why" for each decision

## New Package READMEs (Progressive Disclosure)

**packages/core/README.md:**
- Explains core services (SessionManager, LifecycleManager, PluginRegistry)
- Key files guide (types.ts, session-manager.ts, lifecycle-manager.ts)
- Common tasks specific to core
- Architecture notes (why flat metadata, why polling, why plugin slots)

**packages/plugins/runtime-tmux/README.md:**
- How the plugin works (creating sessions, sending messages, getting output)
- Security considerations (session ID validation)
- Common issues (tmux not installed, detached sessions persist)
- Limitations (macOS/Linux only, no resource limits)
- Architecture notes (why tmux over raw processes)

## Impact

Agents working on this codebase now have:
1. **Faster discovery** — "Looking for X?" table + Quick Start links
2. **Actionable guides** — step-by-step for common tasks
3. **Concrete examples** — code showing actual mistakes and fixes
4. **Progressive disclosure** — package READMEs for deep dives
5. **Monorepo fluency** — pnpm workspace commands documented
6. **Architecture understanding** — data flow + state machine + "why" explanations

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-15 03:34:35 +05:30
..
agent-aider feat: implement CLI with all commands (init, status, spawn, session, send, review-check, dashboard, open) (#6) 2026-02-14 16:14:27 +05:30
agent-claude-code feat: auto-update session metadata via Claude Code hooks (#34) 2026-02-15 02:29:31 +05:30
agent-codex feat: implement CLI with all commands (init, status, spawn, session, send, review-check, dashboard, open) (#6) 2026-02-14 16:14:27 +05:30
agent-opencode feat: implement CLI with all commands (init, status, spawn, session, send, review-check, dashboard, open) (#6) 2026-02-14 16:14:27 +05:30
notifier-composio feat: notifier-composio plugin + integration tests for all plugins (#7) 2026-02-14 16:29:59 +05:30
notifier-desktop feat: notifier-composio plugin + integration tests for all plugins (#7) 2026-02-14 16:29:59 +05:30
notifier-slack feat: notifier-composio plugin + integration tests for all plugins (#7) 2026-02-14 16:29:59 +05:30
notifier-webhook feat: notifier-composio plugin + integration tests for all plugins (#7) 2026-02-14 16:29:59 +05:30
runtime-process feat: implement runtime and workspace plugins (tmux, process, worktree, clone) (#2) 2026-02-14 15:13:57 +05:30
runtime-tmux docs: comprehensively optimize CLAUDE.md for agent effectiveness (#38) 2026-02-15 03:34:35 +05:30
scm-github fix: don't report CI as failing for merged/closed PRs 2026-02-14 20:13:20 +05:30
terminal-iterm2 feat: notifier-composio plugin + integration tests for all plugins (#7) 2026-02-14 16:29:59 +05:30
terminal-web feat: notifier-composio plugin + integration tests for all plugins (#7) 2026-02-14 16:29:59 +05:30
tracker-github Wire xterm.js terminal embed into web dashboard (#29) 2026-02-15 01:37:07 +05:30
tracker-linear Wire xterm.js terminal embed into web dashboard (#29) 2026-02-15 01:37:07 +05:30
workspace-clone feat: implement runtime and workspace plugins (tmux, process, worktree, clone) (#2) 2026-02-14 15:13:57 +05:30
workspace-worktree feat: implement runtime and workspace plugins (tmux, process, worktree, clone) (#2) 2026-02-14 15:13:57 +05:30