@microsoft/agentrc 2.0.1-1 → 2.0.1-3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -18
- package/dist/index.js +307 -131
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
AI coding agents are only as effective as the context they receive. AgentRC is a CLI and VS Code extension that closes the gap — from a single repo to hundreds across your org.
|
|
12
12
|
|
|
13
|
-
**Measure** — Analyze repo structure and score
|
|
13
|
+
**Measure** — Analyze repo structure and score readiness across a 5-level maturity model.
|
|
14
14
|
**Generate** — Produce tailored instructions, evals, and dev configs using the Copilot SDK.
|
|
15
15
|
**Maintain** — Run evaluations in CI to catch instruction drift as code evolves.
|
|
16
16
|
|
|
@@ -37,7 +37,7 @@ agentrc analyze
|
|
|
37
37
|
# 2. Check how AI-ready your repo is
|
|
38
38
|
agentrc readiness
|
|
39
39
|
|
|
40
|
-
# 3. Generate
|
|
40
|
+
# 3. Generate instructions
|
|
41
41
|
agentrc instructions
|
|
42
42
|
|
|
43
43
|
# 4. Generate MCP and VS Code configs
|
|
@@ -72,7 +72,7 @@ agentrc analyze --output analysis.md # save Markdown report
|
|
|
72
72
|
agentrc analyze --output analysis.json --force # overwrite existing report
|
|
73
73
|
```
|
|
74
74
|
|
|
75
|
-
### `agentrc readiness` —
|
|
75
|
+
### `agentrc readiness` — Run Readiness Report
|
|
76
76
|
|
|
77
77
|
Score a repo across 9 pillars grouped into **Repo Health** and **AI Setup**:
|
|
78
78
|
|
|
@@ -90,30 +90,37 @@ agentrc readiness --fail-level 3 # CI gate: exit 1 if below level 3
|
|
|
90
90
|
|
|
91
91
|
**Maturity levels:**
|
|
92
92
|
|
|
93
|
-
| Level | Name
|
|
94
|
-
| ----- |
|
|
95
|
-
| 1 | Functional
|
|
96
|
-
| 2 | Documented
|
|
93
|
+
| Level | Name | What it means |
|
|
94
|
+
| ----- | ------------ | --------------------------------------------------- |
|
|
95
|
+
| 1 | Functional | Builds, tests, basic tooling in place |
|
|
96
|
+
| 2 | Documented | README, CONTRIBUTING, custom instructions exist |
|
|
97
|
+
| 3 | Standardized | CI/CD, security policies, CODEOWNERS, observability |
|
|
98
|
+
| 4 | Optimized | MCP servers, custom agents, AI skills configured |
|
|
99
|
+
| 5 | Autonomous | Full AI-native development with minimal oversight |
|
|
97
100
|
|
|
98
101
|
At Level 2, AgentRC also checks **instruction consistency** — when a repo has multiple AI instruction files (e.g. `copilot-instructions.md`, `CLAUDE.md`, `AGENTS.md`), it detects whether they diverge. Symlinked or identical files pass; diverging files fail with a similarity score and a suggestion to consolidate.
|
|
99
102
|
|
|
100
|
-
| 3 | Standardized | CI/CD, security policies, CODEOWNERS, observability |
|
|
101
|
-
| 4 | Optimized | MCP servers, custom agents, AI skills configured |
|
|
102
|
-
| 5 | Autonomous | Full AI-native development with minimal oversight |
|
|
103
|
-
|
|
104
103
|
### `agentrc instructions` — Generate Instructions
|
|
105
104
|
|
|
106
|
-
Generate
|
|
105
|
+
Generate instructions using the Copilot SDK:
|
|
107
106
|
|
|
108
107
|
```bash
|
|
109
108
|
agentrc instructions # copilot-instructions.md (default)
|
|
110
|
-
agentrc instructions --
|
|
111
|
-
agentrc instructions --
|
|
109
|
+
agentrc instructions --output AGENTS.md # custom output path
|
|
110
|
+
agentrc instructions --strategy nested # nested hub + detail files in .agents/
|
|
112
111
|
agentrc instructions --areas # root + all detected areas
|
|
113
112
|
agentrc instructions --area frontend # single area
|
|
114
|
-
agentrc instructions --
|
|
113
|
+
agentrc instructions --areas-only # areas only (skip root)
|
|
114
|
+
agentrc instructions --dry-run # preview without writing
|
|
115
|
+
agentrc instructions --model claude-sonnet-4.6
|
|
115
116
|
```
|
|
116
117
|
|
|
118
|
+
**Concepts:**
|
|
119
|
+
|
|
120
|
+
- **Format**: Output file — `copilot-instructions.md` (default) or `AGENTS.md` (via `--output`)
|
|
121
|
+
- **Strategy**: `flat` (single file, default) or `nested` (hub + per-topic detail files)
|
|
122
|
+
- **Scope**: `root only` (default), `--areas` (root + areas), `--area <name>` (single area)
|
|
123
|
+
|
|
117
124
|
### `agentrc eval` — Evaluate Instructions
|
|
118
125
|
|
|
119
126
|
Measure how instructions improve AI responses with a judge model:
|
|
@@ -121,12 +128,14 @@ Measure how instructions improve AI responses with a judge model:
|
|
|
121
128
|
```bash
|
|
122
129
|
agentrc eval --init # scaffold eval config from codebase
|
|
123
130
|
agentrc eval agentrc.eval.json # run evaluation
|
|
124
|
-
agentrc eval --model gpt-4.1 --judge-model claude-sonnet-4.
|
|
131
|
+
agentrc eval --model gpt-4.1 --judge-model claude-sonnet-4.6
|
|
125
132
|
agentrc eval --fail-level 80 # CI gate: exit 1 if pass rate < 80%
|
|
126
133
|
```
|
|
127
134
|
|
|
128
135
|
### `agentrc generate` — Generate Configs
|
|
129
136
|
|
|
137
|
+
> **Note:** `generate instructions` and `generate agents` are deprecated — use `agentrc instructions` directly.
|
|
138
|
+
|
|
130
139
|
```bash
|
|
131
140
|
agentrc generate mcp # .vscode/mcp.json
|
|
132
141
|
agentrc generate vscode --force # .vscode/settings.json (overwrite)
|
|
@@ -148,9 +157,9 @@ agentrc pr owner/repo-name # clone → generate → open PR
|
|
|
148
157
|
agentrc tui
|
|
149
158
|
```
|
|
150
159
|
|
|
151
|
-
### `agentrc init` —
|
|
160
|
+
### `agentrc init` — Init Repository
|
|
152
161
|
|
|
153
|
-
Interactive or headless repo onboarding —
|
|
162
|
+
Interactive or headless repo onboarding — analyzes your stack and generates instructions. For monorepos, auto-detects workspaces and bootstraps `agentrc.config.json` with workspace and area definitions.
|
|
154
163
|
|
|
155
164
|
### Global Options
|
|
156
165
|
|