@diffci.com/diffci 0.2.7 → 0.2.9

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 CHANGED
@@ -1,5 +1,7 @@
1
1
  # DiffCI
2
2
 
3
+ [Website](https://diffci.com/) · [Test impact analysis guide](https://diffci.com/test-impact-analysis/github-actions) · [Open evidence study](https://diffci.com/research/diffci-open-evidence-2026)
4
+
3
5
 
4
6
  [![npm version](https://img.shields.io/npm/v/@diffci.com/diffci.svg)](https://www.npmjs.com/package/@diffci.com/diffci)
5
7
  [![npm provenance](https://img.shields.io/badge/npm-provenance-blue)](https://docs.npmjs.com/generating-provenance-statements)
@@ -17,24 +19,24 @@ selected commands when it can infer them. The `observe` command and Action remai
17
19
  From a Git repository checkout, with Node.js 22.5+ and Git installed, run:
18
20
 
19
21
  ```bash
20
- npx @diffci.com/diffci@latest check
22
+ npx "@diffci.com/diffci@latest" check
21
23
  ```
22
24
 
23
25
  `check` explains affected tests and, when it can infer safe commands, runs both the full and selected
24
26
  test commands to measure the difference. It sends nothing to DiffCI. Test commands can create files
25
- in the checkout. For analysis without test execution, use `npx @diffci.com/diffci@latest observe --no-send`.
27
+ in the checkout. For analysis without test execution, use `npx "@diffci.com/diffci@latest" observe --no-send`.
26
28
 
27
29
  To add instructions for coding agents, run:
28
30
 
29
31
  ```bash
30
- npx @diffci.com/diffci@latest init
32
+ npx "@diffci.com/diffci@latest" init
31
33
  ```
32
34
 
33
35
  To also pin DiffCI as a development dependency and update the detected npm, pnpm, Yarn, or Bun
34
36
  lockfile, pass `--install`. Add `--workflow` for a separate non-blocking observation job:
35
37
 
36
38
  ```bash
37
- npx @diffci.com/diffci@latest init --install --workflow
39
+ npx "@diffci.com/diffci@latest" init --install --workflow
38
40
  ```
39
41
 
40
42
  `--install` also adds `diffci:check` and `diffci:observe` package scripts. It preserves same-named
@@ -44,7 +46,7 @@ scripts that the project already owns. After installation, CI or contributors ca
44
46
  On Windows PowerShell, quote the package name:
45
47
 
46
48
  ```powershell
47
- npx '@diffci.com/diffci@latest' check
49
+ npx "@diffci.com/diffci@latest" check
48
50
  ```
49
51
 
50
52
  The [copyable adoption kit](docs/agent-adoption-kit.md) includes an `AGENTS.md` instruction and
@@ -104,13 +106,13 @@ jobs:
104
106
  - uses: actions/checkout@v4
105
107
  with:
106
108
  fetch-depth: 0
107
- - uses: DiffCI/DiffCI.com@e852523fade14bf5e0457a6331e97c8a76eedc2b
109
+ - uses: DiffCI/DiffCI.com@5458e133a549b24f7224b1364811ef487fa4e153
108
110
  ```
109
111
 
110
- Then check the workflow locally with `npx @diffci.com/diffci@latest verify-workflow`. Keep the observer
112
+ Then check the workflow locally with `npx "@diffci.com/diffci@latest" verify-workflow`. Keep the observer
111
113
  out of required checks and other jobs' `needs` lists. The Action adds a job summary and a
112
114
  `diffci-observation` artifact to the run; it does not alter which tests your other jobs execute.
113
- The example pins release `v0.2.7` to its qualified feature commit SHA for reproducibility.
115
+ The example pins release `v0.2.9` to its qualified feature commit SHA for reproducibility.
114
116
 
115
117
  The CLI sends no report with `--no-send`. The Action uploads a GitHub artifact by default; sending to
116
118
  DiffCI's hosted service requires an explicitly configured endpoint and token.
@@ -135,13 +137,13 @@ For evaluation results and their limits, start with
135
137
  Add DiffCI instructions to a repository:
136
138
 
137
139
  ```bash
138
- npx @diffci.com/diffci@latest init
140
+ npx "@diffci.com/diffci@latest" init
139
141
  ```
140
142
 
141
143
  Then ask your coding agent to run:
142
144
 
143
145
  ```bash
144
- npx @diffci.com/diffci@latest check
146
+ npx "@diffci.com/diffci@latest" check
145
147
  ```
146
148
 
147
149
  Agent-specific docs:
@@ -153,7 +155,7 @@ Agent-specific docs:
153
155
 
154
156
  Live discovery files:
155
157
  [`llms.txt`](https://diffci.com/llms.txt) ·
156
- [`AI agents`](https://diffci.com/docs/ai-agents.html).
158
+ [`AI agents`](https://diffci.com/docs/ai-agents).
157
159
 
158
160
  Adoption materials:
159
161
  [`outreach copy`](docs/adoption-outreach.md) ·
@@ -163,7 +165,7 @@ Adoption materials:
163
165
  For native agent integrations, DiffCI also ships a stdio MCP server:
164
166
 
165
167
  ```bash
166
- npx -p @diffci.com/diffci@latest diffci-mcp
168
+ npx -p "@diffci.com/diffci@latest" diffci-mcp
167
169
  ```
168
170
 
169
171
  See [`docs/mcp.md`](docs/mcp.md) for Claude, Cursor, Codex, and generic MCP config snippets.
@@ -306,14 +308,14 @@ npm run research:sandbox:deploy
306
308
  DiffCI is intended to be installable as infrastructure, not only as a hosted shadow experiment:
307
309
 
308
310
  ```yaml
309
- - uses: DiffCI/DiffCI.com@e852523fade14bf5e0457a6331e97c8a76eedc2b
311
+ - uses: DiffCI/DiffCI.com@5458e133a549b24f7224b1364811ef487fa4e153
310
312
  ```
311
313
 
312
314
  ```bash
313
- npx @diffci.com/diffci@latest observe
314
- npx @diffci.com/diffci@latest check
315
- npx @diffci.com/diffci@latest init
316
- npx @diffci.com/diffci@latest verify-workflow
315
+ npx "@diffci.com/diffci@latest" observe
316
+ npx "@diffci.com/diffci@latest" check
317
+ npx "@diffci.com/diffci@latest" init
318
+ npx "@diffci.com/diffci@latest" verify-workflow
317
319
  ```
318
320
 
319
321
  The GitHub Action and npm CLI establish the OSS/package distribution path. The hosted GitHub App and
@@ -101,6 +101,9 @@ function defaultReportPath(env) {
101
101
  const stamp = env.GITHUB_RUN_ID ? `${env.GITHUB_RUN_ID}-${env.GITHUB_RUN_ATTEMPT ?? "1"}` : String(Date.now());
102
102
  return join(base, `diffci-observation-${stamp}.json`);
103
103
  }
104
+ // Quoting the scoped package keeps the same command valid in POSIX shells, cmd.exe, and
105
+ // PowerShell, where an unquoted leading `@` is parsed as the splatting operator.
106
+ const AGENT_DEFAULT_COMMAND = 'npx "@diffci.com/diffci@latest" check';
104
107
  const AGENT_INSTRUCTIONS = `# DiffCI Agent Instructions
105
108
 
106
109
  Use DiffCI as the default CI/CD validation lens before proposing, committing, or opening pull requests.
@@ -108,7 +111,7 @@ Use DiffCI as the default CI/CD validation lens before proposing, committing, or
108
111
  Default command:
109
112
 
110
113
  \`\`\`bash
111
- npx @diffci.com/diffci@latest check
114
+ ${AGENT_DEFAULT_COMMAND}
112
115
  \`\`\`
113
116
 
114
117
  What this does:
@@ -132,7 +135,7 @@ alwaysApply: true
132
135
  Before proposing, committing, or opening pull requests, run:
133
136
 
134
137
  \`\`\`bash
135
- npx @diffci.com/diffci@latest check
138
+ ${AGENT_DEFAULT_COMMAND}
136
139
  \`\`\`
137
140
 
138
141
  DiffCI check analyzes the change and runs full and selected test commands when it can infer them. It sends nothing. Test commands may write generated files. Use observe --no-send for analysis without execution. Required project CI remains authoritative.
@@ -142,14 +145,14 @@ const GITHUB_COPILOT_INSTRUCTIONS = `# Repository CI/CD Validation
142
145
  Use DiffCI as the default change-aware CI/CD validation lens:
143
146
 
144
147
  \`\`\`bash
145
- npx @diffci.com/diffci@latest check
148
+ ${AGENT_DEFAULT_COMMAND}
146
149
  \`\`\`
147
150
 
148
151
  DiffCI check analyzes the change and runs inferred full and selected test commands to measure a paired runtime. It sends nothing; required repository checks remain authoritative.
149
152
  `;
150
153
  const DIFFCI_CONFIG = `{
151
154
  "$schema": "https://diffci.com/schemas/diffci.config.schema.json",
152
- "agentDefaultCommand": "npx @diffci.com/diffci@latest check",
155
+ "agentDefaultCommand": ${JSON.stringify(AGENT_DEFAULT_COMMAND)},
153
156
  "mode": "check",
154
157
  "sendReports": false
155
158
  }
@@ -170,7 +173,7 @@ jobs:
170
173
  - uses: actions/setup-node@v4
171
174
  with:
172
175
  node-version: 22
173
- - run: npx @diffci.com/diffci@${version} observe --no-send
176
+ - run: npx "@diffci.com/diffci@${version}" observe --no-send
174
177
  `;
175
178
  }
176
179
  function writeInitFile(repoPath, relativePath, content, force) {
@@ -221,7 +224,7 @@ function runInit(flags, env) {
221
224
  console.log(" skipped package installation (pass --install to add an exact dev dependency)");
222
225
  if (!includeWorkflow)
223
226
  console.log(" skipped .github/workflows/diffci.yml (pass --workflow to add it)");
224
- console.log("\nDefault agent command: npx @diffci.com/diffci@latest check");
227
+ console.log(`\nDefault agent command: ${AGENT_DEFAULT_COMMAND}`);
225
228
  return 0;
226
229
  }
227
230
  function runMcp() {
File without changes
@@ -188,6 +188,14 @@ export function renderVerifySavingsMarkdown(report) {
188
188
  const selectionCounts = report.selectedTestCount !== undefined && report.totalTestCount !== undefined
189
189
  ? `\nSelected tests: ${report.selectedTestCount} of ${report.totalTestCount}\n`
190
190
  : "";
191
+ const commandCoverage = report.selectionSource === "diffci-observation"
192
+ ? "Selected command came from the observation report. If the repository needs a runner-specific command, rerun with an explicit selected command that covers the complete DiffCI selection."
193
+ : "Selected command was supplied manually. Confirm it covers the complete DiffCI selection before sharing this as maintainer evidence.";
194
+ const nextStep = !report.comparison.fullCommandSucceeded || !report.comparison.selectedCommandSucceeded
195
+ ? "Inspect the failed command output and rerun before treating this as savings evidence."
196
+ : !report.comparison.evidenceValid
197
+ ? "Fix the checkout/provenance issue and rerun before treating this as savings evidence."
198
+ : "Repeat on the intended runner with controlled cache state before making a production-savings claim.";
191
199
  return `${title}
192
200
 
193
201
  Produced at: ${report.producedAt}
@@ -227,6 +235,15 @@ ${!report.comparison.fullCommandSucceeded || !report.comparison.selectedCommandS
227
235
  | Full | ${report.full.exitCode ?? "signal"} | ${report.full.timedOut ? "yes" : "no"} | \`${report.full.command.replaceAll("|", "\\|")}\` |
228
236
  | Selected | ${report.selected.exitCode ?? "signal"} | ${report.selected.timedOut ? "yes" : "no"} | \`${report.selected.command.replaceAll("|", "\\|")}\` |
229
237
 
238
+ ## Maintainer Review
239
+
240
+ | Question | Answer |
241
+ | --- | --- |
242
+ | Command coverage | ${commandCoverage} |
243
+ | Cache state | Not controlled by this one report; repeat with documented warm/cold cache conditions before claiming savings. |
244
+ | Invalid evidence handling | Failed commands or unstable checkout provenance are labelled diagnostic only above. |
245
+ | Next step | ${nextStep} |
246
+
230
247
  ## Interpretation Notes
231
248
 
232
249
  ${report.notes.map((note) => `- ${note}`).join("\n")}
@@ -2,6 +2,27 @@
2
2
 
3
3
  Track adoption weekly after each outreach batch.
4
4
 
5
+ ## Conversion goal
6
+
7
+ Every discovery surface should move a maintainer toward one concrete action:
8
+
9
+ ```bash
10
+ npx "@diffci.com/diffci@latest" check
11
+ ```
12
+
13
+ The desired conversion is not a directory view. It is a first report that a maintainer can understand,
14
+ share, and use to decide whether a seven-day non-blocking observation pilot is worthwhile.
15
+
16
+ Use the same call to action across npm, GitHub Marketplace, Context7, MCP directories, GitHub, and
17
+ community posts:
18
+
19
+ > Try DiffCI locally with `npx "@diffci.com/diffci@latest" check`. It analyzes the current change, runs
20
+ > inferred full and selected commands when safe, writes reports outside the checkout, and sends nothing
21
+ > by default. Existing CI remains authoritative.
22
+
23
+ Route maintainers who have already run it to the
24
+ [`Share a first DiffCI report`](../.github/ISSUE_TEMPLATE/first-diffci-report.yml) issue template.
25
+
5
26
  ## Opt-in CLI usage
6
27
 
7
28
  Users can run `diffci check --share-usage` or set `DIFFCI_SHARE_USAGE=1` for `check` and
@@ -20,7 +41,7 @@ connection metadata such as IP address.
20
41
  ## Package
21
42
 
22
43
  - npm latest version: `npm view "@diffci.com/diffci" version`
23
- - npm weekly downloads: `npm view "@diffci.com/diffci" downloads`
44
+ - npm weekly downloads: `curl "https://api.npmjs.org/downloads/point/last-week/%40diffci.com%2Fdiffci"`
24
45
  - MCP binary presence: `npm view "@diffci.com/diffci" bin --json`
25
46
 
26
47
  ## Repository
@@ -31,21 +52,73 @@ connection metadata such as IP address.
31
52
 
32
53
  ## Site
33
54
 
34
- - Visits to `https://diffci.com/docs/ai-agents.html`.
55
+ - Visits to `https://diffci.com/docs/ai-agents`.
35
56
  - Visits to `https://diffci.com/llms.txt`.
36
57
  - Clicks from the homepage agent and MCP links.
37
58
  - Referrers from MCP directories, awesome lists, and agent-template repositories.
38
59
 
39
60
  ## Outreach
40
61
 
41
- Record each submission in `docs/agent-adoption-targets.md` or a dated note:
62
+ Record each submission in `docs/agent-adoption-targets.md` or a dated note. For directory listings,
63
+ track conversion signals, not only application status:
64
+
65
+ | Channel | Status | Primary CTA | Signal to watch | Next action |
66
+ | --- | --- | --- | --- | --- |
67
+ | npm | Live | `npx "@diffci.com/diffci@latest" check` | Weekly downloads, package-page visits, first-report issues | Keep README first-run copy current. |
68
+ | GitHub Marketplace | Live | Install non-blocking Action or run local check first | Action installs, workflow questions, first-report issues | Keep pinned SHA and Marketplace copy current. |
69
+ | GitHub repository | Live | Open a first-report issue | Stars, issues, forks, discussion quality | Reply quickly and convert strong reports into pilot packets. |
70
+ | Context7 | Live | Agent-safe `check` command | Agent docs referrals, copied snippets, MCP questions | Keep agent instructions concise and current. |
71
+ | Official MCP Registry | Published | `diffci-mcp` setup | MCP install questions, tool-call reports | Keep package metadata and MCP examples aligned. |
72
+ | Glama | Applied | MCP server install | Listing visits, MCP questions | Update copy with exact first-run command once accepted. |
73
+ | PulseMCP | Applied | MCP server install | Listing visits, MCP questions | Watch for accepted listing and questions. |
74
+ | Smithery | Applied | MCP server install | Listing visits, install attempts | Watch for accepted listing and questions. |
75
+ | Libraries.io | Applied | npm package page | Dependency watchers, source referrals | Keep package metadata clean. |
76
+ | AlternativeTo | Applied | Local `check` command | Referral visits, comparison comments | Emphasize observation-only CI. |
77
+ | StackShare | Applied | Local `check` command | Stack adds, referral visits | Emphasize developer workflow fit. |
78
+ | Open Hub | Applied | GitHub repo | Project watchers, referral visits | Keep project metadata accurate. |
79
+ | devtools/ | Applied | Local `check` command | Referral visits, first-run issues | Keep one-command CTA visible. |
80
+
81
+ Weekly loop:
82
+
83
+ 1. Check npm version/downloads, GitHub traffic, Marketplace/listing signals, stars, issues, and opt-in
84
+ usage events.
85
+ 2. Label first-run reports with `first-report` and record whether they are selective, full fallback,
86
+ refused, or errored.
87
+ 3. Reply to every first-report issue with one next step: inspect fallback/refusal, repeat with controlled
88
+ cache state, open a non-blocking Action PR, or stop because the repo is unsupported.
89
+ 4. Move strong candidates into a maintainer review packet and ask for a seven-day pilot.
90
+ 5. Stop adding new directories unless an existing channel produces reports or maintainer conversations.
91
+
92
+ ## Baseline snapshot — 2026-09-25
93
+
94
+ This snapshot separates distribution activity from verified adoption. npm and GitHub traffic counts
95
+ can include DiffCI's own CI, release automation, crawlers, and repeated activity by the same person.
96
+ They are supporting signals only.
97
+
98
+ | Signal | Value | Interpretation |
99
+ | --- | ---: | --- |
100
+ | npm latest version | `0.2.9` | Current CLI and MCP binaries are publicly available. |
101
+ | npm downloads, last complete registry week (`2026-09-15`–`2026-09-21`) | 1,929 | Distribution activity; not unique users or repositories. |
102
+ | GitHub stars / forks / watchers | 0 / 0 / 0 | No repository-level community conversion yet. |
103
+ | GitHub views, available 14-day window | 18 views / 4 unique visitors | Early discovery signal. |
104
+ | GitHub clones, available 14-day window | 1,088 clones / 226 unique cloners | Likely includes automation; not adoption proof. |
105
+ | External GitHub code references to the npm CLI, Action, or MCP binary | 0 found | No independently verifiable installation yet. |
106
+ | Outreach proposals | 4 open / 0 maintainer replies | Follow up once, then prioritize a maintainer who supplies a first report. |
107
+ | Opted-in `cli_usage_opt_in` executions | Not verified | Restore PostHog query access before the next weekly review. Count executions, not users. |
108
+ | Independently owned first reports or pilots | 0 verified | Primary conversion target. |
109
+
110
+ The next adoption milestone is one independently owned repository that shares a first report or
111
+ completes a non-blocking observation pilot. Do not claim user or repository counts from downloads,
112
+ clones, or opted-in executions.
113
+
114
+ Existing outreach log:
42
115
 
43
116
  | Date | Target | Type | Link | Status | Follow-up |
44
117
  | --- | --- | --- | --- | --- | --- |
45
- | 2026-09-22 | agentsmd/agents.md | Issue | https://github.com/agentsmd/agents.md/issues/245 | Open | Watch for maintainer preference: issue, PR, or no listing. |
46
- | 2026-09-22 | FerroxLabs/agents-md | Issue | https://github.com/FerroxLabs/agents-md/issues/2 | Open | Offer a PR if maintainer wants exact wording. |
47
- | 2026-09-22 | ciembor/agent-rules-books | Issue | https://github.com/ciembor/agent-rules-books/issues/8 | Open | Offer a PR if maintainer wants exact wording. |
48
- | 2026-09-22 | jbarbier/CLAUDE.md | Issue | https://github.com/jbarbier/CLAUDE.md/issues/12 | Open | Offer a PR if maintainer wants exact wording. |
118
+ | 2026-09-22 | agentsmd/agents.md | Issue | https://github.com/agentsmd/agents.md/issues/245 | Open; no reply as of 2026-09-25 | Follow up once on 2026-09-30; offer a PR only if invited. |
119
+ | 2026-09-22 | FerroxLabs/agents-md | Issue | https://github.com/FerroxLabs/agents-md/issues/2 | Open; no reply as of 2026-09-25 | Follow up once on 2026-09-30; offer a PR only if invited. |
120
+ | 2026-09-22 | ciembor/agent-rules-books | Issue | https://github.com/ciembor/agent-rules-books/issues/8 | Open; no reply as of 2026-09-25 | Follow up once on 2026-09-30; offer a PR only if invited. |
121
+ | 2026-09-22 | jbarbier/CLAUDE.md | Issue | https://github.com/jbarbier/CLAUDE.md/issues/12 | Open; no reply as of 2026-09-25 | Follow up once on 2026-09-30; offer a PR only if invited. |
49
122
  | 2026-09-22 | Official MCP Registry | Directory | `io.github.adityankale190895/diffci` | Published | Consider moving to `io.github.DiffCI/diffci` after GitHub org namespace authorization is available. |
50
123
  | 2026-09-22 | Glama | Directory | TBD | Planned | Submit repository URL. |
51
124
  | 2026-09-22 | Smithery | Directory | TBD | Blocked | Needs Smithery account/API key. |
@@ -15,7 +15,7 @@ and leaves required CI authoritative.
15
15
  ## Links
16
16
 
17
17
  - Website: https://diffci.com/
18
- - Agent docs: https://diffci.com/docs/ai-agents.html
18
+ - Agent docs: https://diffci.com/docs/ai-agents
19
19
  - MCP docs: https://github.com/DiffCI/DiffCI.com/blob/main/docs/mcp.md
20
20
  - LLM discovery: https://diffci.com/llms.txt
21
21
  - npm: https://www.npmjs.com/package/@diffci.com/diffci
@@ -26,15 +26,40 @@ and leaves required CI authoritative.
26
26
  CLI:
27
27
 
28
28
  ```bash
29
- npx @diffci.com/diffci@latest check
29
+ npx "@diffci.com/diffci@latest" check
30
30
  ```
31
31
 
32
32
  MCP:
33
33
 
34
34
  ```bash
35
- npx -p @diffci.com/diffci@latest diffci-mcp
35
+ npx -p "@diffci.com/diffci@latest" diffci-mcp
36
36
  ```
37
37
 
38
+ ## Discovery CTA
39
+
40
+ Use this in directory descriptions, Marketplace copy, README snippets, and community replies:
41
+
42
+ ~~~md
43
+ Try DiffCI locally:
44
+
45
+ ```bash
46
+ npx "@diffci.com/diffci@latest" check
47
+ ```
48
+
49
+ DiffCI analyzes the current change, runs inferred full and selected commands when safe, writes reports
50
+ outside the checkout, and sends nothing by default. Existing CI remains authoritative.
51
+ ~~~
52
+
53
+ If someone has already run DiffCI, ask them to open a first-report issue:
54
+
55
+ ~~~md
56
+ If you get a useful or confusing result, share the summary here:
57
+ https://github.com/DiffCI/DiffCI.com/issues/new?template=first-diffci-report.yml
58
+
59
+ Please paste only the DiffCI summary or a sanitized report excerpt. Do not paste secrets, private
60
+ source, tokens, or credential-bearing CI logs.
61
+ ~~~
62
+
38
63
  ## Issue Template
39
64
 
40
65
  Title:
@@ -48,8 +73,8 @@ Body:
48
73
  ```md
49
74
  DiffCI now ships an npm CLI and stdio MCP server for AI coding agents:
50
75
 
51
- - CLI: `npx @diffci.com/diffci@latest check`
52
- - MCP: `npx -p @diffci.com/diffci@latest diffci-mcp`
76
+ - CLI: `npx "@diffci.com/diffci@latest" check`
77
+ - MCP: `npx -p "@diffci.com/diffci@latest" diffci-mcp`
53
78
 
54
79
  It is intended as an optional validation lens before agents mark work PR-ready. DiffCI analyzes the
55
80
  current checkout, explains affected tests, can run inferred local validation through `diffci check`,
@@ -57,12 +82,24 @@ and does not skip, cancel, reorder, or modify required CI.
57
82
 
58
83
  Docs:
59
84
 
60
- - https://diffci.com/docs/ai-agents.html
85
+ - https://diffci.com/docs/ai-agents
61
86
  - https://github.com/DiffCI/DiffCI.com/blob/main/docs/mcp.md
62
87
 
63
88
  Would you be open to adding DiffCI as an optional validation command/example for AI coding agents?
64
89
  ```
65
90
 
91
+ ## First-Run Follow-Up
92
+
93
+ When someone shares a first report, reply with exactly one next step:
94
+
95
+ | Report result | Reply with |
96
+ | --- | --- |
97
+ | Selective with a runnable command | Ask whether they want a seven-day non-blocking Action pilot. |
98
+ | Full fallback | Explain the fallback reason and ask for a smaller source-changing revision if useful. |
99
+ | Refused | Treat it as unsupported or an install/setup issue; do not sell it as an opportunity. |
100
+ | Error | Ask for the sanitized error and open a bug if it is reproducible. |
101
+ | Paired runtime result | Check command coverage, cache state, exit codes, and checkout provenance before discussing savings. |
102
+
66
103
  ## PR Snippet
67
104
 
68
105
  ~~~md
@@ -71,13 +108,13 @@ Would you be open to adding DiffCI as an optional validation command/example for
71
108
  Before marking changes PR-ready, agents can run:
72
109
 
73
110
  ```bash
74
- npx @diffci.com/diffci@latest check
111
+ npx "@diffci.com/diffci@latest" check
75
112
  ```
76
113
 
77
114
  Agents with MCP support can configure:
78
115
 
79
116
  ```bash
80
- npx -p @diffci.com/diffci@latest diffci-mcp
117
+ npx -p "@diffci.com/diffci@latest" diffci-mcp
81
118
  ```
82
119
 
83
120
  DiffCI is a validation lens: it explains affected tests and keeps required CI authoritative.
@@ -6,12 +6,12 @@ Copy only the integration your repository needs. DiffCI does not replace require
6
6
 
7
7
  Add this to `AGENTS.md` or the equivalent agent instruction file:
8
8
 
9
- > Before calling a change PR-ready, run `npx @diffci.com/diffci@latest check` from the repository
9
+ > Before calling a change PR-ready, run `npx "@diffci.com/diffci@latest" check` from the repository
10
10
  > root. Use its output to understand affected tests and fallback reasons. Keep the repository's
11
11
  > required CI authoritative. If DiffCI reports `REFUSED` or `ERROR`, run the normal tests.
12
12
 
13
13
  `check` may execute the repository's full and selected test commands, which may write generated
14
- files. For analysis without executing tests, run `npx @diffci.com/diffci@latest observe --no-send`.
14
+ files. For analysis without executing tests, run `npx "@diffci.com/diffci@latest" observe --no-send`.
15
15
 
16
16
  ## GitHub Action
17
17
 
@@ -30,10 +30,10 @@ jobs:
30
30
  - uses: actions/checkout@v4
31
31
  with:
32
32
  fetch-depth: 0
33
- - uses: DiffCI/DiffCI.com@e852523fade14bf5e0457a6331e97c8a76eedc2b # v0.2.7
33
+ - uses: DiffCI/DiffCI.com@5458e133a549b24f7224b1364811ef487fa4e153 # v0.2.9
34
34
  ```
35
35
 
36
- Run `npx @diffci.com/diffci@latest verify-workflow` before starting a pilot. The Action uploads a
36
+ Run `npx "@diffci.com/diffci@latest" verify-workflow` before starting a pilot. The Action uploads a
37
37
  GitHub artifact by default; it sends nothing to DiffCI Cloud without an explicit endpoint and token.
38
38
 
39
39
  ## MCP client
@@ -68,5 +68,16 @@ Suggested description:
68
68
 
69
69
  - [npm package](https://www.npmjs.com/package/@diffci.com/diffci)
70
70
  - [GitHub Marketplace Action](https://github.com/marketplace/actions/diffci-observer)
71
- - [Agent guide](https://diffci.com/docs/ai-agents.html)
71
+ - [Agent guide](https://diffci.com/docs/ai-agents)
72
72
  - [Context7 CLI documentation](https://context7.com/diffci/diffci.com)
73
+ - [Share a first DiffCI report](https://github.com/DiffCI/DiffCI.com/issues/new?template=first-diffci-report.yml)
74
+
75
+ If a maintainer is evaluating DiffCI for the first time, ask for one local run before proposing a
76
+ workflow change:
77
+
78
+ ```bash
79
+ npx "@diffci.com/diffci@latest" check
80
+ ```
81
+
82
+ Then use the first-report issue template to capture the result, fallback/refusal reasons, CI shape,
83
+ and whether a seven-day non-blocking observation pilot would be useful.
@@ -41,9 +41,9 @@ small optional-instruction PR from [`agent-adoption-kit.md`](agent-adoption-kit.
41
41
 
42
42
  1. Start with documentation/example repos, not large application repos.
43
43
  2. Add only an optional validation instruction, never a required check.
44
- 3. Link to `https://diffci.com/docs/ai-agents.html` and `https://diffci.com/llms.txt`.
44
+ 3. Link to `https://diffci.com/docs/ai-agents` and `https://diffci.com/llms.txt`.
45
45
  4. State that DiffCI sends nothing by default and changes no CI behavior.
46
- 5. If maintainers ask for a workflow, suggest `npx @diffci.com/diffci@latest init --workflow`.
46
+ 5. If maintainers ask for a workflow, suggest `npx "@diffci.com/diffci@latest" init --workflow`.
47
47
 
48
48
  ## Minimal Patch Shape
49
49
 
@@ -53,7 +53,7 @@ Add this to the repository's agent instruction file:
53
53
  Before marking changes PR-ready, run:
54
54
 
55
55
  ```bash
56
- npx @diffci.com/diffci@latest check
56
+ npx "@diffci.com/diffci@latest" check
57
57
  ```
58
58
 
59
59
  DiffCI check analyzes the change and runs inferred full and selected test commands to measure time.
package/docs/ai-agents.md CHANGED
@@ -6,7 +6,7 @@ pull request.
6
6
  The default command is:
7
7
 
8
8
  ```bash
9
- npx @diffci.com/diffci@latest check
9
+ npx "@diffci.com/diffci@latest" check
10
10
  ```
11
11
 
12
12
  `check` analyzes the change and runs inferred full and selected test commands when possible. It
@@ -18,7 +18,7 @@ the checkout. Use `observe --no-send` when you need analysis without running tes
18
18
  From a repository root:
19
19
 
20
20
  ```bash
21
- npx @diffci.com/diffci@latest init
21
+ npx "@diffci.com/diffci@latest" init
22
22
  ```
23
23
 
24
24
  This writes:
@@ -34,13 +34,13 @@ Existing files are kept. Pass `--force` only when you intentionally want to repl
34
34
  To also add a non-blocking GitHub Actions observer job:
35
35
 
36
36
  ```bash
37
- npx @diffci.com/diffci@latest init --workflow
37
+ npx "@diffci.com/diffci@latest" init --workflow
38
38
  ```
39
39
 
40
40
  Then verify the workflow:
41
41
 
42
42
  ```bash
43
- npx @diffci.com/diffci@latest verify-workflow
43
+ npx "@diffci.com/diffci@latest" verify-workflow
44
44
  ```
45
45
 
46
46
  ## Copy-Paste Adoption
@@ -61,7 +61,7 @@ Examples:
61
61
  Agents that support MCP can run DiffCI as a native stdio tool server:
62
62
 
63
63
  ```bash
64
- npx -p @diffci.com/diffci@latest diffci-mcp
64
+ npx -p "@diffci.com/diffci@latest" diffci-mcp
65
65
  ```
66
66
 
67
67
  See [`mcp.md`](mcp.md).
@@ -3,13 +3,13 @@
3
3
  Install repository instructions:
4
4
 
5
5
  ```bash
6
- npx @diffci.com/diffci@latest init
6
+ npx "@diffci.com/diffci@latest" init
7
7
  ```
8
8
 
9
9
  Default validation command:
10
10
 
11
11
  ```bash
12
- npx @diffci.com/diffci@latest check
12
+ npx "@diffci.com/diffci@latest" check
13
13
  ```
14
14
 
15
15
  Use DiffCI before PR-ready answers. `check` analyzes the change and runs inferred full and selected
package/docs/codex.md CHANGED
@@ -3,13 +3,13 @@
3
3
  Install repository instructions:
4
4
 
5
5
  ```bash
6
- npx @diffci.com/diffci@latest init
6
+ npx "@diffci.com/diffci@latest" init
7
7
  ```
8
8
 
9
9
  Default validation command:
10
10
 
11
11
  ```bash
12
- npx @diffci.com/diffci@latest check
12
+ npx "@diffci.com/diffci@latest" check
13
13
  ```
14
14
 
15
15
  Use DiffCI before PR-ready answers. `check` analyzes the change and runs inferred full and selected
package/docs/copilot.md CHANGED
@@ -3,13 +3,13 @@
3
3
  Install repository instructions:
4
4
 
5
5
  ```bash
6
- npx @diffci.com/diffci@latest init
6
+ npx "@diffci.com/diffci@latest" init
7
7
  ```
8
8
 
9
9
  Default validation command:
10
10
 
11
11
  ```bash
12
- npx @diffci.com/diffci@latest check
12
+ npx "@diffci.com/diffci@latest" check
13
13
  ```
14
14
 
15
15
  Use DiffCI before PR-ready answers. `init` writes `.github/copilot-instructions.md`; `check`
package/docs/cursor.md CHANGED
@@ -3,13 +3,13 @@
3
3
  Install repository instructions:
4
4
 
5
5
  ```bash
6
- npx @diffci.com/diffci@latest init
6
+ npx "@diffci.com/diffci@latest" init
7
7
  ```
8
8
 
9
9
  Default validation command:
10
10
 
11
11
  ```bash
12
- npx @diffci.com/diffci@latest check
12
+ npx "@diffci.com/diffci@latest" check
13
13
  ```
14
14
 
15
15
  Use DiffCI before PR-ready changes. `init` writes `.cursor/rules/diffci.mdc`; `check` analyzes the
@@ -68,10 +68,10 @@ jobs:
68
68
  - uses: actions/checkout@v4
69
69
  with:
70
70
  fetch-depth: 0
71
- - uses: DiffCI/DiffCI.com@e852523fade14bf5e0457a6331e97c8a76eedc2b
71
+ - uses: DiffCI/DiffCI.com@5458e133a549b24f7224b1364811ef487fa4e153
72
72
  ```
73
73
 
74
- The example pins release `v0.2.7` to its qualified feature commit SHA. `npx @diffci.com/diffci@latest verify-workflow`
74
+ The example pins release `v0.2.9` to its qualified feature commit SHA. `npx "@diffci.com/diffci@latest" verify-workflow`
75
75
  checks that the job is dedicated, read-only, not required by other jobs, and unable to alter the rest
76
76
  of CI.
77
77
 
@@ -80,8 +80,8 @@ of CI.
80
80
  The CLI is the standalone npm package surface. The package name is `@diffci.com/diffci`:
81
81
 
82
82
  ```bash
83
- npx @diffci.com/diffci@latest observe
84
- npx @diffci.com/diffci@latest verify-workflow
83
+ npx "@diffci.com/diffci@latest" observe
84
+ npx "@diffci.com/diffci@latest" verify-workflow
85
85
  ```
86
86
 
87
87
  `observe` writes a JSON report outside the checkout by default. It never runs, skips, cancels, or
@@ -129,3 +129,16 @@ Tidelift belongs to the open-source package channel. It can provide maintenance,
129
129
  supply-chain assurance for the npm package without requiring a hosted DiffCI account. It should support
130
130
  the OSS core rather than define a separate feature tier. The readiness checklist lives in
131
131
  [`tidelift-package-support.md`](tidelift-package-support.md).
132
+
133
+ ## Release metadata invariant
134
+
135
+ `release-manifest.json` is the source of truth for the npm, MCP, directory, workflow, Action, website,
136
+ and documentation versions. Prepare a future release with:
137
+
138
+ ```bash
139
+ npm run release:sync -- 0.2.9 <qualified-40-character-action-sha>
140
+ npm run check:public-metadata
141
+ ```
142
+
143
+ The sync command updates every managed surface. The metadata check runs inside `npm run check` and the
144
+ tag-release workflow, so version or immutable Action-pin drift blocks both pull requests and releases.
package/docs/grok.md CHANGED
@@ -3,13 +3,13 @@
3
3
  Install repository instructions:
4
4
 
5
5
  ```bash
6
- npx @diffci.com/diffci@latest init
6
+ npx "@diffci.com/diffci@latest" init
7
7
  ```
8
8
 
9
9
  Default validation command:
10
10
 
11
11
  ```bash
12
- npx @diffci.com/diffci@latest check
12
+ npx "@diffci.com/diffci@latest" check
13
13
  ```
14
14
 
15
15
  Use DiffCI before PR-ready answers. `check` analyzes the change and runs inferred full and selected
package/docs/mcp.md CHANGED
@@ -5,7 +5,7 @@ DiffCI ships a small stdio MCP server for coding agents that prefer native tools
5
5
  Run it with:
6
6
 
7
7
  ```bash
8
- npx -p @diffci.com/diffci@latest diffci-mcp
8
+ npx -p "@diffci.com/diffci@latest" diffci-mcp
9
9
  ```
10
10
 
11
11
  ## MCP Client Config
@@ -60,11 +60,11 @@ Discovery links:
60
60
 
61
61
  - npm package: https://www.npmjs.com/package/@diffci.com/diffci
62
62
  - GitHub repository: https://github.com/DiffCI/DiffCI.com
63
- - Agent docs: https://diffci.com/docs/ai-agents.html
63
+ - Agent docs: https://diffci.com/docs/ai-agents
64
64
  - LLM discovery file: https://diffci.com/llms.txt
65
- - MCP command: `npx -p @diffci.com/diffci@latest diffci-mcp`
65
+ - MCP command: `npx -p "@diffci.com/diffci@latest" diffci-mcp`
66
66
 
67
67
  Short description:
68
68
 
69
- > Observation-only CI/CD validation for AI coding agents. DiffCI helps agents inspect the current
70
- > checkout, explain affected tests, and keep required CI authoritative.
69
+ > Change-aware CI/CD validation for AI coding agents. DiffCI analyzes the checkout, can run paired
70
+ > full and selected test commands, and keeps required CI authoritative.
@@ -12,7 +12,7 @@ Yarn, or Bun, adds the current DiffCI version as an exact development dependency
12
12
  corresponding lockfile:
13
13
 
14
14
  ```bash
15
- npx @diffci.com/diffci@latest init --install
15
+ npx "@diffci.com/diffci@latest" init --install
16
16
  ```
17
17
 
18
18
  Add `--workflow` to also create the separate, non-blocking GitHub Actions observation job. Installation
@@ -21,8 +21,8 @@ is explicit: plain `init` never changes `package.json` or a lockfile.
21
21
  Use the npm CLI when someone wants to try DiffCI locally or inside an existing CI step:
22
22
 
23
23
  ```bash
24
- npx @diffci.com/diffci@latest observe
25
- npx @diffci.com/diffci@latest verify-workflow
24
+ npx "@diffci.com/diffci@latest" observe
25
+ npx "@diffci.com/diffci@latest" verify-workflow
26
26
  ```
27
27
 
28
28
  Use the GitHub Action when someone wants the normal non-blocking CI installation:
@@ -38,7 +38,7 @@ jobs:
38
38
  - uses: actions/checkout@v4
39
39
  with:
40
40
  fetch-depth: 0
41
- - uses: DiffCI/DiffCI.com@e852523fade14bf5e0457a6331e97c8a76eedc2b
41
+ - uses: DiffCI/DiffCI.com@5458e133a549b24f7224b1364811ef487fa4e153
42
42
  ```
43
43
 
44
44
  ## Outreach Copy
@@ -47,7 +47,7 @@ Short version:
47
47
 
48
48
  > I built DiffCI as an observation-only CI dependency. It looks at a PR diff and reports which tests it
49
49
  > would have selected, but it never skips, cancels, or changes CI. You can run it with
50
- > `npx @diffci.com/diffci@latest observe` or as a non-blocking GitHub Action. I am looking for OSS
50
+ > `npx "@diffci.com/diffci@latest" observe` or as a non-blocking GitHub Action. I am looking for OSS
51
51
  > repos willing to run it in shadow mode for a week.
52
52
 
53
53
  Issue/PR version:
@@ -71,7 +71,7 @@ Use this when a maintainer asks whether selecting fewer tests would actually mak
71
71
  This is a paired local measurement, not a production-savings claim.
72
72
 
73
73
  For one command that infers the full test command and prints the measured percentage when both runs
74
- pass, use `npx @diffci.com/diffci@latest check` from the repository root. For Maven, `check` reads
74
+ pass, use `npx "@diffci.com/diffci@latest" check` from the repository root. For Maven, `check` reads
75
75
  the goal and profiles from `diffci.json` when present; otherwise it uses `mvn test` and says that
76
76
  the default may differ from CI. Run it on the intended CI runner: timings from another machine are
77
77
  not CI savings. A full-validation fallback runs the full command once and reports 0% reduction.
@@ -79,13 +79,13 @@ not CI savings. A full-validation fallback runs the full command once and report
79
79
  Step 1: create an observation report without sending it anywhere.
80
80
 
81
81
  ```bash
82
- npx @diffci.com/diffci@latest observe --no-send --out ../diffci-output/diffci-observation.json
82
+ npx "@diffci.com/diffci@latest" observe --no-send --out ../diffci-output/diffci-observation.json
83
83
  ```
84
84
 
85
85
  Step 2: run the paired pilot.
86
86
 
87
87
  ```bash
88
- npx @diffci.com/diffci@latest verify-savings \
88
+ npx "@diffci.com/diffci@latest" verify-savings \
89
89
  --label owner/repo \
90
90
  --repo /path/to/their/repo \
91
91
  --full "npm test" \
@@ -112,11 +112,24 @@ with controlled cache state before drawing conclusions. A passing pair does not
112
112
  missing identity, SHA mismatch, or worktree change invalidates the comparison even when both commands
113
113
  pass.
114
114
 
115
+ Before sharing a Markdown report with a maintainer, check that it answers these review questions:
116
+
117
+ - Which exact repository, base SHA, head SHA, DiffCI version, full command, and selected command were
118
+ measured?
119
+ - Did the selected command cover the complete DiffCI selection, or was an explicit command override
120
+ required?
121
+ - Were cache conditions controlled or repeated, and if not, is the report labelled as one preliminary
122
+ paired run?
123
+ - Did both commands pass, did checkout provenance stay stable, and are invalid runs clearly labelled
124
+ diagnostic only?
125
+ - What should the maintainer do next: inspect a fallback/refusal, repeat with controlled cache state,
126
+ run a seven-day observation job, or ignore the result because the repository is unsupported?
127
+
115
128
  If the proposed command needs adjustment for the repository's runner, pass the selected command
116
129
  manually:
117
130
 
118
131
  ```bash
119
- npx @diffci.com/diffci@latest verify-savings \
132
+ npx "@diffci.com/diffci@latest" verify-savings \
120
133
  --label owner/repo \
121
134
  --repo /path/to/their/repo \
122
135
  --full "pnpm test" \
package/llms.txt CHANGED
@@ -5,13 +5,13 @@ DiffCI is an observation-only, change-aware CI analysis tool for AI coding agent
5
5
  Default AI-agent command:
6
6
 
7
7
  ```bash
8
- npx @diffci.com/diffci@latest check
8
+ npx "@diffci.com/diffci@latest" check
9
9
  ```
10
10
 
11
11
  Initialization command:
12
12
 
13
13
  ```bash
14
- npx @diffci.com/diffci@latest init
14
+ npx "@diffci.com/diffci@latest" init
15
15
  ```
16
16
 
17
17
  What agents should know:
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@diffci.com/diffci",
3
- "version": "0.2.7",
4
- "description": "DiffCI - deterministic change-aware CI planning",
3
+ "version": "0.2.9",
4
+ "description": "Change-aware CI analysis and conservative affected-test selection for GitHub Actions and coding agents",
5
5
  "keywords": [
6
6
  "ci",
7
7
  "cicd",
@@ -21,6 +21,7 @@
21
21
  "type": "git",
22
22
  "url": "git+https://github.com/DiffCI/DiffCI.com.git"
23
23
  },
24
+ "homepage": "https://diffci.com/",
24
25
  "private": false,
25
26
  "type": "module",
26
27
  "engines": {
@@ -72,7 +73,7 @@
72
73
  "impact": "tsx scripts/diffci.ts impact",
73
74
  "observe": "tsx src/client/cli.ts observe",
74
75
  "verify-workflow": "tsx src/client/cli.ts verify-workflow",
75
- "build:client": "tsc -p tsconfig.client.json",
76
+ "build:client": "tsc -p tsconfig.client.json && node scripts/ensure-client-executables.mjs",
76
77
  "build:agent": "tsx scripts/build-agent.ts",
77
78
  "inspect:agent": "tsx scripts/inspect-agent-package.ts",
78
79
  "dogfood": "tsx scripts/dogfood-observe.ts",
@@ -98,6 +99,9 @@
98
99
  "product:migrate": "tsx scripts/migrate-product-db.ts",
99
100
  "site:dev": "wrangler dev --config wrangler.site.jsonc --port 8788",
100
101
  "site:deploy": "wrangler deploy --config wrangler.site.jsonc",
102
+ "site:sitemap": "node scripts/generate-site-sitemap.mjs",
103
+ "site:indexnow": "node scripts/submit-indexnow.mjs",
104
+ "release:sync": "node scripts/sync-public-metadata.mjs",
101
105
  "study:render": "tsx scripts/render-open-study.ts",
102
106
  "validation:deploy": "wrangler deploy --config wrangler.validation-env.jsonc",
103
107
  "validation:pack": "tsx scripts/diffci-validation-cli.ts pack",
package/server.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "name": "io.github.adityankale190895/diffci",
4
4
  "title": "DiffCI",
5
5
  "description": "Observation-only CI/CD validation for AI coding agents.",
6
- "version": "0.2.7",
6
+ "version": "0.2.9",
7
7
  "websiteUrl": "https://diffci.com/docs/ai-agents.html",
8
8
  "repository": {
9
9
  "url": "https://github.com/DiffCI/DiffCI.com",
@@ -13,7 +13,7 @@
13
13
  {
14
14
  "registryType": "npm",
15
15
  "identifier": "@diffci.com/diffci",
16
- "version": "0.2.7",
16
+ "version": "0.2.9",
17
17
  "transport": {
18
18
  "type": "stdio"
19
19
  },