agentleFS
MicrosoftKnown publishermicrosoft/agentrc/AGENTS.md

agentrc

AGENTS.md1.1k starsChanged 2 months agoMITView on GitHub

@microsoft/agentrc is a CLI tool (and VS Code extension) that sets up repositories for AI-assisted development. It analyzes repos, generates instruction files, evaluates AI responses, and runs readiness reports. @agentrc/core (in packages/core/) is bundled into the CLI output — it is not an external npm package. Use the @agentrc/core/* path alias for all cross-package imports. Output is ESM ("type": "module"). All node_modules are external except @agentrc/core, @github/copilot-sdk, and vscode-jsonrpc (bundled via noExternal in tsup.config.ts). SDK shim: tsup.config.ts patches getBundledCliPath() in…

Trending

Steady talk.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 2 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 1 mentionJul 2026: 0 mentionsAug 2026: 1 mentionSep 2026: 1 mentionOct 2026: 1 mentionNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the microsoft/agentrc repository that our weekly crawl found: only 6 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

The file

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

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

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

    Call services from @agentrc/core/services/*

    line 41
  2. Distinctive:

    Write output using the output utilities

    line 42
  3. Very specific:

    Never write progress to stdout.

    line 53
  4. Very specific:

    Type imports: always use import type for type-only imports (@typescript-eslint/consistent-type-imports is enforced).

    line 63
  5. Very specific:

    Tests: test files live in src/services/__tests__/ and use vitest.

    line 65

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

AgentRC Copilot Instructions

@microsoft/agentrc is a CLI tool (and VS Code extension) that sets up repositories for AI-assisted development. It analyzes repos, generates instruction files, evaluates AI responses, and runs readiness reports.

Architecture

src/                   # CLI entry point and commands
  cli.ts               # Commander program, withGlobalOpts helper
  commands/            # Thin command wrappers (parse args → call services)
  ui/                  # Ink/React TUI components
packages/core/src/     # Shared services and utilities (bundled into dist)
  services/            # analyzer, generator, instructions, readiness, policy, ...
  utils/               # fs, output, logger, repo, pr
plugin/skills/         # Built-in skill markdown files (copied to dist/skills/ on build)
vscode-extension/      # See .github/instructions/vscode-extension.instructions.md

@agentrc/core (in packages/core/) is bundled into the CLI output — it is not an external npm package. Use the @agentrc/core/* path alias for all cross-package imports.

Build & Test

npm run build          # tsup → dist/index.js (ESM, Node 22+)
npm run dev            # tsx src/index.ts (run from source)
npm run typecheck      # tsc --noEmit
npm run lint           # eslint
npm test               # vitest run
npm run test:coverage  # vitest run --coverage

Output is ESM ("type": "module"). All node_modules are external except @agentrc/core, @github/copilot-sdk, and vscode-jsonrpc (bundled via noExternal in tsup.config.ts).

SDK shim: tsup.config.ts patches getBundledCliPath() in the Copilot SDK. An identical shim lives in vscode-extension/esbuild.mjs — update both together if SDK internals change.

Command Pattern

Commands in src/commands/ are thin wrappers:

  1. Resolve paths and options
  2. Call services from @agentrc/core/services/*
  3. Write output using the output utilities

Wrap every command action with withGlobalOpts (from src/cli.ts) so --json, --quiet, and --accessible are merged into the options object.

Output Convention

StreamPurpose
stdoutMachine-readable JSON only (when --json is set)
stderrHuman-readable progress, logs, warnings, errors

Never write progress to stdout. Use outputResult / outputError from @agentrc/core/utils/output. Use shouldLog(options) before writing stderr text. Use createProgressReporter(silent) for step-by-step progress.

CommandResult<T> shape: { ok, status: "success"|"partial"|"noop"|"error", data?, errors? }.

Skills

Built-in skills live in plugin/skills/<skill-name>/SKILL.md with YAML frontmatter (name, description). They are copied to dist/skills/ on build via tsup.config.ts's onSuccess hook. Resolve the skills directory with getSkillDirectory() from @agentrc/core/services/skills — never hardcode paths.

Code Conventions

  • Type imports: always use import type for type-only imports (@typescript-eslint/consistent-type-imports is enforced).
  • Import order: alphabetical, grouped by node built-ins → external packages → internal (@agentrc/core/*) → relative. ESLint enforces this.
  • Tests: test files live in src/services/__tests__/ and use vitest. Default timeout is 10 s.
  • Unused vars: prefix with _ to suppress the lint warning.
  • Strict TypeScript: strict: true, moduleResolution: Bundler, target ES2022.

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.