@diffci.com/diffci 0.3.9 → 0.3.11
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/LICENSE +7 -5
- package/README.md +18 -418
- package/dist-client/src/client/workflow-guard.js +1 -1
- package/node_modules/@diffci.com/core/README.md +33 -0
- package/package.json +17 -129
- package/.agents/plugins/marketplace.json +0 -12
- package/COMMERCIAL.md +0 -35
- package/SECURITY.md +0 -61
- package/SUPPORT.md +0 -47
- package/action.yml +0 -155
- package/docs/adoption-metrics.md +0 -161
- package/docs/adoption-outreach.md +0 -156
- package/docs/agent-adoption-kit.md +0 -97
- package/docs/agent-adoption-targets.md +0 -62
- package/docs/agent-plugin.md +0 -80
- package/docs/ai-agents.md +0 -123
- package/docs/claude-code.md +0 -18
- package/docs/codex.md +0 -18
- package/docs/copilot.md +0 -18
- package/docs/cursor.md +0 -19
- package/docs/distribution.md +0 -153
- package/docs/grok.md +0 -18
- package/docs/language-support.md +0 -118
- package/docs/mcp.md +0 -104
- package/docs/npm-adoption.md +0 -165
- package/glama.json +0 -12
- package/llms.txt +0 -41
- package/packaging/agent-plugin/.claude-plugin/plugin.json +0 -6
- package/packaging/agent-plugin/.codex-plugin/plugin.json +0 -8
- package/packaging/agent-plugin/.mcp.json +0 -13
- package/packaging/agent-plugin/skills/diffci-verify/SKILL.md +0 -35
- package/server.json +0 -43
- package/site/assets/calcom-runtime-evidence.svg +0 -11
- package/site/llms.txt +0 -44
|
@@ -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.9
|
|
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
|
-
```
|
package/docs/agent-plugin.md
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
# DiffCI coding-agent plugin
|
|
2
|
-
|
|
3
|
-
One package in `packaging/agent-plugin` supports Claude Code and Codex through
|
|
4
|
-
their respective manifests, a shared skill, and the same local stdio MCP server.
|
|
5
|
-
It uses the existing CLI and core engine. No additional engine or cloud service
|
|
6
|
-
is required. Node 22.5+ and Git are required.
|
|
7
|
-
|
|
8
|
-
## Install after release
|
|
9
|
-
|
|
10
|
-
```bash
|
|
11
|
-
npm install --save-dev @diffci.com/diffci
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
Claude Code:
|
|
15
|
-
|
|
16
|
-
```bash
|
|
17
|
-
claude --plugin-dir ./node_modules/@diffci.com/diffci/packaging/agent-plugin
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
Codex:
|
|
21
|
-
|
|
22
|
-
```bash
|
|
23
|
-
codex plugin marketplace add ./node_modules/@diffci.com/diffci
|
|
24
|
-
codex plugin add diffci@diffci-local
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
Both integrations use the shared skill automatically when applicable, and it can
|
|
28
|
-
also be invoked explicitly (`/diffci:diffci-verify` in Claude Code).
|
|
29
|
-
These commands require an npm release containing this implementation; use the
|
|
30
|
-
local development steps below before release.
|
|
31
|
-
|
|
32
|
-
## Local development
|
|
33
|
-
|
|
34
|
-
Build the checkout with `npm run build:client`. For testing unreleased tools, copy
|
|
35
|
-
the plugin directory outside the repository and change the copy's `.mcp.json`
|
|
36
|
-
server to `command: "node"` with `args` containing the absolute path to
|
|
37
|
-
`dist-client/src/client/mcp.js` in this checkout. The checked-in npm configuration
|
|
38
|
-
pins the package version; new tools become available through npm after release.
|
|
39
|
-
|
|
40
|
-
Claude Code can load the copy with `claude --plugin-dir /absolute/path/to/plugin`.
|
|
41
|
-
For Codex, this checkout includes a repo marketplace at
|
|
42
|
-
`.agents/plugins/marketplace.json`. Register the checkout with
|
|
43
|
-
`codex plugin marketplace add /absolute/path/to/DiffCI.com`, then install
|
|
44
|
-
`diffci@diffci-local` with `codex plugin add diffci@diffci-local` or use the
|
|
45
|
-
Plugins UI. The marketplace entry does not enable the plugin automatically.
|
|
46
|
-
For an unreleased build, use the copied plugin in a separate local marketplace
|
|
47
|
-
with its `source.path` pointing to that copy. Otherwise register the MCP server directly
|
|
48
|
-
and copy `skills/diffci-verify` into your personal Codex skills directory.
|
|
49
|
-
Always pass the edited repository's absolute path as the tool's `repo` argument;
|
|
50
|
-
the server process may start outside that repository.
|
|
51
|
-
|
|
52
|
-
Installing an npm package alone does not install an agent plugin. Install or load
|
|
53
|
-
the plugin explicitly to enable skill discovery. This first version uses skill
|
|
54
|
-
discovery and explicit invocation; it does not impose automatic lifecycle hooks.
|
|
55
|
-
The package has not been submitted to either public plugin directory.
|
|
56
|
-
|
|
57
|
-
## Tools
|
|
58
|
-
|
|
59
|
-
`diffci_changed_files` returns `diffci.agent-changes.v1` with current paths and
|
|
60
|
-
tree identity, without building a dependency graph.
|
|
61
|
-
`diffci_select_tests` and `diffci_explain_selection`
|
|
62
|
-
return `diffci.agent-selection.v1`: current changed paths, tree identity,
|
|
63
|
-
selected test files, executable command, and fallback reasons. They do not run
|
|
64
|
-
tests. A full fallback's test count describes the discovered universe; its
|
|
65
|
-
`selected_tests` list is empty because no narrower selection is claimed.
|
|
66
|
-
|
|
67
|
-
`diffci_run_affected_tests` delegates to `verify --changed --json`, returning
|
|
68
|
-
`diffci.verification.v1`. It reanalyzes rather than trusting a previous plan and
|
|
69
|
-
checks the snapshot before and after execution. Unknown analysis blocks;
|
|
70
|
-
uncertain selection broadens to the repository's full command when available.
|
|
71
|
-
Required CI checks remain authoritative. All four tools operate on uncommitted
|
|
72
|
-
changes relative to HEAD. Use `diffci_verify` for committed ranges.
|
|
73
|
-
|
|
74
|
-
The server accepts standard newline-delimited MCP stdio messages and retains
|
|
75
|
-
legacy Content-Length framing for existing clients. No telemetry is sent by these
|
|
76
|
-
four tools. Repository-defined test commands may write generated files or use the
|
|
77
|
-
network as they normally would.
|
|
78
|
-
|
|
79
|
-
Manifest references: [Codex packaging](https://developers.openai.com/plugins/build/plugins)
|
|
80
|
-
and [Claude Code plugins](https://code.claude.com/docs/en/plugins-reference).
|
package/docs/ai-agents.md
DELETED
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
# DiffCI for AI Coding Agents
|
|
2
|
-
|
|
3
|
-
DiffCI is a fail-closed verification layer agents run before proposing, committing, or opening a pull
|
|
4
|
-
request. It chooses the narrowest verification it can justify and broadens to the full inferred test
|
|
5
|
-
command when the evidence is incomplete.
|
|
6
|
-
|
|
7
|
-
The default command is:
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
npx "@diffci.com/diffci@latest" verify --changed --json
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
`verify --changed` snapshots staged, unstaged, and non-ignored untracked content, runs the selected
|
|
14
|
-
command or a conservative full fallback, and fails unless that exact snapshot passes and remains
|
|
15
|
-
unchanged. Its JSON receipt is designed for agents. Use `check` for paired full-versus-selected
|
|
16
|
-
measurement and `observe --no-send` for analysis without test execution.
|
|
17
|
-
|
|
18
|
-
## Install Agent Instructions
|
|
19
|
-
|
|
20
|
-
From a repository root:
|
|
21
|
-
|
|
22
|
-
```bash
|
|
23
|
-
npx "@diffci.com/diffci@latest" init
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
This writes:
|
|
27
|
-
|
|
28
|
-
- `AGENTS.md`
|
|
29
|
-
- `CLAUDE.md`
|
|
30
|
-
- `.cursor/rules/diffci.mdc`
|
|
31
|
-
- `.github/copilot-instructions.md`
|
|
32
|
-
- `diffci.config.json`
|
|
33
|
-
|
|
34
|
-
Existing instruction files are extended with a managed DiffCI rule when possible; unrelated content
|
|
35
|
-
is preserved. Pass `--force` only when you intentionally want to replace DiffCI-managed output.
|
|
36
|
-
|
|
37
|
-
To also add a non-blocking GitHub Actions observer job:
|
|
38
|
-
|
|
39
|
-
```bash
|
|
40
|
-
npx "@diffci.com/diffci@latest" init --workflow
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
Then verify the workflow:
|
|
44
|
-
|
|
45
|
-
```bash
|
|
46
|
-
npx "@diffci.com/diffci@latest" verify-workflow
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
To add a blocking, commit-range verification check instead:
|
|
50
|
-
|
|
51
|
-
```bash
|
|
52
|
-
npx "@diffci.com/diffci@latest" init --verification-workflow
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
The generated check uploads a receipt and intentionally does not use `continue-on-error`. Make its
|
|
56
|
-
**DiffCI verification** job required only after it has passed in the repository's normal CI context.
|
|
57
|
-
|
|
58
|
-
## Copy-Paste Adoption
|
|
59
|
-
|
|
60
|
-
For a maintainer-facing snippet, PR template, and GitHub search queries for repositories that already
|
|
61
|
-
use agent instruction files, see [`agent-adoption-kit.md`](agent-adoption-kit.md).
|
|
62
|
-
For a first-pass list of repositories to review before opening PRs, see
|
|
63
|
-
[`agent-adoption-targets.md`](agent-adoption-targets.md).
|
|
64
|
-
|
|
65
|
-
Examples:
|
|
66
|
-
|
|
67
|
-
- [`examples/agent-node`](../examples/agent-node)
|
|
68
|
-
- [`examples/agent-python`](../examples/agent-python)
|
|
69
|
-
- [`examples/agent-monorepo`](../examples/agent-monorepo)
|
|
70
|
-
|
|
71
|
-
## MCP
|
|
72
|
-
|
|
73
|
-
Agents that support remote MCP can connect to the stateless, read-only guidance endpoint:
|
|
74
|
-
|
|
75
|
-
```text
|
|
76
|
-
https://diffci.com/mcp
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
To inspect the current checkout or run tests, use the native stdio tool server:
|
|
80
|
-
|
|
81
|
-
```bash
|
|
82
|
-
npx -p "@diffci.com/diffci@latest" diffci-mcp
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
See [`mcp.md`](mcp.md).
|
|
86
|
-
|
|
87
|
-
Minimal MCP config:
|
|
88
|
-
|
|
89
|
-
```json
|
|
90
|
-
{
|
|
91
|
-
"mcpServers": {
|
|
92
|
-
"diffci": {
|
|
93
|
-
"command": "npx",
|
|
94
|
-
"args": ["-p", "@diffci.com/diffci@latest", "diffci-mcp"]
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
```
|
|
99
|
-
|
|
100
|
-
## Agent Policy
|
|
101
|
-
|
|
102
|
-
Agents should:
|
|
103
|
-
|
|
104
|
-
- run `diffci verify --changed --json` before PR-ready answers for local edits;
|
|
105
|
-
- run `diffci verify --json` for a clean CI commit range;
|
|
106
|
-
- call `diffci_verify_changed` locally or `diffci_verify` in CI when connected through MCP;
|
|
107
|
-
- require `safe_to_continue: true` and read the receipt's verification, selected tests, fallback
|
|
108
|
-
reasons, command result, and snapshot identities;
|
|
109
|
-
- use DiffCI output to choose focused follow-up validation;
|
|
110
|
-
- keep the repository's required CI commands authoritative.
|
|
111
|
-
|
|
112
|
-
Agents should not:
|
|
113
|
-
|
|
114
|
-
- skip required CI because DiffCI selected fewer tests;
|
|
115
|
-
- treat `REFUSED` or `ERROR` as a passing validation;
|
|
116
|
-
- continue after a receipt says `safe_to_continue: false`;
|
|
117
|
-
- configure hosted report sending unless the user explicitly supplies an endpoint and token.
|
|
118
|
-
|
|
119
|
-
## Open Core Boundary
|
|
120
|
-
|
|
121
|
-
The agent-facing layer belongs in the open-source core: CLI, local reports, JSON output, instruction
|
|
122
|
-
files, and the non-blocking GitHub Action. Hosted history, organization dashboards, PR bots, policies,
|
|
123
|
-
team analytics, managed runners, and support belong to commercial DiffCI.
|
package/docs/claude-code.md
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# DiffCI for Claude Code
|
|
2
|
-
|
|
3
|
-
Install repository instructions:
|
|
4
|
-
|
|
5
|
-
```bash
|
|
6
|
-
npx "@diffci.com/diffci@latest" init
|
|
7
|
-
```
|
|
8
|
-
|
|
9
|
-
Default validation command:
|
|
10
|
-
|
|
11
|
-
```bash
|
|
12
|
-
npx "@diffci.com/diffci@latest" verify --changed --json
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
Use DiffCI before PR-ready answers. Continue only when `safe_to_continue` is true. Verification covers
|
|
16
|
-
the current staged, unstaged, and untracked snapshot, uses full fallback when uncertain, and sends
|
|
17
|
-
nothing by default. If tests change files, review them and rerun. Use `observe --no-send` for analysis only.
|
|
18
|
-
Keep the repository's required checks authoritative.
|
package/docs/codex.md
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# DiffCI for Codex
|
|
2
|
-
|
|
3
|
-
Install repository instructions:
|
|
4
|
-
|
|
5
|
-
```bash
|
|
6
|
-
npx "@diffci.com/diffci@latest" init
|
|
7
|
-
```
|
|
8
|
-
|
|
9
|
-
Default validation command:
|
|
10
|
-
|
|
11
|
-
```bash
|
|
12
|
-
npx "@diffci.com/diffci@latest" verify --changed --json
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
Use DiffCI before PR-ready answers. Continue only when `safe_to_continue` is true. Verification covers
|
|
16
|
-
the current staged, unstaged, and untracked snapshot, uses full fallback when uncertain, and sends
|
|
17
|
-
nothing by default. If tests change files, review them and rerun. Use `observe --no-send` for analysis only.
|
|
18
|
-
Keep the repository's required checks authoritative.
|
package/docs/copilot.md
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# DiffCI for GitHub Copilot
|
|
2
|
-
|
|
3
|
-
Install repository instructions:
|
|
4
|
-
|
|
5
|
-
```bash
|
|
6
|
-
npx "@diffci.com/diffci@latest" init
|
|
7
|
-
```
|
|
8
|
-
|
|
9
|
-
Default validation command:
|
|
10
|
-
|
|
11
|
-
```bash
|
|
12
|
-
npx "@diffci.com/diffci@latest" check
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
Use DiffCI before PR-ready answers. `init` writes `.github/copilot-instructions.md`; `check`
|
|
16
|
-
analyzes the change and runs inferred full and selected test commands to measure time. It sends
|
|
17
|
-
nothing by default. Test commands may write generated files; use `observe --no-send` for analysis
|
|
18
|
-
only. Keep the repository's required checks authoritative.
|
package/docs/cursor.md
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# DiffCI for Cursor
|
|
2
|
-
|
|
3
|
-
Install repository instructions:
|
|
4
|
-
|
|
5
|
-
```bash
|
|
6
|
-
npx "@diffci.com/diffci@latest" init
|
|
7
|
-
```
|
|
8
|
-
|
|
9
|
-
Default validation command:
|
|
10
|
-
|
|
11
|
-
```bash
|
|
12
|
-
npx "@diffci.com/diffci@latest" verify --changed --json
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
Use DiffCI before PR-ready changes. `init` writes `.cursor/rules/diffci.mdc`; verification covers the
|
|
16
|
-
current staged, unstaged, and untracked snapshot and uses full fallback when uncertain. Continue only
|
|
17
|
-
when `safe_to_continue` is true. It sends nothing by default. If tests change files, review them and
|
|
18
|
-
rerun; use `observe --no-send` for analysis only. Keep
|
|
19
|
-
the repository's required checks authoritative.
|