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
Who's talking about microsoft/agentrc
- sudosubin/agents.nix“agent-plugins.github.microsoft.agentrc: init at 2.0.1-91”GitHub · Oct 4, 2026
- microsoft/apm“[BUG] APM install for a skill from an Agent Plugins-compatible repo is a no-op when all your targets are …”GitHub · Sep 4, 2026
- Azure-Samples/Legacy-Modernization-Agents“Evaluate Prompt Refinement Options”GitHub · Aug 14, 2026
- microsoft/apm“feat(init): suggest agentrc in Next Steps when no instructions exist”GitHub · Jun 2, 2026
- microsoft/apm“feat(init): detect agentrc and suggest it in Next Steps”GitHub · Mar 31, 2026
The biggest 5 of 6 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 6
Talked about on GitHub (6 times).
On GitHub · 6
- Oct 4, 2026agent-plugins.github.microsoft.agentrc: init at 2.0.1-91 — sudosubin/agents.nix0 reactions
- Sep 4, 2026[BUG] APM install for a skill from an Agent Plugins-compatible repo is a no-op when all your targets are not Copilot — microsoft/apm0 reactions · 2 comments
- Aug 14, 2026Evaluate Prompt Refinement Options — Azure-Samples/Legacy-Modernization-Agents0 reactions
- Jun 2, 2026feat(init): suggest agentrc in Next Steps when no instructions exist — microsoft/apm0 reactions · 1 comment
- Mar 31, 2026feat(init): detect agentrc and suggest it in Next Steps — microsoft/apm0 reactions · 1 comment
1 more on GitHub
- Mar 31, 2026docs: add agentrc ecosystem section to README — microsoft/apm0 reactions
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository7 other files it gives its agents.
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
- Very specific: line 41
Call services from @agentrc/core/services/*
- Distinctive: line 42
Write output using the output utilities
- Very specific: line 53
Never write progress to stdout.
- Very specific: line 63
Type imports: always use import type for type-only imports (@typescript-eslint/consistent-type-imports is enforced).
- Very specific: line 65
Tests: test files live in src/services/__tests__/ and use vitest.
≈ “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.
Files
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 --coverageOutput 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.tspatchesgetBundledCliPath()in the Copilot SDK. An identical shim lives invscode-extension/esbuild.mjs— update both together if SDK internals change.
Command Pattern
Commands in src/commands/ are thin wrappers:
- Resolve paths and options
- Call services from
@agentrc/core/services/* - 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
| Stream | Purpose |
stdout | Machine-readable JSON only (when --json is set) |
stderr | Human-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 typefor type-only imports (@typescript-eslint/consistent-type-importsis 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, targetES2022.
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
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.

