AgentRC prepares repositories for AI coding agents by analyzing their code and generating project-specific instructions, evaluations, and development configuration. It is used through a CLI, VS Code extension, or CI pipeline to measure AI readiness, keep context useful, and detect drift; the catalogue entries support these repository-preparation workflows.
Borrowing it
Nothing to install: this file belongs to microsoft/agentrc. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/microsoft/agentrc/main/.github/prompts/generate-improvements.prompt.mdgit clone --depth 1 https://github.com/microsoft/agentrcWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/microsoft/agentrc/generate-improvements)<a href="https://agentmods.dev/commands/microsoft/agentrc/generate-improvements"><img src="https://agentmods.dev/badge/commands/microsoft/agentrc/generate-improvements.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00022 | $0.01957 |
| Opus 5 | $0.00011 | $0.00979 |
| Sonnet 5 | $0.00004 | $0.00391 |
| Haiku 4.5 | $0.00002 | $0.00196 |
Grade A, and why
generate-improvements scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 136 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are a senior software engineer reviewing the AgentRC project — a TypeScript CLI tool that primes repositories for AI-assisted development by analyzing codebases, generating instructions and VS Code configs, running evaluations, and producing readiness reports.
Architecture Context
- Tech Stack: TypeScript (ESM, strict), Node.js, React (Ink for TUI), Commander for CLI
- Entrypoint:
src/index.ts→runCliinsrc/cli.ts - Dependencies:
@github/copilot-sdk,@octokit/rest,simple-git,ink,commander,fast-glob,@inquirer/prompts
Key Directories
src/commands/— CLI subcommands (init,generate,pr,eval,tui,instructions,readiness,batch,batch-readiness)src/services/— Core logic:analyzer.ts— Scans repo files to detect languages, frameworks, package manager, monorepo workspacesinstructions.ts— Generates.github/copilot-instructions.mdusing Copilot SDK agent sessionsgenerator.ts— Writes.vscode/settings.jsonand.vscode/mcp.jsonconfigsevaluator.ts— Runs eval cases comparing agent responses with/without instructions, builds trajectory viewer HTMLreadiness.ts— Multi-pillar readiness assessment (style, build, testing, docs, dev-env, code-quality, observability, security, ai-tooling)visualReport.ts— Generates beautiful HTML readiness reports with summary cards, pillar charts, level distributiongit.ts— Clone/branch operations viasimple-gitgithub.ts/azureDevops.ts— GitHub (Octokit) and Azure DevOps API integrationscopilot.ts— Locates and validates the Copilot CLI binaryevalScaffold.ts— Scaffolds starter eval config files
src/ui/— Ink/React-based TUI components (tui.tsx,BatchTui.tsx,BatchReadinessTui.tsx,BatchTuiAzure.tsx,AnimatedBanner.tsx)src/utils/— Shared utilities (fs.tsfor safe file writes,logger.ts,pr.ts)
CLI Commands
| Command | Description |
|---|---|
agentrc init |
Interactive setup wizard (instructions + configs) |
agentrc generate <type> |
Generate instructions, agents, mcp, or vscode configs |
agentrc instructions |
Generate copilot-instructions.md via Copilot SDK |
agentrc eval |
Run evaluation cases comparing with/without instructions |
agentrc readiness |
Readiness assessment with optional visual HTML report |
agentrc batch |
Batch process multiple repos across GitHub/Azure orgs |
agentrc batch-readiness |
Batch readiness reports across multiple repos |
agentrc pr |
Automate branch/PR creation for generated configs |
agentrc tui |
Interactive Ink-based terminal UI |
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- yesterday First seen · 136 lines · 22 tokens per session scan A 58b95c624f98
generate-improvements is a command published in the GitHub repository microsoft/agentrc (1,052 stars, last pushed yesterday), licensed MIT. It adds 22 tokens to every session and 1,957 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-06.
Other commands, from other repositories
sdd-init
Initialize SDD context — detects project stack and bootstraps persistence backend.
review-branch
Review the current branch's diff against base by dispatching atomic-reviewer. No orchestration loop, no spec required — pre-flight before /commit pr or /commit merge.
init
Install the formatters this repository needs, with every command visible before it runs.
merge-conflict-analysis
You are analyzing merge conflicts for PR #${{ pr-number }}.
review-sdk-app
Review and validate a Claude Agent SDK application against best practices.
repo-audit
Audit a codebase (local or remote GitHub/GitLab) against architecture principles and requirements, surfacing drift, risk, and missing decisions.