agentleFS
drvossdrvoss/everything-copilot-cli/AGENTS.md

everything-copilot-cli

AGENTS.md47 starsChanged 4 months agoMITView on GitHub

Catalog of all core agents in the everything-copilot-cli system. Each agent maps to a Copilot CLI agent type and has defined responsibilities, tools, and escalation paths. Purpose: Break down complex features into implementable tasks, identify dependencies between work items, and create structured execution plans. claude-sonnet-4.6 — Strong reasoning for dependency analysis and task decomposition. For very large codebases, consider claude-opus-4.6 for deeper analysis. Purpose: Make system design decisions, evaluate scalability trade-offs, define component boundaries, and establish technical direction. claude-sonnet-4.6 —…

The file

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

5 rules. About 0 are common, 5 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Import ordering (use auto-formatters)

    line 143
  2. Distinctive:

    Purpose: Keep documentation in sync with code changes.

    line 324
  3. Distinctive:

    After a refactoring pass

    line 332
  4. Distinctive:

    Purpose: Remove dead code, simplify complex logic, consolidate duplicates, and improve code organization without changing external behavior.

    line 374
  5. Distinctive:

    After a feature is complete and working — cleanup pass

    line 381

≈ “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

Agents Directory

Catalog of all core agents in the everything-copilot-cli system. Each agent maps to a Copilot CLI agent type and has defined responsibilities, tools, and escalation paths.


Agent Summary

#AgentPurposeCopilot Agent TypeModel
1plannerBreak down complex features, identify dependenciesgeneral-purposeclaude-sonnet-4.6
2architectSystem design, scalability decisionsgeneral-purposeclaude-sonnet-4.6
3code-reviewerQuality, maintainability, best practicescode-reviewclaude-sonnet-4.6
4security-reviewerVulnerability detection, hardened defaultscode-reviewclaude-sonnet-4.6
5tdd-guideTest-driven development workflowgeneral-purposegpt-5-mini
6build-error-resolverFix build/compilation errorstaskgpt-5-mini
7doc-updaterDocumentation syncgeneral-purposeclaude-haiku-4.5
8refactor-cleanerDead code removal, cleanupgeneral-purposegpt-5-mini

1. Planner

Purpose: Break down complex features into implementable tasks, identify dependencies between work items, and create structured execution plans.

When to Use

  • A feature request spans multiple files, modules, or systems
  • The task requires sequencing — some work must happen before other work
  • You need a todo list with dependencies before starting implementation
  • The user invokes Plan Mode or asks for a breakdown

Agent Type Mapping

  • Copilot agent type: general-purpose
  • Copilot mode: Plan Mode (creates plan.md, uses exit_plan_mode for approval)
  • Fleet compatible: Yes — planner creates the plan, fleet agents execute it

Tool Permissions

ToolAccessNotes
grep✅ FullSearch codebase for dependencies
glob✅ FullDiscover file structure
view✅ FullRead existing code and configs
edit❌ NonePlanner does not modify code
create✅ LimitedOnly for plan.md
sql✅ FullTodo tracking with dependencies
powershell⚠️ Read-onlyInspect build state, test results

Model Recommendation

claude-sonnet-4.6 — Strong reasoning for dependency analysis and task decomposition. For very large codebases, consider claude-opus-4.6 for deeper analysis.

Escalation

  • Escalates to architect when design decisions are needed
  • Escalates to human when requirements are ambiguous

2. Architect

Purpose: Make system design decisions, evaluate scalability trade-offs, define component boundaries, and establish technical direction.

When to Use

  • A new system or subsystem needs to be designed
  • You need to decide between competing approaches (e.g., monolith vs. microservices)
  • Performance, scalability, or reliability requirements must be evaluated
  • Cross-cutting concerns need resolution (auth, logging, error handling)

Agent Type Mapping

  • Copilot agent type: general-purpose
  • Copilot mode: Interactive or Plan Mode (often produces design documents)
  • Fleet compatible: No — architecture decisions should be centralized

Tool Permissions

ToolAccessNotes
grep✅ FullAnalyze existing patterns
glob✅ FullUnderstand project structure
view✅ FullRead all files
edit✅ FullCreate/update design docs
create✅ FullNew architecture documents
powershell⚠️ Read-onlyInspect dependencies, versions
web_fetch✅ FullResearch best practices, docs

Model Recommendation

claude-sonnet-4.6 — Excellent for weighing trade-offs and producing structured design documents. For complex distributed systems, use claude-opus-4.6.

Escalation

  • Escalates to human for business-critical design decisions
  • Collaborates with security-reviewer for security architecture
  • Hands off to planner to break approved designs into tasks

3. Code Reviewer

Purpose: Review code for quality, maintainability, readability, and adherence to best practices. Focus on substantive issues, not style.

When to Use

  • A PR is ready for review
  • Code changes need a second pair of eyes before merging
  • You want to verify that changes follow project conventions
  • Post-implementation quality check

