@diffci.com/diffci 0.3.10 → 0.3.12

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.
Files changed (53) hide show
  1. package/LICENSE +7 -5
  2. package/README.md +18 -422
  3. package/dist-client/src/client/cli.js +1 -49
  4. package/dist-client/src/client/mcp.js +2 -1
  5. package/dist-client/src/client/package-identity.js +69 -0
  6. package/dist-client/src/client/workflow-guard.js +1 -1
  7. package/node_modules/@diffci.com/core/README.md +33 -0
  8. package/package.json +17 -131
  9. package/.agents/plugins/marketplace.json +0 -12
  10. package/.claude-plugin/marketplace.json +0 -17
  11. package/COMMERCIAL.md +0 -35
  12. package/SECURITY.md +0 -61
  13. package/SUPPORT.md +0 -47
  14. package/action.yml +0 -155
  15. package/docs/adoption-metrics.md +0 -161
  16. package/docs/adoption-outreach.md +0 -156
  17. package/docs/agent-adoption-kit.md +0 -97
  18. package/docs/agent-adoption-targets.md +0 -62
  19. package/docs/agent-plugin.md +0 -145
  20. package/docs/ai-agents.md +0 -123
  21. package/docs/claude-code.md +0 -18
  22. package/docs/codex.md +0 -18
  23. package/docs/copilot.md +0 -18
  24. package/docs/cursor.md +0 -19
  25. package/docs/distribution.md +0 -153
  26. package/docs/grok.md +0 -18
  27. package/docs/language-support.md +0 -118
  28. package/docs/mcp.md +0 -116
  29. package/docs/npm-adoption.md +0 -165
  30. package/glama.json +0 -12
  31. package/llms.txt +0 -41
  32. package/packaging/agent-plugin/.claude-plugin/plugin.json +0 -26
  33. package/packaging/agent-plugin/.codex-plugin/plugin.json +0 -47
  34. package/packaging/agent-plugin/.mcp.json +0 -13
  35. package/packaging/agent-plugin/README.md +0 -36
  36. package/packaging/agent-plugin/assets/diffci-mark.svg +0 -14
  37. package/packaging/agent-plugin/mcp.json +0 -15
  38. package/packaging/agent-plugin/plugin.json +0 -51
  39. package/packaging/agent-plugin/skills/diffci-verify/SKILL.md +0 -35
  40. package/packaging/public-plugin/README.md +0 -12
  41. package/packaging/public-plugin/SUBMISSION.md +0 -21
  42. package/packaging/public-plugin/assets/icon-dark.png +0 -0
  43. package/packaging/public-plugin/assets/icon.png +0 -0
  44. package/packaging/public-plugin/assets/logo-dark.png +0 -0
  45. package/packaging/public-plugin/assets/logo.png +0 -0
  46. package/packaging/public-plugin/mcp.json +0 -16
  47. package/packaging/public-plugin/plugin.json +0 -114
  48. package/packaging/public-plugin/review/refusal-observation.json +0 -41
  49. package/packaging/public-plugin/skills/diffci-remote/SKILL.md +0 -19
  50. package/packaging/public-plugin/skills/get-started/SKILL.md +0 -26
  51. package/server.json +0 -43
  52. package/site/assets/calcom-runtime-evidence.svg +0 -11
  53. package/site/llms.txt +0 -44
