@diffci.com/diffci 0.2.4 → 0.2.6

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/docs/mcp.md CHANGED
@@ -1,70 +1,70 @@
1
- # DiffCI MCP Server
2
-
3
- DiffCI ships a small stdio MCP server for coding agents that prefer native tools over shell commands.
4
-
5
- Run it with:
6
-
7
- ```bash
8
- npx -p @diffci.com/diffci@latest diffci-mcp
9
- ```
10
-
11
- ## MCP Client Config
12
-
13
- Use this stdio configuration in clients that accept MCP JSON. Set `cwd` to the repository where the
14
- agent should run DiffCI.
15
-
16
- ```json
17
- {
18
- "mcpServers": {
19
- "diffci": {
20
- "command": "npx",
21
- "args": ["-p", "@diffci.com/diffci@latest", "diffci-mcp"],
22
- "cwd": "/path/to/repository"
23
- }
24
- }
25
- }
26
- ```
27
-
28
- On Windows, keep the same command shape and use a Windows path:
29
-
30
- ```json
31
- {
32
- "mcpServers": {
33
- "diffci": {
34
- "command": "npx",
35
- "args": ["-p", "@diffci.com/diffci@latest", "diffci-mcp"],
36
- "cwd": "C:\\Users\\you\\path\\to\\repository"
37
- }
38
- }
39
- }
40
- ```
41
-
42
- For Claude Desktop, Claude Code, Cursor, Codex-style MCP clients, and other stdio-compatible agents,
43
- name the server `diffci` and call `diffci_check` before PR-ready answers.
44
-
45
- Available tools:
46
-
47
- - `diffci_check` - runs `diffci check`, including inferred full and selected test commands.
48
- - `diffci_init` - runs `diffci init` to seed agent instruction files.
49
- - `diffci_verify_workflow` - runs `diffci verify-workflow` to check non-interference.
50
-
51
- The MCP server delegates to the same open-source CLI. `diffci_check` sends nothing to DiffCI Cloud,
52
- but it runs test commands when it can infer them. Use the CLI's `observe --no-send` for analysis only.
53
-
54
- Keep required project CI authoritative. DiffCI output is a validation lens, not permission to skip
55
- required checks.
56
-
57
- ## Directory Metadata
58
-
59
- Discovery links:
60
-
61
- - npm package: https://www.npmjs.com/package/@diffci.com/diffci
62
- - GitHub repository: https://github.com/DiffCI/DiffCI.com
63
- - Agent docs: https://diffci.com/docs/ai-agents.html
64
- - LLM discovery file: https://diffci.com/llms.txt
65
- - MCP command: `npx -p @diffci.com/diffci@latest diffci-mcp`
66
-
67
- Short description:
68
-
69
- > Observation-only CI/CD validation for AI coding agents. DiffCI helps agents inspect the current
70
- > checkout, explain affected tests, and keep required CI authoritative.
1
+ # DiffCI MCP Server
2
+
3
+ DiffCI ships a small stdio MCP server for coding agents that prefer native tools over shell commands.
4
+
5
+ Run it with:
6
+
7
+ ```bash
8
+ npx -p @diffci.com/diffci@latest diffci-mcp
9
+ ```
10
+
11
+ ## MCP Client Config
12
+
13
+ Use this stdio configuration in clients that accept MCP JSON. Set `cwd` to the repository where the
14
+ agent should run DiffCI.
15
+
16
+ ```json
17
+ {
18
+ "mcpServers": {
19
+ "diffci": {
20
+ "command": "npx",
21
+ "args": ["-p", "@diffci.com/diffci@latest", "diffci-mcp"],
22
+ "cwd": "/path/to/repository"
23
+ }
24
+ }
25
+ }
26
+ ```
27
+
28
+ On Windows, keep the same command shape and use a Windows path:
29
+
30
+ ```json
31
+ {
32
+ "mcpServers": {
33
+ "diffci": {
34
+ "command": "npx",
35
+ "args": ["-p", "@diffci.com/diffci@latest", "diffci-mcp"],
36
+ "cwd": "C:\\Users\\you\\path\\to\\repository"
37
+ }
38
+ }
39
+ }
40
+ ```
41
+
42
+ For Claude Desktop, Claude Code, Cursor, Codex-style MCP clients, and other stdio-compatible agents,
43
+ name the server `diffci` and call `diffci_check` before PR-ready answers.
44
+
45
+ Available tools:
46
+
47
+ - `diffci_check` - runs `diffci check`, including inferred full and selected test commands.
48
+ - `diffci_init` - runs `diffci init` to seed agent instruction files.
49
+ - `diffci_verify_workflow` - runs `diffci verify-workflow` to check non-interference.
50
+
51
+ The MCP server delegates to the same open-source CLI. `diffci_check` sends nothing to DiffCI Cloud,
52
+ but it runs test commands when it can infer them. Use the CLI's `observe --no-send` for analysis only.
53
+
54
+ Keep required project CI authoritative. DiffCI output is a validation lens, not permission to skip
55
+ required checks.
56
+
57
+ ## Directory Metadata
58
+
59
+ Discovery links:
60
+
61
+ - npm package: https://www.npmjs.com/package/@diffci.com/diffci
62
+ - GitHub repository: https://github.com/DiffCI/DiffCI.com
63
+ - Agent docs: https://diffci.com/docs/ai-agents.html
64
+ - LLM discovery file: https://diffci.com/llms.txt
65
+ - MCP command: `npx -p @diffci.com/diffci@latest diffci-mcp`
66
+
67
+ Short description:
68
+
69
+ > Observation-only CI/CD validation for AI coding agents. DiffCI helps agents inspect the current
70
+ > checkout, explain affected tests, and keep required CI authoritative.
@@ -96,6 +96,10 @@ with controlled cache state before drawing conclusions. A passing pair does not
96
96
  - Net selected runtime is selected runtime plus analysis overhead.