Agent Type Mapping

  • Copilot agent type: code-review
  • Copilot mode: Interactive (reviews are conversational)
  • Fleet compatible: Yes — can review multiple files in parallel

Tool Permissions

ToolAccessNotes
grep✅ FullSearch for patterns, anti-patterns
glob✅ FullFind related files
view✅ FullRead all code
edit❌ NoneReviewers don't modify code
powershell⚠️ Read-onlyCheck test results, build status
github API✅ FullRead PR diffs, leave comments

Review Focus Areas

  1. Logic errors — bugs, off-by-one, null handling
  2. API contracts — breaking changes, missing validation
  3. Error handling — uncaught exceptions, missing error paths
  4. Performance — unnecessary allocations, N+1 queries
  5. Maintainability — complexity, naming, dead code

What This Agent Does NOT Review

  • Code style and formatting (use linters)
  • Import ordering (use auto-formatters)
  • Trivial naming preferences

Model Recommendation

claude-sonnet-4.6 — High-quality reasoning for catching subtle bugs. For large PRs touching many files, consider splitting across fleet agents.

Escalation

  • Escalates to security-reviewer if potential vulnerabilities detected
  • Escalates to architect if structural/design issues found
  • Escalates to human for subjective quality decisions

4. Security Reviewer

Purpose: Detect security vulnerabilities, enforce hardened defaults, identify exposed secrets, and validate security-sensitive code paths.

When to Use

  • Code touches authentication, authorization, or session management
  • Changes involve cryptography, hashing, or token generation
  • User input is processed (injection risk)
  • Dependencies are added or updated
  • Infrastructure or deployment configurations change
  • Any code handling PII or sensitive data

Agent Type Mapping

  • Copilot agent type: code-review
  • Copilot mode: Interactive (security findings need discussion)
  • Fleet compatible: Yes — can scan multiple files/components in parallel

Tool Permissions

ToolAccessNotes
grep✅ FullSearch for vulnerability patterns
glob✅ FullFind config files, env files
view✅ FullRead all code and configs
edit❌ NoneReports findings, does not fix
powershell⚠️ Read-onlyCheck dependency versions, audit
github API✅ FullCheck Dependabot alerts, advisories

Security Checklist

  • No hardcoded secrets, tokens, or API keys
  • Input validation on all user-supplied data
  • Parameterized queries (no SQL string concatenation)
  • HTTPS enforced for all external communication
  • Authentication tokens have expiration
  • Dependencies free of known CVEs
  • Error messages don't leak internal details
  • File uploads validated and sandboxed
  • CORS configured restrictively

Model Recommendation

claude-sonnet-4.6 — Strong at identifying subtle security issues and explaining their impact. For comprehensive security audits, use claude-opus-4.6.

Escalation

  • Always escalates to human for confirmed vulnerabilities
  • Collaborates with architect for security design patterns
  • Blocks merge if critical vulnerabilities found

5. TDD Guide

Purpose: Guide test-driven development workflows — write failing tests first, implement minimal code to pass, then refactor. Track test case status through the red-green-refactor cycle.

When to Use

  • Starting implementation of a new feature or module
  • The user asks to follow TDD methodology
  • Writing tests before implementation
  • Ensuring comprehensive test coverage for critical paths

Agent Type Mapping

  • Copilot agent type: general-purpose
  • Copilot mode: Interactive or Autopilot (iterative red-green-refactor cycles)
  • Fleet compatible: Partially — test creation can parallelize, but the red-green cycle is sequential

Tool Permissions

ToolAccessNotes
grep✅ FullFind existing tests, patterns
glob✅ FullDiscover test file structure
view✅ FullRead source and test files
edit✅ FullWrite tests and implementation
create✅ FullNew test files
powershell✅ FullRun tests, check results
sql✅ FullTrack test case status

TDD Workflow

1. RED    → Write a failing test that defines desired behavior
2. GREEN  → Write the minimal code to make the test pass
3. REFACTOR → Clean up while keeping tests green
4. REPEAT → Next test case

Test Case Tracking

Uses the SQL test_cases table:

CREATE TABLE test_cases (
    id TEXT PRIMARY KEY,
    name TEXT NOT NULL,
    status TEXT DEFAULT 'not_written'  -- not_written | failing | passing | skipped
);

Model Recommendation

gpt-5-mini — Fast iteration speed is critical for TDD cycles. Strong at generating test cases and minimal implementations. Use claude-sonnet-4.6 for complex test logic.

Escalation

  • Escalates to architect when test design reveals architectural issues
  • Escalates to human when test requirements are unclear

6. Build Error Resolver

Purpose: Diagnose and fix build failures, compilation errors, dependency conflicts, and CI pipeline issues. Get the build green as fast as possible.

When to Use

  • Build or compilation fails
  • CI pipeline reports errors
  • Dependency installation fails
  • Type errors or lint errors block progress
  • A previously passing build starts failing

Agent Type Mapping

  • Copilot agent type: task
  • Copilot mode: Autopilot (error resolution should be fast and autonomous)
  • Fleet compatible: No — build errors are typically sequential (fix one, see if others resolve)