@@ -1,161 +0,0 @@
1
- # DiffCI Adoption Metrics
2
-
3
- Track adoption weekly after each outreach batch.
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
-
26
- ## Adoption definitions
27
-
28
- Count independently owned repositories, excluding DiffCI-owned repositories, internal dogfood runs,
29
- and benchmark-only sandbox replays. Deduplicate by repository; retain the evidence link and date.
30
-
31
- | Metric | Evidence required |
32
- | --- | --- |
33
- | First successful report | Maintainer-shared completed analysis or verification receipt. Record selective and full-fallback results separately; refusals/errors are attempts, not activation. |
34
- | Recurring installation | Maintainer-approved installation plus executions on at least two distinct days within seven days. A merged PR alone is an installation milestone. |
35
- | Known active repositories | Distinct independent repositories with an evidenced completed execution in the trailing seven days, through public workflow activity or consenting pilot reports. Report observation and verification separately. |
36
- | Four-week retention | Activated repositories with an evidenced completed execution in days 22–28 after activation, divided by activated repositories whose full 28-day window has elapsed. Report numerator and denominator. |
37
- | Measured net runtime savings | Comparable full/selected runs including analysis overhead, with checkout identity, command coverage, exit codes, cache conditions, and repeated timings recorded. Include zero/negative results; do not infer runtime from selection counts. |
38
- | External contributors | Distinct independent people with an accepted code, fixture, documentation, or reproducible benchmark contribution during the reporting period. |
39
-
40
- Maintain one weekly row per consenting pilot or publicly evidenced repository in the canonical
41
- [DiffCI Outreach Tracker](https://docs.google.com/spreadsheets/d/1TvZo9YnDawOLR75WTyPSAf95vQ5VdoBx6iBeqJF_d60/edit):
42
- repository, acquisition channel, first attempt/report dates, outcome, installation evidence,
43
- latest execution evidence/date, observation or verification, retention eligibility/result,
44
- runtime evidence, blocker, and next action. Use consented identifiers for private pilots.
45
- Unknown activity stays unknown; do not interpret unavailable evidence as confirmed inactivity.
46
-
47
- Known active repositories is a lower bound on evidenced usage, not total active repositories.
48
- Current anonymous opt-in events cannot establish unique repositories or retention.
49
-
50
- ## Opt-in CLI usage
51
-
52
- Users can run `diffci check --share-usage` or set `DIFFCI_SHARE_USAGE=1` for `check` and
53
- `observe`. `--no-send` overrides the opt-in. The CLI sends one HTTPS event after analysis to
54
- `https://app.diffci.com/v1/usage-events` with only the command (`check` or `observe`), analysis
55
- outcome (`observed`, `refused`, or `error`), and package version. It sends no repository identity,
56
- paths, commits, test names, report, token, or stable installation identifier. Delivery failure is
57
- best effort and cannot fail validation. The product Worker records `cli_usage_opt_in` in PostHog
58
- when its existing `POSTHOG_API_KEY` is configured.
59
-
60
- Count these events as **opted-in executions**, not unique users or repositories. Report the opt-in
61
- count separately from npm downloads and external merged integrations. Because there is no stable
62
- identifier, repeated runs by one user cannot be deduplicated. Network providers may still observe
63
- connection metadata such as IP address.
64
-
65
- ## Package
66
-
67
- - npm latest version: `npm view "@diffci.com/diffci" version`
68
- - npm weekly downloads: `curl "https://api.npmjs.org/downloads/point/last-week/%40diffci.com%2Fdiffci"`
69
- - MCP binary presence: `npm view "@diffci.com/diffci" bin --json`
70
-
71
- ## Repository
72
-
73
- - GitHub stars, forks, watchers, and release views.
74
- - Issues or PRs opened by users asking about `diffci check`, `diffci init`, or `diffci-mcp`.
75
- - External PRs merged that mention DiffCI agent validation.
76
-
77
- ## Site
78
-
79
- - Visits to `https://diffci.com/docs/ai-agents`.
80
- - Visits to `https://diffci.com/llms.txt`.
81
- - Clicks from the homepage agent and MCP links.
82
- - Referrers from MCP directories, awesome lists, and agent-template repositories.
83
-
84
- ## Outreach
85
-
86
- Record each submission in `docs/agent-adoption-targets.md` or a dated note. For directory listings,
87
- track conversion signals, not only application status:
88
-
89
- | Channel | Status | Primary CTA | Signal to watch | Next action |
90
- | --- | --- | --- | --- | --- |
91
- | npm | Live | `npx "@diffci.com/diffci@latest" check` | Weekly downloads, package-page visits, first-report issues | Keep README first-run copy current. |
92
- | 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. |
93
- | GitHub repository | Live | Open a first-report issue | Stars, issues, forks, discussion quality | Reply quickly and convert strong reports into pilot packets. |
94
- | Context7 | Live | Agent-safe `check` command | Agent docs referrals, copied snippets, MCP questions | Keep agent instructions concise and current. |
95
- | Official MCP Registry | Published | `diffci-mcp` setup | MCP install questions, tool-call reports | Keep package metadata and MCP examples aligned. |
96
- | Glama | Applied | MCP server install | Listing visits, MCP questions | Update copy with exact first-run command once accepted. |
97
- | PulseMCP | Applied | MCP server install | Listing visits, MCP questions | Watch for accepted listing and questions. |
98
- | Smithery | Applied | MCP server install | Listing visits, install attempts | Watch for accepted listing and questions. |
99
- | Libraries.io | Applied | npm package page | Dependency watchers, source referrals | Keep package metadata clean. |
100
- | AlternativeTo | Applied | Local `check` command | Referral visits, comparison comments | Emphasize observation-only CI. |
101
- | StackShare | Applied | Local `check` command | Stack adds, referral visits | Emphasize developer workflow fit. |
102
- | Open Hub | Applied | GitHub repo | Project watchers, referral visits | Keep project metadata accurate. |
103
- | devtools/ | Applied | Local `check` command | Referral visits, first-run issues | Keep one-command CTA visible. |
104
-
105
- Weekly loop:
106
-
107
- 1. Review first reports, recurring installations, known active repositories, mature four-week
108
- retention cohorts, measured savings, and external contributions. Record evidence and denominators.
109
- Review downloads, traffic, directory listings, and anonymous usage separately as discovery signals.
110
- 2. Label first-run reports with `first-report` and record whether they are selective, full fallback,
111
- refused, or errored.
112
- 3. Reply to every first-report issue with one next step: inspect fallback/refusal, repeat with controlled
113
- cache state, open a non-blocking Action PR, or stop because the repo is unsupported.
114
- 4. Move strong candidates into a maintainer review packet and ask for a seven-day pilot.
115
- 5. Stop adding new directories unless an existing channel produces reports or maintainer conversations.
116
-
117
- ## Baseline snapshot — 2026-09-25
118
-
119
- This snapshot separates distribution activity from verified adoption. npm and GitHub traffic counts
120
- can include DiffCI's own CI, release automation, crawlers, and repeated activity by the same person.
121
- They are supporting signals only.
122
-
123
- | Signal | Value | Interpretation |
124
- | --- | ---: | --- |
125
- | npm latest version | `0.3.10` | Current CLI and MCP binaries are publicly available. |
126
- | npm downloads, last complete registry week (`2026-09-15`–`2026-09-21`) | 1,929 | Distribution activity; not unique users or repositories. |
127
- | GitHub stars / forks / watchers | 0 / 0 / 0 | No repository-level community conversion yet. |
128
- | GitHub views, available 14-day window | 18 views / 4 unique visitors | Early discovery signal. |
129
- | GitHub clones, available 14-day window | 1,088 clones / 226 unique cloners | Likely includes automation; not adoption proof. |
130
- | External GitHub code references to the npm CLI, Action, or MCP binary | 0 found | No independently verifiable installation yet. |
131
- | Outreach proposals | 4 open / 0 maintainer replies | Follow up once, then prioritize a maintainer who supplies a first report. |
132
- | Opted-in `cli_usage_opt_in` executions | Not verified | Restore PostHog query access before the next weekly review. Count executions, not users. |
133
- | Independently owned first reports or pilots | 0 verified | Primary conversion target. |
134
-
135
- The next adoption milestone is one independently owned repository that shares a first report or
136
- completes a non-blocking observation pilot. Do not claim user or repository counts from downloads,
137
- clones, or opted-in executions.
138
-
139
- ## Agent-verification checkpoint — 2026-10-02
140
-
141
- The stable 0.3.0 release gate uses two real repository integrations rather than three. DiffCI.com and
142
- DentalPresence.in both completed the install-to-verification path and passed their remote verification
143
- workflows. This is product-integration evidence, not independent adoption: both repositories are
144
- maintainer-owned, and the independently owned pilot count remains zero.
145
-
146
- Existing outreach log:
147
-
148
- | Date | Target | Type | Link | Status | Follow-up |
149
- | --- | --- | --- | --- | --- | --- |
150
- | 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. |
151
- | 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. |
152
- | 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. |
153
- | 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. |
154
- | 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. |
155
- | 2026-09-25 | Official MCP Registry | Directory | `io.github.DiffCI/diffci` | Published | Organization namespace authorized through GitHub OIDC; the listing uses the versioned `https://diffci.com/mcp/v1` remote. |
156
- | 2026-09-22 | Glama | Directory | TBD | Planned | Submit repository URL. |
157
- | 2026-09-22 | Smithery | Directory | TBD | Blocked | Needs Smithery account/API key. |
158
-
159
- Use independently evidenced subsequent executions and retention as the primary adoption signals.
160
- Merged installation PRs are installation milestones; accepted directory listings are distribution
161
- milestones. Stars, downloads, and page views support discovery analysis and do not prove usage.
@@ -1,156 +0,0 @@
1
- # DiffCI Adoption Outreach
2
-
3
- Use this page as the canonical copy source for directory submissions, issues, and pull requests.
4
-
5
- ## One-Line Description
6
-
7
- DiffCI is open-source test-impact analysis for faster CI.
8
-
9
- ## Short Description
10
-
11
- DiffCI finds tests affected by a code change and measures full versus selected runtime so maintainers
12
- can evaluate CI savings. Run `check` locally without an account; it sends nothing by default.
13
- Existing required CI remains authoritative. Test selection counts alone do not prove runtime savings.
14
-
15
- ## Choose the entry point
16
-
17
- Use the CI description above for npm, CI communities, and maintainer outreach. For coding-agent
18
- communities and MCP directories, use this separate description:
19
-
20
- > DiffCI verifies a coding agent's current changes with affected tests or conservative full fallback,
21
- > and returns a receipt bound to the tested snapshot. Required CI remains authoritative.
22
-
23
- Use `check` for a first CI savings evaluation and `verify --changed --json` for agent verification.
24
- Only `observe` and the Marketplace Action are observation-only; do not describe the entire product
25
- that way. See the [adoption kit](agent-adoption-kit.md) for installation and MCP setup.
26
-
27
- ## Links
28
-
29
- - Website: https://diffci.com/
30
- - Agent docs: https://diffci.com/docs/ai-agents
31
- - MCP docs: https://github.com/DiffCI/DiffCI.com/blob/main/docs/mcp.md
32
- - LLM discovery: https://diffci.com/llms.txt
33
- - npm: https://www.npmjs.com/package/@diffci.com/diffci
34
- - GitHub: https://github.com/DiffCI/DiffCI.com
35
-
36
- ## Commands
37
-
38
- CLI:
39
-
40
- ```bash
41
- npx "@diffci.com/diffci@latest" check
42
- ```
43
-
44
- MCP:
45
-
46
- ```bash
47
- npx -p "@diffci.com/diffci@latest" diffci-mcp
48
- ```
49
-
50
- ## Discovery CTA
51
-
52
- Use this in directory descriptions, Marketplace copy, README snippets, and community replies:
53
-
54
- ~~~md
55
- Try DiffCI locally:
56
-
57
- ```bash
58
- npx "@diffci.com/diffci@latest" check
59
- ```
60
-
61
- DiffCI analyzes the current change, runs inferred full and selected commands when safe, writes reports
62
- outside the checkout, and sends nothing by default. Existing CI remains authoritative.
63
- ~~~
64
-
65
- If someone has already run DiffCI, ask them to open a first-report issue:
66
-
67
- ~~~md
68
- If you get a useful or confusing result, share the summary here:
69
- https://github.com/DiffCI/DiffCI.com/issues/new?template=first-diffci-report.yml
70
-
71
- Please paste only the DiffCI summary or a sanitized report excerpt. Do not paste secrets, private
72
- source, tokens, or credential-bearing CI logs.
73
- ~~~
74
-
75
- ## CI maintainer issue template
76
-
77
- Suggested title: **Evaluate affected-test runtime on this repository**
78
-
79
- ~~~md
80
- DiffCI finds tests affected by a code change and compares full versus selected runtime locally:
81
-
82
- ```bash
83
- npx "@diffci.com/diffci@latest" check
84
- ```
85
-
86
- It requires Git and Node.js 22.5+, sends nothing by default, and leaves required CI authoritative.
87
- A full fallback or setup error is useful feedback too. Would a local evaluation be useful here?
88
-
89
- Please share a summary or sanitized excerpt using:
90
- https://github.com/DiffCI/DiffCI.com/issues/new?template=first-diffci-report.yml
91
- ~~~
92
-
93
- ## Agent issue template
94
-
95
- Title:
96
-
97
- ```text
98
- Add DiffCI as an optional AI-agent CI validation tool
99
- ```
100
-
101
- Body:
102
-
103
- ```md
104
- DiffCI now ships an npm CLI and stdio MCP server for AI coding agents:
105
-
106
- - CLI: `npx "@diffci.com/diffci@latest" check`
107
- - MCP: `npx -p "@diffci.com/diffci@latest" diffci-mcp`
108
-
109
- For current working-tree verification, run `npx "@diffci.com/diffci@latest" verify --changed --json`.
110
- It executes selected verification or conservative full fallback and returns a snapshot-bound receipt.
111
- Use `check` separately to compare runtimes. Required CI remains authoritative.
112
-
113
- Docs:
114
-
115
- - https://diffci.com/docs/ai-agents
116
- - https://github.com/DiffCI/DiffCI.com/blob/main/docs/mcp.md
117
-
118
- Would you be open to adding DiffCI as an optional validation command/example for AI coding agents?
119
- ```
120
-
121
- ## First-Run Follow-Up
122
-
123
- When someone shares a first report, reply with exactly one next step:
124
-
125
- | Report result | Reply with |
126
- | --- | --- |
127
- | Selective with a runnable command | Ask whether they want a seven-day non-blocking Action pilot. |
128
- | Full fallback | Explain the fallback reason and ask for a smaller source-changing revision if useful. |
129
- | Refused | Treat it as unsupported or an install/setup issue; do not sell it as an opportunity. |
130
- | Error | Ask for the sanitized error and open a bug if it is reproducible. |
131
- | Paired runtime result | Check command coverage, cache state, exit codes, and checkout provenance before discussing savings. |
132
-
133
- After a useful local evaluation, offer `init --install --workflow` for a pinned installation and a
134
- separate non-blocking observation pilot. Review the generated changes with the maintainer. Observation
135
- does not measure runtime savings; use repeated paired comparisons for that evidence. Record a merged
136
- installation as a milestone, then verify subsequent executions before counting recurring adoption.
137
-
138
- ## PR Snippet
139
-
140
- ~~~md
141
- ### Optional AI-agent validation
142
-
143
- Before marking changes PR-ready, agents can run:
144
-
145
- ```bash
146
- npx "@diffci.com/diffci@latest" check
147
- ```
148
-
149
- Agents with MCP support can configure:
150
-
151
- ```bash
152
- npx -p "@diffci.com/diffci@latest" diffci-mcp
153
- ```
154
-
155
- DiffCI is a validation lens: it explains affected tests and keeps required CI authoritative.
156
- ~~~
@@ -1,97 +0,0 @@
1
- # DiffCI adoption kit
2
-
3
- Copy only the integration your repository needs. DiffCI does not replace required CI.
4
-
5
- ## Agent instruction
6
-
7
- Add this to `AGENTS.md` or the equivalent agent instruction file:
8
-
9
- > Before calling a change PR-ready, run `npx "@diffci.com/diffci@latest" verify --changed --json`
10
- > from the repository root. Continue only when the receipt says `safe_to_continue: true`. Keep the
11
- > repository's required CI authoritative. If DiffCI refuses, errors, fails, or cannot prove a safe
12
- > selection, run the normal tests and do not treat the change as verified.
13
-
14
- `verify --changed` may execute the repository's selected or full test command, which may write
15
- generated files. DiffCI fails if the content-addressed snapshot changes while verification runs. For
16
- paired runtime measurement use `check`; for analysis without tests use `observe --no-send`.
17
-
18
- ## Blocking GitHub verification
19
-
20
- Generate the workflow instead of copying a version-sensitive package command:
21
-
22
- ```bash
23
- npx "@diffci.com/diffci@latest" init --verification-workflow
24
- ```
25
-
26
- The generated **DiffCI verification** job verifies the pull-request or push range, has no
27
- `continue-on-error`, and uploads its receipt. After a successful pilot, make that job a required
28
- branch-protection check.
29
-
30
- ## GitHub Action
31
-
32
- Save this as `.github/workflows/diffci.yml` to observe changes in a separate, non-blocking job:
33
-
34
- ```yaml
35
- name: DiffCI observation
36
- on: [push, pull_request]
37
- permissions:
38
- contents: read
39
- jobs:
40
- diffci:
41
- runs-on: ubuntu-24.04
42
- continue-on-error: true
43
- steps:
44
- - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # immutable checkout pin
45
- with:
46
- fetch-depth: 0
47
- - uses: DiffCI/DiffCI.com@b35f55c1b6ba9c092f3ad623efd8baa0422c450a # v0.3.10
48
- ```
49
-
50
- Run `npx "@diffci.com/diffci@latest" verify-workflow` before starting a pilot. The Action uploads a
51
- GitHub artifact by default; it sends nothing to DiffCI Cloud without an explicit endpoint and token.
52
-
53
- ## MCP client
54
-
55
- For a client that accepts stdio MCP JSON, set `cwd` to the repository checkout:
56
-
57
- ```json
58
- {
59
- "mcpServers": {
60
- "diffci": {
61
- "command": "npx",
62
- "args": ["-p", "@diffci.com/diffci@latest", "diffci-mcp"],
63
- "cwd": "/path/to/repository"
64
- }
65
- }
66
- }
67
- ```
68
-
69
- See [MCP setup](mcp.md) for Windows paths and the available tools.
70
-
71
- ## Small adoption PR
72
-
73
- Suggested title: **Add optional DiffCI validation for coding agents**
74
-
75
- Suggested description:
76
-
77
- > This adds a persistent DiffCI agent instruction and optionally a blocking verification job. DiffCI
78
- > runs the minimum test command it can justify, falls back to full verification on uncertainty, and
79
- > emits a machine-readable receipt. Required CI continues to run as before.
80
-
81
- ## Where to point maintainers
82
-
83
- - [npm package](https://www.npmjs.com/package/@diffci.com/diffci)
84
- - [GitHub Marketplace Action](https://github.com/marketplace/actions/diffci-observer)
85
- - [Agent guide](https://diffci.com/docs/ai-agents)
86
- - [Context7 CLI documentation](https://context7.com/diffci/diffci.com)
87
- - [Share a first DiffCI report](https://github.com/DiffCI/DiffCI.com/issues/new?template=first-diffci-report.yml)
88
-
89
- If a maintainer is evaluating DiffCI for the first time, ask for one local run before proposing a
90
- workflow change:
91
-
92
- ```bash
93
- npx "@diffci.com/diffci@latest" verify --changed --json
94
- ```
95
-
96
- Then use the first-report issue template to capture the result, fallback/refusal reasons, CI shape,
97
- and whether a seven-day non-blocking observation pilot would be useful.
@@ -1,62 +0,0 @@
1
- # Agent Adoption Targets
2
-
3
- Generated 2026-09-21 from GitHub search for repositories already centered on `AGENTS.md`,
4
- `CLAUDE.md`, Cursor/Codex/Claude Code workflows, or agent instruction templates.
5
-
6
- Do not open drive-by PRs blindly. Review each repository's contribution policy first and use the
7
- small optional-instruction PR from [`agent-adoption-kit.md`](agent-adoption-kit.md).
8
-
9
- ## Best First Targets
10
-
11
- | Repository | Why it fits |
12
- | --- | --- |
13
- | [`agentsmd/agents.md`](https://github.com/agentsmd/agents.md) | Defines the `AGENTS.md` convention. Proposal opened: [#245](https://github.com/agentsmd/agents.md/issues/245). |
14
- | [`FerroxLabs/agents-md`](https://github.com/FerroxLabs/agents-md) | Explicitly targets Claude Code, Codex, Gemini, Cursor, and verification loops. Proposal opened: [#2](https://github.com/FerroxLabs/agents-md/issues/2). |
15
- | [`ciembor/agent-rules-books`](https://github.com/ciembor/agent-rules-books) | Curated rules for AI coding agents; proposal opened: [#8](https://github.com/ciembor/agent-rules-books/issues/8). |
16
- | [`jbarbier/CLAUDE.md`](https://github.com/jbarbier/CLAUDE.md) | Drop-in Claude/Codex/Cursor instruction file; proposal opened: [#12](https://github.com/jbarbier/CLAUDE.md/issues/12). |
17
- | [`agent-sh/agnix`](https://github.com/agent-sh/agnix) | Linter/LSP for agent instruction files; possible future integration target. |
18
- | [`jsynowiec/node-typescript-boilerplate`](https://github.com/jsynowiec/node-typescript-boilerplate) | Real Node/TypeScript boilerplate with GitHub Actions and `AGENTS.md`, useful as a practical adoption example. |
19
-
20
- ## Secondary Targets
21
-
22
- | Repository | Why it fits |
23
- | --- | --- |
24
- | [`BayramAnnakov/claude-reflect`](https://github.com/BayramAnnakov/claude-reflect) | Syncs learning into `CLAUDE.md` and `AGENTS.md`; validation-command guidance may fit. |
25
- | [`josix/awesome-claude-md`](https://github.com/josix/awesome-claude-md) | Curated collection; submit DiffCI as a validation-pattern example. |
26
- | [`TheDecipherist/claude-code-mastery`](https://github.com/TheDecipherist/claude-code-mastery) | Guide-style repo; useful place for the agent-safe validation command. |
27
- | [`microsoft/skills`](https://github.com/microsoft/skills) | Agent skills and MCP ecosystem. Higher bar; review contribution rules before proposing. |
28
- | [`mxyhi/ok-skills`](https://github.com/mxyhi/ok-skills) | Curated skills/playbooks for Codex, Claude Code, Cursor, and other tools. |
29
-
30
- ## MCP Directory Targets
31
-
32
- | Directory | Submission path | Status |
33
- | --- | --- | --- |
34
- | [Official MCP Registry](https://github.com/modelcontextprotocol/registry) | Publish with GitHub OIDC as `io.github.DiffCI/diffci`. | Published under the authorized organization namespace with the `https://diffci.com/mcp/v1` remote. |
35
- | [Glama](https://glama.ai/) | Submit the GitHub repository URL and short description; optional `glama.json` metadata can improve indexing. | Ready to submit. |
36
- | [Smithery](https://smithery.ai/) | Publish through Smithery's server release flow/API. | Needs Smithery account/API key. |
37
- | [PulseMCP](https://www.pulsemcp.com/) | Submit/list the MCP server if their current listing flow accepts third-party servers. | Review current submission rules first. |
38
- | [MCP Central](https://mcpcentral.io/) | Follow the interactive server submission flow. | Ready to submit. |
39
-
40
- ## PR Order
41
-
42
- 1. Start with documentation/example repos, not large application repos.
43
- 2. Add only an optional validation instruction, never a required check.
44
- 3. Link to `https://diffci.com/docs/ai-agents` and `https://diffci.com/llms.txt`.
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`.
47
-
48
- ## Minimal Patch Shape
49
-
50
- Add this to the repository's agent instruction file:
51
-
52
- ```md
53
- Before marking changes PR-ready, run:
54
-
55
- ```bash
56
- npx "@diffci.com/diffci@latest" check
57
- ```
58
-
59
- DiffCI check analyzes the change and runs inferred full and selected test commands to measure time.
60
- It writes reports outside the checkout and sends nothing. Test commands may write generated files.
61
- Existing required CI remains authoritative; use `observe --no-send` for analysis only.
62
- ```
@@ -1,145 +0,0 @@
1
- # DiffCI coding-agent plugin
2
-
3
- DiffCI ships two agent packages with deliberately different trust boundaries:
4
-
5
- - `packaging/agent-plugin` is the local Codex and Claude Code plugin. It uses
6
- the local stdio MCP server to inspect a selected checkout and, when asked,
7
- run repository tests.
8
- - `packaging/public-plugin` is the portable public-directory package. It
9
- connects only to `https://diffci.com/mcp/v1`, which plans commands,
10
- interprets submitted reports, and checks submitted workflow text. It cannot
11
- read a local checkout or run tests.
12
-
13
- The local package uses the existing CLI and core engine. Node 22.5+ and Git are
14
- required for checkout-aware verification.
15
-
16
- ## Install after release
17
-
18
- Install from the DiffCI repository marketplace for the most direct native
19
- experience. The marketplace source includes the portable package as well as
20
- the Codex and Claude Code compatibility adapters.
21
-
22
- Codex:
23
-
24
- ```bash
25
- codex plugin marketplace add DiffCI/DiffCI.com
26
- codex plugin add diffci@diffci-local
27
- ```
28
-
29
- For a reviewed release instead of the default branch, use a tag source such as
30
- `DiffCI/DiffCI.com@v<release-version>`. Do not sparse-checkout only `.agents/plugins`:
31
- the marketplace entry also needs `packaging/agent-plugin`.
32
-
33
- Claude Code:
34
-
35
- ```bash
36
- claude plugin marketplace add DiffCI/DiffCI.com
37
- claude plugin install diffci@diffci-marketplace
38
- ```
39
-
40
- The Git marketplace is available once the matching repository release and npm
41
- package are published. To use the npm package as the marketplace source instead:
42
-
43
- ```bash
44
- npm install --save-dev @diffci.com/diffci
45
- ```
46
-
47
- Then register the installed package with the host you use:
48
-
49
- ```bash
50
- claude plugin marketplace add ./node_modules/@diffci.com/diffci
51
- claude plugin install diffci@diffci-marketplace
52
- ```
53
-
54
- Codex:
55
-
56
- ```bash
57
- codex plugin marketplace add ./node_modules/@diffci.com/diffci
58
- codex plugin add diffci@diffci-local
59
- ```
60
-
61
- Both integrations use the shared skill automatically when applicable, and it can
62
- also be invoked explicitly (`/diffci:diffci-verify` in Claude Code).
63
- These commands require an npm release containing this implementation; use the
64
- local development steps below before release.
65
-
66
- ## Public Codex and ChatGPT directory
67
-
68
- The portable package in `packaging/public-plugin` is prepared for OpenAI's
69
- public plugin submission flow. It uses the hosted, read-only MCP endpoint and
70
- its listing text names that boundary explicitly. It cannot replace the local
71
- plugin for checkout-aware verification.
72
-
73
- Package that directory as a ZIP after releasing the matching npm/site version,
74
- then follow its [`SUBMISSION.md`](../packaging/public-plugin/SUBMISSION.md).
75
- The portal still requires a verified publisher, domain verification, a demo
76
- recording, connection scanning, and human review before the plugin will appear
77
- in the shared Codex/ChatGPT search directory.
78
-
79
- ## Claude Code marketplace and directory
80
-
81
- The root [`.claude-plugin/marketplace.json`](../.claude-plugin/marketplace.json)
82
- makes the local plugin installable from DiffCI's own GitHub repository or its
83
- published npm package. The plugin manifest also includes the presentation
84
- metadata needed for Anthropic's directory. With Claude Code 2.1.281 or later,
85
- run the following validation before sharing an update:
86
-
87
- ```bash
88
- claude plugin validate --strict ./packaging/agent-plugin
89
- claude plugin validate --strict .
90
- ```
91
-
92
- The self-hosted marketplace does not make DiffCI appear in Anthropic's public
93
- search. Public Claude discovery still requires submission through Anthropic's
94
- directory flow and its review of the exact npm launcher.
95
-
96
- ## Local development
97
-
98
- Build the checkout with `npm run build:client`. For testing unreleased tools, copy
99
- the plugin directory outside the repository and change the copy's `.mcp.json`
100
- server to `command: "node"` with `args` containing the absolute path to
101
- `dist-client/src/client/mcp.js` in this checkout. The checked-in npm configuration
102
- pins the package version; new tools become available through npm after release.
103
-
104
- Claude Code can load the copy with `claude --plugin-dir /absolute/path/to/plugin`.
105
- For Codex, this checkout includes a repo marketplace at
106
- `.agents/plugins/marketplace.json`. Register the checkout with
107
- `codex plugin marketplace add /absolute/path/to/DiffCI.com`, then install
108
- `diffci@diffci-local` with `codex plugin add diffci@diffci-local` or use the
109
- Plugins UI. The marketplace entry does not enable the plugin automatically.
110
- For an unreleased build, use the copied plugin in a separate local marketplace
111
- with its `source.path` pointing to that copy. Otherwise register the MCP server directly
112
- and copy `skills/diffci-verify` into your personal Codex skills directory.
113
- Always pass the edited repository's absolute path as the tool's `repo` argument;
114
- the server process may start outside that repository.
115
-
116
- Installing an npm package alone does not install an agent plugin. Install or load
117
- the plugin explicitly to enable skill discovery. This first version uses skill
118
- discovery and explicit invocation; it does not impose automatic lifecycle hooks.
119
- The package is not publicly listed until the separate OpenAI and Anthropic
120
- directory submissions are approved.
121
-
122
- ## Tools
123
-
124
- `diffci_changed_files` returns `diffci.agent-changes.v1` with current paths and
125
- tree identity, without building a dependency graph.
126
- `diffci_select_tests` and `diffci_explain_selection`
127
- return `diffci.agent-selection.v1`: current changed paths, tree identity,
128
- selected test files, executable command, and fallback reasons. They do not run
129
- tests. A full fallback's test count describes the discovered universe; its
130
- `selected_tests` list is empty because no narrower selection is claimed.
131
-
132
- `diffci_run_affected_tests` delegates to `verify --changed --json`, returning
133
- `diffci.verification.v1`. It reanalyzes rather than trusting a previous plan and
134
- checks the snapshot before and after execution. Unknown analysis blocks;
135
- uncertain selection broadens to the repository's full command when available.
136
- Required CI checks remain authoritative. All four tools operate on uncommitted
137
- changes relative to HEAD. Use `diffci_verify` for committed ranges.
138
-
139
- The server accepts standard newline-delimited MCP stdio messages and retains
140
- legacy Content-Length framing for existing clients. No telemetry is sent by these
141
- four tools. Repository-defined test commands may write generated files or use the
142
- network as they normally would.
143
-
144
- Manifest references: [Codex packaging](https://developers.openai.com/plugins/build/plugins)
145
- and [Claude Code plugins](https://code.claude.com/docs/en/plugins-reference).