@diffci.com/diffci 0.2.8 → 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/LICENSE +1 -1
- package/README.md +306 -306
- package/action.yml +154 -154
- package/dist-client/src/client/cli.js +91 -91
- package/dist-client/src/client/mcp.js +0 -0
- package/docs/adoption-metrics.md +34 -34
- package/docs/adoption-outreach.md +67 -67
- package/docs/agent-adoption-kit.md +66 -66
- package/docs/agent-adoption-targets.md +61 -61
- package/docs/ai-agents.md +102 -102
- package/docs/distribution.md +144 -131
- package/docs/language-support.md +118 -118
- package/docs/mcp.md +67 -67
- package/docs/npm-adoption.md +134 -134
- package/llms.txt +39 -39
- package/node_modules/@babel/parser/CHANGELOG.md +1073 -0
- package/node_modules/@babel/parser/bin/babel-parser.js +0 -0
- package/node_modules/estree-walker/CHANGELOG.md +92 -0
- package/node_modules/nanoid/bin/nanoid.cjs +0 -0
- package/node_modules/typescript/bin/tsc +0 -0
- package/node_modules/typescript/bin/tsserver +0 -0
- package/node_modules/yaml/bin.mjs +0 -0
- package/package.json +154 -153
- package/server.json +28 -28
|
@@ -1,26 +1,26 @@
|
|
|
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 an observation-only CI/CD validation tool and MCP server for AI coding agents.
|
|
8
|
-
|
|
9
|
-
## Short Description
|
|
10
|
-
|
|
11
|
-
DiffCI gives coding agents a safe validation lens before they call work PR-ready. It analyzes the
|
|
12
|
-
current checkout, explains affected tests, can run inferred local validation through `diffci check`,
|
|
13
|
-
and leaves required CI authoritative.
|
|
14
|
-
|
|
15
|
-
## Links
|
|
16
|
-
|
|
17
|
-
- Website: https://diffci.com/
|
|
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 an observation-only CI/CD validation tool and MCP server for AI coding agents.
|
|
8
|
+
|
|
9
|
+
## Short Description
|
|
10
|
+
|
|
11
|
+
DiffCI gives coding agents a safe validation lens before they call work PR-ready. It analyzes the
|
|
12
|
+
current checkout, explains affected tests, can run inferred local validation through `diffci check`,
|
|
13
|
+
and leaves required CI authoritative.
|
|
14
|
+
|
|
15
|
+
## Links
|
|
16
|
+
|
|
17
|
+
- Website: https://diffci.com/
|
|
18
18
|
- Agent docs: https://diffci.com/docs/ai-agents
|
|
19
|
-
- MCP docs: https://github.com/DiffCI/DiffCI.com/blob/main/docs/mcp.md
|
|
20
|
-
- LLM discovery: https://diffci.com/llms.txt
|
|
21
|
-
- npm: https://www.npmjs.com/package/@diffci.com/diffci
|
|
22
|
-
- GitHub: https://github.com/DiffCI/DiffCI.com
|
|
23
|
-
|
|
19
|
+
- MCP docs: https://github.com/DiffCI/DiffCI.com/blob/main/docs/mcp.md
|
|
20
|
+
- LLM discovery: https://diffci.com/llms.txt
|
|
21
|
+
- npm: https://www.npmjs.com/package/@diffci.com/diffci
|
|
22
|
+
- GitHub: https://github.com/DiffCI/DiffCI.com
|
|
23
|
+
|
|
24
24
|
## Commands
|
|
25
25
|
|
|
26
26
|
CLI:
|
|
@@ -28,10 +28,10 @@ CLI:
|
|
|
28
28
|
```bash
|
|
29
29
|
npx "@diffci.com/diffci@latest" check
|
|
30
30
|
```
|
|
31
|
-
|
|
32
|
-
MCP:
|
|
33
|
-
|
|
34
|
-
```bash
|
|
31
|
+
|
|
32
|
+
MCP:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
35
|
npx -p "@diffci.com/diffci@latest" diffci-mcp
|
|
36
36
|
```
|
|
37
37
|
|
|
@@ -61,30 +61,30 @@ source, tokens, or credential-bearing CI logs.
|
|
|
61
61
|
~~~
|
|
62
62
|
|
|
63
63
|
## Issue Template
|
|
64
|
-
|
|
65
|
-
Title:
|
|
66
|
-
|
|
67
|
-
```text
|
|
68
|
-
Add DiffCI as an optional AI-agent CI validation tool
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
Body:
|
|
72
|
-
|
|
73
|
-
```md
|
|
74
|
-
DiffCI now ships an npm CLI and stdio MCP server for AI coding agents:
|
|
75
|
-
|
|
76
|
-
- CLI: `npx "@diffci.com/diffci@latest" check`
|
|
77
|
-
- MCP: `npx -p "@diffci.com/diffci@latest" diffci-mcp`
|
|
78
|
-
|
|
79
|
-
It is intended as an optional validation lens before agents mark work PR-ready. DiffCI analyzes the
|
|
80
|
-
current checkout, explains affected tests, can run inferred local validation through `diffci check`,
|
|
81
|
-
and does not skip, cancel, reorder, or modify required CI.
|
|
82
|
-
|
|
83
|
-
Docs:
|
|
84
|
-
|
|
64
|
+
|
|
65
|
+
Title:
|
|
66
|
+
|
|
67
|
+
```text
|
|
68
|
+
Add DiffCI as an optional AI-agent CI validation tool
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Body:
|
|
72
|
+
|
|
73
|
+
```md
|
|
74
|
+
DiffCI now ships an npm CLI and stdio MCP server for AI coding agents:
|
|
75
|
+
|
|
76
|
+
- CLI: `npx "@diffci.com/diffci@latest" check`
|
|
77
|
+
- MCP: `npx -p "@diffci.com/diffci@latest" diffci-mcp`
|
|
78
|
+
|
|
79
|
+
It is intended as an optional validation lens before agents mark work PR-ready. DiffCI analyzes the
|
|
80
|
+
current checkout, explains affected tests, can run inferred local validation through `diffci check`,
|
|
81
|
+
and does not skip, cancel, reorder, or modify required CI.
|
|
82
|
+
|
|
83
|
+
Docs:
|
|
84
|
+
|
|
85
85
|
- https://diffci.com/docs/ai-agents
|
|
86
|
-
- https://github.com/DiffCI/DiffCI.com/blob/main/docs/mcp.md
|
|
87
|
-
|
|
86
|
+
- https://github.com/DiffCI/DiffCI.com/blob/main/docs/mcp.md
|
|
87
|
+
|
|
88
88
|
Would you be open to adding DiffCI as an optional validation command/example for AI coding agents?
|
|
89
89
|
```
|
|
90
90
|
|
|
@@ -101,21 +101,21 @@ When someone shares a first report, reply with exactly one next step:
|
|
|
101
101
|
| Paired runtime result | Check command coverage, cache state, exit codes, and checkout provenance before discussing savings. |
|
|
102
102
|
|
|
103
103
|
## PR Snippet
|
|
104
|
-
|
|
105
|
-
~~~md
|
|
106
|
-
### Optional AI-agent validation
|
|
107
|
-
|
|
108
|
-
Before marking changes PR-ready, agents can run:
|
|
109
|
-
|
|
110
|
-
```bash
|
|
111
|
-
npx "@diffci.com/diffci@latest" check
|
|
112
|
-
```
|
|
113
|
-
|
|
114
|
-
Agents with MCP support can configure:
|
|
115
|
-
|
|
116
|
-
```bash
|
|
117
|
-
npx -p "@diffci.com/diffci@latest" diffci-mcp
|
|
118
|
-
```
|
|
119
|
-
|
|
120
|
-
DiffCI is a validation lens: it explains affected tests and keeps required CI authoritative.
|
|
121
|
-
~~~
|
|
104
|
+
|
|
105
|
+
~~~md
|
|
106
|
+
### Optional AI-agent validation
|
|
107
|
+
|
|
108
|
+
Before marking changes PR-ready, agents can run:
|
|
109
|
+
|
|
110
|
+
```bash
|
|
111
|
+
npx "@diffci.com/diffci@latest" check
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
Agents with MCP support can configure:
|
|
115
|
+
|
|
116
|
+
```bash
|
|
117
|
+
npx -p "@diffci.com/diffci@latest" diffci-mcp
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
DiffCI is a validation lens: it explains affected tests and keeps required CI authoritative.
|
|
121
|
+
~~~
|
|
@@ -1,69 +1,69 @@
|
|
|
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" check` from the repository
|
|
10
|
-
> root. Use its output to understand affected tests and fallback reasons. Keep the repository's
|
|
11
|
-
> required CI authoritative. If DiffCI reports `REFUSED` or `ERROR`, run the normal tests.
|
|
12
|
-
|
|
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`.
|
|
15
|
-
|
|
16
|
-
## GitHub Action
|
|
17
|
-
|
|
18
|
-
Save this as `.github/workflows/diffci.yml` to observe changes in a separate, non-blocking job:
|
|
19
|
-
|
|
20
|
-
```yaml
|
|
21
|
-
name: DiffCI observation
|
|
22
|
-
on: [push, pull_request]
|
|
23
|
-
permissions:
|
|
24
|
-
contents: read
|
|
25
|
-
jobs:
|
|
26
|
-
diffci:
|
|
27
|
-
runs-on: ubuntu-latest
|
|
28
|
-
continue-on-error: true
|
|
29
|
-
steps:
|
|
30
|
-
- uses: actions/checkout@v4
|
|
31
|
-
with:
|
|
32
|
-
fetch-depth: 0
|
|
33
|
-
- uses: DiffCI/DiffCI.com@
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
Run `npx "@diffci.com/diffci@latest" verify-workflow` before starting a pilot. The Action uploads a
|
|
37
|
-
GitHub artifact by default; it sends nothing to DiffCI Cloud without an explicit endpoint and token.
|
|
38
|
-
|
|
39
|
-
## MCP client
|
|
40
|
-
|
|
41
|
-
For a client that accepts stdio MCP JSON, set `cwd` to the repository checkout:
|
|
42
|
-
|
|
43
|
-
```json
|
|
44
|
-
{
|
|
45
|
-
"mcpServers": {
|
|
46
|
-
"diffci": {
|
|
47
|
-
"command": "npx",
|
|
48
|
-
"args": ["-p", "@diffci.com/diffci@latest", "diffci-mcp"],
|
|
49
|
-
"cwd": "/path/to/repository"
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
See [MCP setup](mcp.md) for Windows paths and the available tools.
|
|
56
|
-
|
|
57
|
-
## Small adoption PR
|
|
58
|
-
|
|
59
|
-
Suggested title: **Add optional DiffCI validation for coding agents**
|
|
60
|
-
|
|
61
|
-
Suggested description:
|
|
62
|
-
|
|
63
|
-
> This adds an optional DiffCI instruction or observation job. DiffCI analyzes the change and
|
|
64
|
-
> reports affected tests. Its `check` command compares full and selected test commands when it can
|
|
65
|
-
> infer them; the GitHub Action only observes. Required CI continues to run as before.
|
|
66
|
-
|
|
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" check` from the repository
|
|
10
|
+
> root. Use its output to understand affected tests and fallback reasons. Keep the repository's
|
|
11
|
+
> required CI authoritative. If DiffCI reports `REFUSED` or `ERROR`, run the normal tests.
|
|
12
|
+
|
|
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`.
|
|
15
|
+
|
|
16
|
+
## GitHub Action
|
|
17
|
+
|
|
18
|
+
Save this as `.github/workflows/diffci.yml` to observe changes in a separate, non-blocking job:
|
|
19
|
+
|
|
20
|
+
```yaml
|
|
21
|
+
name: DiffCI observation
|
|
22
|
+
on: [push, pull_request]
|
|
23
|
+
permissions:
|
|
24
|
+
contents: read
|
|
25
|
+
jobs:
|
|
26
|
+
diffci:
|
|
27
|
+
runs-on: ubuntu-latest
|
|
28
|
+
continue-on-error: true
|
|
29
|
+
steps:
|
|
30
|
+
- uses: actions/checkout@v4
|
|
31
|
+
with:
|
|
32
|
+
fetch-depth: 0
|
|
33
|
+
- uses: DiffCI/DiffCI.com@5458e133a549b24f7224b1364811ef487fa4e153 # v0.2.9
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Run `npx "@diffci.com/diffci@latest" verify-workflow` before starting a pilot. The Action uploads a
|
|
37
|
+
GitHub artifact by default; it sends nothing to DiffCI Cloud without an explicit endpoint and token.
|
|
38
|
+
|
|
39
|
+
## MCP client
|
|
40
|
+
|
|
41
|
+
For a client that accepts stdio MCP JSON, set `cwd` to the repository checkout:
|
|
42
|
+
|
|
43
|
+
```json
|
|
44
|
+
{
|
|
45
|
+
"mcpServers": {
|
|
46
|
+
"diffci": {
|
|
47
|
+
"command": "npx",
|
|
48
|
+
"args": ["-p", "@diffci.com/diffci@latest", "diffci-mcp"],
|
|
49
|
+
"cwd": "/path/to/repository"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
See [MCP setup](mcp.md) for Windows paths and the available tools.
|
|
56
|
+
|
|
57
|
+
## Small adoption PR
|
|
58
|
+
|
|
59
|
+
Suggested title: **Add optional DiffCI validation for coding agents**
|
|
60
|
+
|
|
61
|
+
Suggested description:
|
|
62
|
+
|
|
63
|
+
> This adds an optional DiffCI instruction or observation job. DiffCI analyzes the change and
|
|
64
|
+
> reports affected tests. Its `check` command compares full and selected test commands when it can
|
|
65
|
+
> infer them; the GitHub Action only observes. Required CI continues to run as before.
|
|
66
|
+
|
|
67
67
|
## Where to point maintainers
|
|
68
68
|
|
|
69
69
|
- [npm package](https://www.npmjs.com/package/@diffci.com/diffci)
|
|
@@ -1,62 +1,62 @@
|
|
|
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) | Published with `mcp-publisher` as `io.github.adityankale190895/diffci`. | Published. |
|
|
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.
|
|
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) | Published with `mcp-publisher` as `io.github.adityankale190895/diffci`. | Published. |
|
|
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
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
|
-
```
|
|
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/ai-agents.md
CHANGED
|
@@ -1,102 +1,102 @@
|
|
|
1
|
-
# DiffCI for AI Coding Agents
|
|
2
|
-
|
|
3
|
-
DiffCI is the default CI/CD validation lens agents can run before proposing, committing, or opening a
|
|
4
|
-
pull request.
|
|
5
|
-
|
|
6
|
-
The default command is:
|
|
7
|
-
|
|
8
|
-
```bash
|
|
9
|
-
npx "@diffci.com/diffci@latest" check
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
`check` analyzes the change and runs inferred full and selected test commands when possible. It
|
|
13
|
-
prints paired runtime when both pass and sends nothing to DiffCI Cloud. Test commands may change
|
|
14
|
-
the checkout. Use `observe --no-send` when you need analysis without running tests.
|
|
15
|
-
|
|
16
|
-
## Install Agent Instructions
|
|
17
|
-
|
|
18
|
-
From a repository root:
|
|
19
|
-
|
|
20
|
-
```bash
|
|
21
|
-
npx "@diffci.com/diffci@latest" init
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
This writes:
|
|
25
|
-
|
|
26
|
-
- `AGENTS.md`
|
|
27
|
-
- `CLAUDE.md`
|
|
28
|
-
- `.cursor/rules/diffci.mdc`
|
|
29
|
-
- `.github/copilot-instructions.md`
|
|
30
|
-
- `diffci.config.json`
|
|
31
|
-
|
|
32
|
-
Existing files are kept. Pass `--force` only when you intentionally want to replace them.
|
|
33
|
-
|
|
34
|
-
To also add a non-blocking GitHub Actions observer job:
|
|
35
|
-
|
|
36
|
-
```bash
|
|
37
|
-
npx "@diffci.com/diffci@latest" init --workflow
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
Then verify the workflow:
|
|
41
|
-
|
|
42
|
-
```bash
|
|
43
|
-
npx "@diffci.com/diffci@latest" verify-workflow
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
## Copy-Paste Adoption
|
|
47
|
-
|
|
48
|
-
For a maintainer-facing snippet, PR template, and GitHub search queries for repositories that already
|
|
49
|
-
use agent instruction files, see [`agent-adoption-kit.md`](agent-adoption-kit.md).
|
|
50
|
-
For a first-pass list of repositories to review before opening PRs, see
|
|
51
|
-
[`agent-adoption-targets.md`](agent-adoption-targets.md).
|
|
52
|
-
|
|
53
|
-
Examples:
|
|
54
|
-
|
|
55
|
-
- [`examples/agent-node`](../examples/agent-node)
|
|
56
|
-
- [`examples/agent-python`](../examples/agent-python)
|
|
57
|
-
- [`examples/agent-monorepo`](../examples/agent-monorepo)
|
|
58
|
-
|
|
59
|
-
## MCP
|
|
60
|
-
|
|
61
|
-
Agents that support MCP can run DiffCI as a native stdio tool server:
|
|
62
|
-
|
|
63
|
-
```bash
|
|
64
|
-
npx -p "@diffci.com/diffci@latest" diffci-mcp
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
See [`mcp.md`](mcp.md).
|
|
68
|
-
|
|
69
|
-
Minimal MCP config:
|
|
70
|
-
|
|
71
|
-
```json
|
|
72
|
-
{
|
|
73
|
-
"mcpServers": {
|
|
74
|
-
"diffci": {
|
|
75
|
-
"command": "npx",
|
|
76
|
-
"args": ["-p", "@diffci.com/diffci@latest", "diffci-mcp"]
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
## Agent Policy
|
|
83
|
-
|
|
84
|
-
Agents should:
|
|
85
|
-
|
|
86
|
-
- run `diffci check` before PR-ready answers when Git and Node.js are available;
|
|
87
|
-
- call `diffci_check` when connected through MCP;
|
|
88
|
-
- read the printed verdict, selected tests, fallback reasons, and report path;
|
|
89
|
-
- use DiffCI output to choose focused follow-up validation;
|
|
90
|
-
- keep the repository's required CI commands authoritative.
|
|
91
|
-
|
|
92
|
-
Agents should not:
|
|
93
|
-
|
|
94
|
-
- skip required CI because DiffCI selected fewer tests;
|
|
95
|
-
- treat `REFUSED` or `ERROR` as a passing validation;
|
|
96
|
-
- configure hosted report sending unless the user explicitly supplies an endpoint and token.
|
|
97
|
-
|
|
98
|
-
## Open Core Boundary
|
|
99
|
-
|
|
100
|
-
The agent-facing layer belongs in the open-source core: CLI, local reports, JSON output, instruction
|
|
101
|
-
files, and the non-blocking GitHub Action. Hosted history, organization dashboards, PR bots, policies,
|
|
102
|
-
team analytics, managed runners, and support belong to commercial DiffCI.
|
|
1
|
+
# DiffCI for AI Coding Agents
|
|
2
|
+
|
|
3
|
+
DiffCI is the default CI/CD validation lens agents can run before proposing, committing, or opening a
|
|
4
|
+
pull request.
|
|
5
|
+
|
|
6
|
+
The default command is:
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
npx "@diffci.com/diffci@latest" check
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
`check` analyzes the change and runs inferred full and selected test commands when possible. It
|
|
13
|
+
prints paired runtime when both pass and sends nothing to DiffCI Cloud. Test commands may change
|
|
14
|
+
the checkout. Use `observe --no-send` when you need analysis without running tests.
|
|
15
|
+
|
|
16
|
+
## Install Agent Instructions
|
|
17
|
+
|
|
18
|
+
From a repository root:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
npx "@diffci.com/diffci@latest" init
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
This writes:
|
|
25
|
+
|
|
26
|
+
- `AGENTS.md`
|
|
27
|
+
- `CLAUDE.md`
|
|
28
|
+
- `.cursor/rules/diffci.mdc`
|
|
29
|
+
- `.github/copilot-instructions.md`
|
|
30
|
+
- `diffci.config.json`
|
|
31
|
+
|
|
32
|
+
Existing files are kept. Pass `--force` only when you intentionally want to replace them.
|
|
33
|
+
|
|
34
|
+
To also add a non-blocking GitHub Actions observer job:
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
npx "@diffci.com/diffci@latest" init --workflow
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Then verify the workflow:
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
npx "@diffci.com/diffci@latest" verify-workflow
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Copy-Paste Adoption
|
|
47
|
+
|
|
48
|
+
For a maintainer-facing snippet, PR template, and GitHub search queries for repositories that already
|
|
49
|
+
use agent instruction files, see [`agent-adoption-kit.md`](agent-adoption-kit.md).
|
|
50
|
+
For a first-pass list of repositories to review before opening PRs, see
|
|
51
|
+
[`agent-adoption-targets.md`](agent-adoption-targets.md).
|
|
52
|
+
|
|
53
|
+
Examples:
|
|
54
|
+
|
|
55
|
+
- [`examples/agent-node`](../examples/agent-node)
|
|
56
|
+
- [`examples/agent-python`](../examples/agent-python)
|
|
57
|
+
- [`examples/agent-monorepo`](../examples/agent-monorepo)
|
|
58
|
+
|
|
59
|
+
## MCP
|
|
60
|
+
|
|
61
|
+
Agents that support MCP can run DiffCI as a native stdio tool server:
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
npx -p "@diffci.com/diffci@latest" diffci-mcp
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
See [`mcp.md`](mcp.md).
|
|
68
|
+
|
|
69
|
+
Minimal MCP config:
|
|
70
|
+
|
|
71
|
+
```json
|
|
72
|
+
{
|
|
73
|
+
"mcpServers": {
|
|
74
|
+
"diffci": {
|
|
75
|
+
"command": "npx",
|
|
76
|
+
"args": ["-p", "@diffci.com/diffci@latest", "diffci-mcp"]
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
## Agent Policy
|
|
83
|
+
|
|
84
|
+
Agents should:
|
|
85
|
+
|
|
86
|
+
- run `diffci check` before PR-ready answers when Git and Node.js are available;
|
|
87
|
+
- call `diffci_check` when connected through MCP;
|
|
88
|
+
- read the printed verdict, selected tests, fallback reasons, and report path;
|
|
89
|
+
- use DiffCI output to choose focused follow-up validation;
|
|
90
|
+
- keep the repository's required CI commands authoritative.
|
|
91
|
+
|
|
92
|
+
Agents should not:
|
|
93
|
+
|
|
94
|
+
- skip required CI because DiffCI selected fewer tests;
|
|
95
|
+
- treat `REFUSED` or `ERROR` as a passing validation;
|
|
96
|
+
- configure hosted report sending unless the user explicitly supplies an endpoint and token.
|
|
97
|
+
|
|
98
|
+
## Open Core Boundary
|
|
99
|
+
|
|
100
|
+
The agent-facing layer belongs in the open-source core: CLI, local reports, JSON output, instruction
|
|
101
|
+
files, and the non-blocking GitHub Action. Hosted history, organization dashboards, PR bots, policies,
|
|
102
|
+
team analytics, managed runners, and support belong to commercial DiffCI.
|