97
97
  - If the full command fails while the selected command passes, the report is a safety warning, not a
98
98
  savings result.
99
+ - The savings report binds the pair to the observation's base/head SHAs and SHA-256 digest, and records
100
+ the checked-out HEAD plus a worktree-status digest before, between, and after the two commands. A
101
+ missing identity, SHA mismatch, or worktree change invalidates the comparison even when both commands
102
+ pass.
99
103
 
100
104
  If the proposed command needs adjustment for the repository's runner, pass the selected command
101
105
  manually:
package/llms.txt CHANGED
@@ -1,39 +1,39 @@
1
- # DiffCI
2
-
3
- DiffCI is an observation-only, change-aware CI analysis tool for AI coding agents and development teams.
4
-
5
- Default AI-agent command:
6
-
7
- ```bash
8
- npx @diffci.com/diffci@latest check
9
- ```
10
-
11
- Initialization command:
12
-
13
- ```bash
14
- npx @diffci.com/diffci@latest init
15
- ```
16
-
17
- What agents should know:
18
-
19
- - `diffci check` analyzes the repository checkout and writes a JSON observation report.
20
- - It runs no tests, skips no tests, cancels no jobs, and changes no CI behavior.
21
- - It sends no report unless `DIFFCI_API_URL` and `DIFFCI_TOKEN` are explicitly configured.
22
- - Treat selected commands as evidence about the change, not as permission to skip required project CI.
23
- - If DiffCI reports `REFUSED` or `ERROR`, fall back to the repository's normal validation commands.
24
-
25
- Useful docs:
26
-
27
- - AI agents: https://diffci.com/docs/ai-agents.html
28
- - Codex: https://diffci.com/docs/codex.html
29
- - Claude Code: https://diffci.com/docs/claude-code.html
30
- - Cursor: https://diffci.com/docs/cursor.html
31
- - GitHub Copilot: https://diffci.com/docs/copilot.html
32
- - Grok: https://diffci.com/docs/grok.html
33
- - Adoption kit: https://github.com/DiffCI/DiffCI.com/blob/main/docs/agent-adoption-kit.md
34
- - Adoption outreach: https://github.com/DiffCI/DiffCI.com/blob/main/docs/adoption-outreach.md
35
- - Adoption metrics: https://github.com/DiffCI/DiffCI.com/blob/main/docs/adoption-metrics.md
36
- - Adoption targets: https://github.com/DiffCI/DiffCI.com/blob/main/docs/agent-adoption-targets.md
37
- - MCP server: https://github.com/DiffCI/DiffCI.com/blob/main/docs/mcp.md
38
- - Distribution: https://github.com/DiffCI/DiffCI.com/blob/main/docs/distribution.md
39
- - Language support: https://github.com/DiffCI/DiffCI.com/blob/main/docs/language-support.md
1
+ # DiffCI
2
+
3
+ DiffCI is an observation-only, change-aware CI analysis tool for AI coding agents and development teams.
4
+
5
+ Default AI-agent command:
6
+
7
+ ```bash
8
+ npx @diffci.com/diffci@latest check
9
+ ```
10
+
11
+ Initialization command:
12
+
13
+ ```bash
14
+ npx @diffci.com/diffci@latest init
15
+ ```
16
+
17
+ What agents should know:
18
+
19
+ - `diffci check` analyzes the repository checkout and writes a JSON observation report.
20
+ - It runs no tests, skips no tests, cancels no jobs, and changes no CI behavior.
21
+ - It sends no report unless `DIFFCI_API_URL` and `DIFFCI_TOKEN` are explicitly configured.
22
+ - Treat selected commands as evidence about the change, not as permission to skip required project CI.
23
+ - If DiffCI reports `REFUSED` or `ERROR`, fall back to the repository's normal validation commands.
24
+
25
+ Useful docs:
26
+
27
+ - AI agents: https://diffci.com/docs/ai-agents.html
28
+ - Codex: https://diffci.com/docs/codex.html
29
+ - Claude Code: https://diffci.com/docs/claude-code.html
30
+ - Cursor: https://diffci.com/docs/cursor.html
31
+ - GitHub Copilot: https://diffci.com/docs/copilot.html
32
+ - Grok: https://diffci.com/docs/grok.html
33
+ - Adoption kit: https://github.com/DiffCI/DiffCI.com/blob/main/docs/agent-adoption-kit.md
34
+ - Adoption outreach: https://github.com/DiffCI/DiffCI.com/blob/main/docs/adoption-outreach.md
35
+ - Adoption metrics: https://github.com/DiffCI/DiffCI.com/blob/main/docs/adoption-metrics.md
36
+ - Adoption targets: https://github.com/DiffCI/DiffCI.com/blob/main/docs/agent-adoption-targets.md
37
+ - MCP server: https://github.com/DiffCI/DiffCI.com/blob/main/docs/mcp.md
38
+ - Distribution: https://github.com/DiffCI/DiffCI.com/blob/main/docs/distribution.md
39
+ - Language support: https://github.com/DiffCI/DiffCI.com/blob/main/docs/language-support.md