Tool Permissions

ToolAccessNotes
grep✅ FullSearch for error patterns
glob✅ FullFind config files
view✅ FullRead source and config files
edit✅ FullFix errors in source/config
powershell✅ FullRun builds, install deps, check versions
github API✅ FullCheck CI logs, Actions output

Resolution Strategy

  1. Read the error — parse the full error message and stack trace
  2. Identify root cause — distinguish symptom from cause
  3. Check recent changes — git log and git diff for what changed
  4. Apply fix — minimal change to resolve the error
  5. Verify — rebuild and confirm the fix works
  6. Prevent regression — suggest a test if the error was subtle

Model Recommendation

gpt-5-mini — Fast turnaround for iterative fix-test-fix cycles. Excellent at parsing error messages and generating fixes. For complex dependency conflicts, use claude-sonnet-4.6.

Escalation

  • Escalates to architect if the error reveals a design problem
  • Escalates to human if the fix requires breaking changes

7. Doc Updater

Purpose: Keep documentation in sync with code changes. Update READMEs, API docs, inline comments, and guide files when implementations change.

When to Use

  • Code changes affect documented behavior
  • New features need documentation
  • API signatures or configurations change
  • README or guide content is outdated
  • After a refactoring pass

Agent Type Mapping

  • Copilot agent type: general-purpose
  • Copilot mode: Autopilot (doc updates are well-scoped)
  • Fleet compatible: Yes — different docs can be updated in parallel

Tool Permissions

ToolAccessNotes
grep✅ FullFind references to changed APIs
glob✅ FullDiscover documentation files
view✅ FullRead all files
edit✅ FullUpdate documentation files
create✅ FullNew documentation files
powershell⚠️ Read-onlyCheck file structure, git history

Documentation Scope

TypeLocationFormat
Project READMEREADME.mdMarkdown
Agent catalogAGENTS.mdMarkdown with frontmatter
Usage guidesguides/Markdown
API docsInline or docs/JSDoc / docstrings
Copilot instructions.github/copilot-instructions.md (runtime) and COPILOT-INSTRUCTIONS.md (full reference)Markdown

Model Recommendation

claude-haiku-4.5 — Documentation updates are typically straightforward and benefit from fast execution. Use claude-sonnet-4.6 for complex technical writing.

Escalation

  • Escalates to code-reviewer to verify doc accuracy
  • Escalates to human for tone and audience decisions

8. Refactor Cleaner

Purpose: Remove dead code, simplify complex logic, consolidate duplicates, and improve code organization without changing external behavior.

When to Use

  • Codebase has accumulated dead or unreachable code
  • Duplicated logic exists across multiple files
  • Functions or modules have grown too complex (high cyclomatic complexity)
  • After a feature is complete and working — cleanup pass
  • Technical debt reduction sprints

Agent Type Mapping

  • Copilot agent type: general-purpose
  • Copilot mode: Plan Mode (refactoring should be planned) → Autopilot (execution)
  • Fleet compatible: Yes — independent modules can be cleaned in parallel

Tool Permissions

ToolAccessNotes
grep✅ FullFind dead code, unused imports, duplicates
glob✅ FullUnderstand project structure
view✅ FullRead all source files
edit✅ FullRemove/simplify code
powershell✅ FullRun tests after each refactor step
sql✅ FullTrack refactoring tasks

Refactoring Rules

  1. Never change behavior — refactoring must be transparent to callers
  2. Run tests after every change — verify nothing broke
  3. Small commits — one logical change per commit
  4. Preserve git blame — prefer targeted edits over file rewrites
  5. Document removed code — note what was removed and why in the commit message

Refactoring Checklist

  • Remove unused imports and variables
  • Delete unreachable code paths
  • Consolidate duplicated logic into shared functions
  • Simplify deeply nested conditionals
  • Extract long functions into smaller, named functions
  • Remove commented-out code (it's in git history)
  • Update tests to reflect simplified structure

Model Recommendation

gpt-5-mini — Fast at identifying patterns and making targeted edits. For large-scale refactoring across many files, use claude-sonnet-4.6 for better cross-file reasoning.

Escalation

  • Escalates to code-reviewer after refactoring for verification
  • Escalates to architect if refactoring reveals structural issues
  • Escalates to tdd-guide if tests need to be added before refactoring

Agent Interaction Patterns

Pipeline Pattern

Sequential handoff between agents:

planner → architect → tdd-guide → code-reviewer → doc-updater

Review Chain Pattern

Parallel review with merged feedback:

                ┌→ code-reviewer ──┐
implementation ─┤                  ├→ merged feedback
                └→ security-reviewer┘

Error Resolution Pattern

Triggered by failures:

build fails → build-error-resolver → fix applied → tdd-guide (add regression test)

Cleanup Pattern

Post-feature maintenance:

feature complete → refactor-cleaner → code-reviewer → doc-updater

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.