jev-dev-harness 0.2.15 โ†’ 0.2.17

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/CHANGELOG.md +145 -115
  2. package/LICENSE +21 -21
  3. package/README.md +687 -664
  4. package/bin/jev-dev.js +2 -2
  5. package/bin/jev-mcp.js +7 -7
  6. package/dashboard/index.html +1122 -1122
  7. package/dist/cli/delegate.d.ts +4 -0
  8. package/dist/cli/delegate.d.ts.map +1 -0
  9. package/dist/cli/delegate.js +62 -0
  10. package/dist/cli/delegate.js.map +1 -0
  11. package/dist/cli/doctor.js +46 -46
  12. package/dist/cli/index.d.ts.map +1 -1
  13. package/dist/cli/index.js +19 -3
  14. package/dist/cli/index.js.map +1 -1
  15. package/dist/cli/setup.d.ts.map +1 -1
  16. package/dist/cli/setup.js +25 -9
  17. package/dist/cli/setup.js.map +1 -1
  18. package/dist/context-ranker/stage-a-filter.d.ts.map +1 -1
  19. package/dist/context-ranker/stage-a-filter.js +26 -29
  20. package/dist/context-ranker/stage-a-filter.js.map +1 -1
  21. package/dist/context-ranker/types.d.ts +1 -0
  22. package/dist/context-ranker/types.d.ts.map +1 -1
  23. package/dist/delegate/index.d.ts +129 -0
  24. package/dist/delegate/index.d.ts.map +1 -0
  25. package/dist/delegate/index.js +87 -0
  26. package/dist/delegate/index.js.map +1 -0
  27. package/dist/hooks/index.js +73 -73
  28. package/dist/mcp/server.d.ts.map +1 -1
  29. package/dist/mcp/server.js +6 -0
  30. package/dist/mcp/server.js.map +1 -1
  31. package/dist/shared/efficiency.d.ts +4 -1
  32. package/dist/shared/efficiency.d.ts.map +1 -1
  33. package/dist/shared/efficiency.js +8 -4
  34. package/dist/shared/efficiency.js.map +1 -1
  35. package/dist/shared/telemetry.d.ts +6 -0
  36. package/dist/shared/telemetry.d.ts.map +1 -1
  37. package/dist/shared/telemetry.js +6 -0
  38. package/dist/shared/telemetry.js.map +1 -1
  39. package/dist/shared/typesafe-client.d.ts +2 -0
  40. package/dist/shared/typesafe-client.d.ts.map +1 -1
  41. package/dist/shared/typesafe-client.js +20 -9
  42. package/dist/shared/typesafe-client.js.map +1 -1
  43. package/dist/shared/version.js +1 -1
  44. package/docs/RELEASING.md +250 -243
  45. package/docs/jev/DELEGATED-REVIEW.md +86 -0
  46. package/docs/jev/JEV-0.2.16-DEFAULTS.md +60 -0
  47. package/docs/jev/JEV-1.14-EVALUATION.md +99 -99
  48. package/docs/jev/MEASURED-USAGE.md +155 -155
  49. package/docs/jev/MULTI-HARNESS-USAGE.md +163 -163
  50. package/docs/jev/OPENROUTER-NATIVE.md +93 -93
  51. package/docs/jev/README.md +85 -85
  52. package/docs/jev/evaluation-jev-1.14-2026-10-15.json +1731 -1731
  53. package/package.json +139 -133
package/README.md CHANGED
@@ -1,664 +1,687 @@
1
- <p align="center">
2
- <img src="./assets/logo.png" alt="Jev Developer Harness Logo" width="220" style="border-radius: 20px; box-shadow: 0 8px 32px rgba(37, 99, 235, 0.25);" />
3
- </p>
4
-
5
- <h1 align="center">Jev Developer Harness</h1>
6
-
7
- <p align="center">
8
- <strong>The Ultimate Runtime Safety, Token-Reduction, and Intelligence Harness for AI Coding Agents</strong>
9
- </p>
10
-
11
- <p align="center">
12
- <a href="https://www.npmjs.com/package/jev-dev-harness"><img src="https://img.shields.io/npm/v/jev-dev-harness.svg?color=cb3837" alt="npm version" /></a>
13
- <img src="https://img.shields.io/badge/tests-142%20passing-brightgreen.svg" alt="Tests" />
14
- <img src="https://img.shields.io/badge/TypeScript-5.8-blue.svg" alt="TypeScript" />
15
- <img src="https://img.shields.io/badge/Node.js-22+-green.svg" alt="Node" />
16
- <a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License: MIT" /></a>
17
- <a href="https://typesafe.ai"><img src="https://img.shields.io/badge/Powered%20By-TypeSafe%20AI%20%2F%20Jev-purple.svg" alt="TypeSafe AI" /></a>
18
- </p>
19
-
20
- > **An open-source developer harness and runtime safety toolkit for AI coding agents (Antigravity, Codex, Claude Code, Cursor, VSCode, Aider) powered by TypeSafe AI / Jev.**
21
-
22
- ---
23
-
24
- ## ๐Ÿš€ Why Jev Developer Harness?
25
-
26
- Large Language Models (LLMs) are exceptional at generative synthesis and reasoning, but using them for high-volume context filtering, safety guardrails, and patch triage is **slow, expensive, and prone to context window dilution**.
27
-
28
- **TypeSafe AI's Jev** is a specialized "System One" decision engine. Rather than generating chat text, it evaluates application state and natural language against typed, calibrated questions (`noul`, `score`, `choice`) with sub-second latency and consistent probabilities.
29
-
30
- `jev-dev-harness` bridges the gap between coding agents and codebase safety:
31
-
32
- ```
33
- AI Coding Agent (Codex, Antigravity, Claude Code)
34
- โ”‚
35
- โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
36
- โ–ผ โ–ผ โ–ผ
37
- [Context Ranker] [Tool Call Guard] [Patch Reviewer]
38
- Selects surgical 3-5 Intercepts shell commands Audits git diffs before
39
- relevant files (ranked) with measured latency commits (secrets, scope, auth)
40
- โ”‚ โ”‚ โ”‚
41
- โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
42
- โ–ผ
43
- [Semantic Linter in CI]
44
- Enforces architectural drift
45
- and safety rules in GitHub PRs
46
- ```
47
-
48
- ---
49
-
50
- ## ๐Ÿ“Š Benchmark & Performance: With vs. Without Jev Harness
51
-
52
- How much faster, cheaper, and safer is programming with an AI coding agent (Codex, Antigravity, Claude Code, Cursor) when using `jev-dev-harness`?
53
-
54
- <p align="center">
55
- <img src="docs/images/dashboard-roi-preview.png" alt="Jev Developer Harness ROI & Benchmark Simulator" width="100%" />
56
- </p>
57
-
58
- ### ๐Ÿ’ก Key Benchmarks at a Glance
59
-
60
- The following legacy comparison values are hypothetical assumptions, not measured benchmarks or savings. No valid token/cost baseline has been collected.
61
-
62
- | Metric | Without Jev (Vanilla Agent) | With Jev Developer Harness | Impact / Savings |
63
- | :--- | :--- | :--- | :--- |
64
- | **Context Tokens / Task** | ~75,000 - 120,000 tokens | 4,200 - 7,800 tokens | **92.4% token cut** |
65
- | **Turnaround Latency** | 25 - 50 seconds | 4 - 8 seconds | **5x faster completion** |
66
- | **Files Loaded into Context**| 35 - 90 files (noise bloat) | 3 - 5 surgical files | **88.2% less pollution** |
67
- | **Command Safety Guard** | None (LLM executes blind) | &lt;1ms deterministic gate | **100% blocks destructive cmds** |
68
- | **Patch & Diff Audit** | Manual or 3-min CI wait | ~750ms System One hook | **Catches secrets & regressions** |
69
- | **Est. Cost (5 devs)** | ~$1,400 / month | ~$107 / month | **$15,500+ / year saved** |
70
-
71
- ### ๐Ÿ“Ÿ Real-Time Terminal Benchmark (`jev-dev compare`)
72
-
73
- Run the hypothetical simulation anytime in your terminal with zero install:
74
-
75
- ```bash
76
- npx -y jev-dev compare
77
- ```
78
-
79
- <p align="center">
80
- <img src="docs/images/cli-compare-preview.png" alt="Jev CLI Compare Benchmark Terminal" width="100%" />
81
- </p>
82
-
83
- ---
84
-
85
- ## โšก Key Modules & CLI Commands
86
-
87
- Maintainers: see [the release guide](docs/RELEASING.md) for version checks,
88
- Git release tags and publishing to npm `latest`. Release notes are in
89
- [CHANGELOG.md](CHANGELOG.md).
90
-
91
- | Module / Command | Purpose |
92
- | :--- | :--- |
93
- | `jev-dev version` | Inspects currently installed harness version, latest on npm registry, package path, runtime details, and install type. |
94
- | `jev-dev context rank` | Selects the top 3-5 crucial files for a task, reporting selection counts and validated response usage. |
95
- | `jev-dev guard check` | Intercepts commands in <1ms, categorizing operations into `read-only`, `modify-local`, `destructive-local`, `network`, or `production-sensitive`. |
96
- | `jev-dev patch review` | Fast triage of git diffs before commit/PR. Detects scope creep, credential exposure, database mutations, and missing tests. |
97
- | `jev-dev lint semantic` | Automated architectural drift detection in GitHub Actions CI (prevents UI/database mixing, dangerous migrations, etc.). |
98
- | `jev-dev hooks install` | 1-click installer for git pre-commit safety gate. Blocks commits containing leaked credentials or critical regression risk. |
99
- | `jev-dev mcp` | Standard Model Context Protocol (stdio) exposing all 4 tools to Cursor, Claude Desktop, Antigravity, VS Code. |
100
- | `jev-dev compare` | Hypothetical simulation (not measured telemetry) of token and cost assumptions with vs. without Jev. |
101
- | `jev-dev dashboard` | Real-time web dashboard with SSE streaming, platform origin detection, and interactive ROI simulator. |
102
- | `jev-dev doctor` | System health check: AI connectivity ping, MCP integrations, telemetry status, and auto-generates 7 agent rule files (`--init-rules`). |
103
- | `jev-dev setup` | 1-minute interactive CLI wizard to configure providers and auto-register agents. Supports `-y` for non-interactive execution. |
104
- | `jev-dev provider` | Inspects or switches the active AI provider (`typesafe`, `vercel`, `openrouter`, `offline`) on the fly. |
105
- | `jev-dev update` | 1-click upgrade to the latest npm release, with smart cache eviction and non-blocking notifications. |
106
- | `jev-dev uninstall` | 1-click clean uninstaller. Removes all MCP entries across IDEs, git hooks, rule files, and `~/.jev-dev` data. |
107
-
108
- ---
109
-
110
- ## ๐Ÿ”‘ Providers: Native TypeSafe, Vercel & OpenRouter
111
-
112
- `jev-dev-harness` is designed to be accessible to everyone:
113
-
114
- 1. **Native TypeSafe AI (Recommended)**:
115
- * Direct integration with TypeSafe's Jev System One model.
116
- * Calibrated probabilities, native discrete choices, and extreme low-latency evaluation.
117
- * ๐Ÿ‘‰ **Generate API Key:** [https://typesafe.ai](https://typesafe.ai) (Dashboard: [https://typesafe.ai/dashboard](https://typesafe.ai/dashboard))
118
- * Automatically activated when `TYPESAFE_API_KEY` (or `JEV_API_KEY`) is set.
119
- 2. **Vercel AI Gateway (Free Tier Credits & Managed)**:
120
- * Direct access to TypeSafe AI's Jev model through Vercel's managed AI Gateway (`https://ai-gateway.vercel.sh/typesafe`).
121
- * Takes advantage of Vercel's free credit allowance and free output tokens with zero markup.
122
- * ๐Ÿ‘‰ **Generate API Key:** [https://vercel.com/d/ai-gateway](https://vercel.com/d/ai-gateway) (Vercel Dashboard โ†’ AI Gateway โ†’ API Keys)
123
- * Automatically activated when `AI_GATEWAY_API_KEY` (or `VERCEL_AI_GATEWAY_KEY` / `VERCEL_OIDC_TOKEN`) is configured.
124
- 3. **OpenRouter (Native Jev & Explicit LLM Emulation)**:
125
- * Defaults to `typesafe/jev-1.13` through `/api/v1/systemone`, with runtime validation and a bounded deadline. Existing explicit model settings are preserved.
126
- * Other explicitly selected models use chat emulation and are labeled separately. Jev failures return deterministic fallback, never a silent model switch.
127
- * See [native OpenRouter setup, cache, metrics and evaluation](docs/jev/OPENROUTER-NATIVE.md).
128
- * ๐Ÿ‘‰ **Generate API Key:** [https://openrouter.ai/keys](https://openrouter.ai/keys)
129
- * Automatically activated when `OPENROUTER_API_KEY` (or keys starting with `sk-or-`) is configured.
130
- 4. **Deterministic Offline Fallback**:
131
- * If offline or no API keys are provided, the harness automatically falls back to regex and heuristic analysis. **Your coding agents are never blocked by API downtime.**
132
-
133
- ---
134
-
135
- ## ๐Ÿ“ฆ Installation & Quickstart
136
-
137
- ### ๐Ÿš€ 1-Minute Interactive Setup Wizard (Recommended)
138
-
139
- Configure your API keys (TypeSafe AI or OpenRouter) and automatically register the MCP server with your coding agent (Codex, Antigravity, Claude, Cursor) with a single command:
140
-
141
- ```bash
142
- # Zero-install interactive wizard:
143
- npx -y jev-dev setup
144
-
145
- # Or if installed globally:
146
- npm install -g jev-dev-harness
147
- jev-dev setup
148
- ```
149
-
150
- The wizard guides you through:
151
- 1. **Provider Selection:** Native TypeSafe AI (Recommended), Vercel AI Gateway (Free Tier), OpenRouter (native Jev, or an explicitly selected chat model), or Offline mode.
152
- 2. **API Key Input:** Securely paste your key (automatically validated with a live connection ping).
153
- 3. **Global CLI Availability:** Automatically saves to `.env` and `~/.jev-dev/config.json`, making `jev-dev` commands available in **any directory on your system**.
154
- 4. **Multi-Agent Auto-Configuration:** Automatically detects and registers the Jev MCP server across all installed coding agents on your machine:
155
- * **Codex Desktop** (`~/.codex/config.toml`)
156
- * **Claude Desktop** (`claude_desktop_config.json`)
157
- * **Antigravity IDE** (`~/.gemini/antigravity/mcp_config.json`)
158
- * **Cursor** (`~/.cursor/mcp.json`)
159
- * **Windsurf** (`~/.codeium/windsurf/mcp_config.json`)
160
- * **Trae** (`~/.trae/mcp.json`)
161
-
162
- ---
163
-
164
- ### ๐Ÿ”€ Switching AI Providers on the Fly
165
-
166
- You can inspect or switch your active provider at any time without losing your saved keys:
167
-
168
- ```bash
169
- # Check current active provider & live latency:
170
- npx -y jev-dev provider
171
-
172
- # Switch instantly to Vercel AI Gateway (Free Tier):
173
- npx -y jev-dev provider vercel
174
-
175
- # Switch back to native TypeSafe AI:
176
- npx -y jev-dev provider typesafe
177
-
178
- # Switch to OpenRouter or Offline:
179
- npx -y jev-dev provider openrouter
180
- npx -y jev-dev provider offline
181
-
182
- # Or run the full interactive wizard:
183
- npx -y jev-dev setup
184
- ```
185
-
186
- ---
187
-
188
- ### Option 1: Run instantly with npx (No install needed)
189
-
190
- ```bash
191
- # Interactive setup wizard
192
- npx -y jev-dev setup
193
-
194
- # Open real-time Live Telemetry web dashboard
195
- npx -y jev-dev dashboard
196
-
197
- # Live ROI & benchmark comparison
198
- npx -y jev-dev compare
199
-
200
- # Run CLI commands directly
201
- npx -y jev-dev context rank --task "My task"
202
- npx -y jev-dev guard check --command "git status"
203
-
204
- # Run stdio MCP server directly for agents
205
- npx -y jev-dev-harness
206
- ```
207
-
208
- ### Option 2: Global CLI via npm
209
-
210
- ```bash
211
- npm install -g jev-dev-harness
212
-
213
- # Now available globally anywhere on your system:
214
- jev-dev setup # Run the setup wizard
215
- jev-dev dashboard # Open live telemetry dashboard
216
- jev-dev compare # View ROI and benchmarks
217
- jev-dev update # Upgrade to latest npm version
218
- jev-dev --help # View all commands
219
- jev-mcp # Launch the MCP server
220
- ```
221
-
222
- ### Option 3: From Source (Developers & Contributors)
223
-
224
- ```bash
225
- git clone https://github.com/celolopes/jev-dev-harness.git
226
- cd jev-dev-harness
227
- npm install
228
- npm run build
229
- npm link
230
- ```
231
-
232
- ---
233
-
234
- ## ๐Ÿ› ๏ธ Usage Guide
235
-
236
- ### 1. Context Ranker (`context rank`)
237
- Narrow down an entire codebase to the exact files needed for a prompt:
238
-
239
- ```bash
240
- # Formatted human output
241
- jev-dev context rank --task "Implement JWT authentication token refresh and logout routes" --path .
242
-
243
- # Machine-readable JSON (ideal for AI coding agents)
244
- jev-dev context rank --task "Implement JWT authentication" --top 5 --json
245
- ```
246
-
247
- Output example:
248
- ```json
249
- {
250
- "task": "Implement JWT authentication",
251
- "selected": [
252
- {
253
- "path": "src/auth/jwt.ts",
254
- "score": 0.94,
255
- "confidence": 0.92,
256
- "role": "implementation",
257
- "reason": "Jev: Crucial (95% match, role: implementation) + heuristic: 92%"
258
- },
259
- {
260
- "path": "tests/auth/jwt.test.ts",
261
- "score": 0.84,
262
- "confidence": 0.90,
263
- "role": "test",
264
- "reason": "Jev: Highly Relevant (85% match, role: test) + heuristic: 82%"
265
- }
266
- ],
267
- "metrics": {
268
- "initialCandidates": 240,
269
- "filteredCandidates": 14,
270
- "tokensSent": 950,
271
- "latencyMs": 280
272
- }
273
- }
274
- ```
275
-
276
- ---
277
-
278
- ### 2. Tool Call Guard (`guard check`)
279
- Inspect shell commands before execution to prevent accidental file deletion or production outages:
280
-
281
- ```bash
282
- # Safe read-only inspection -> ALLOWED immediately
283
- jev-dev guard check --command "git status"
284
-
285
- # Destructive command -> BLOCKED (Requires confirmation)
286
- jev-dev guard check --command "git reset --hard HEAD~1"
287
-
288
- # Production cloud command -> BLOCKED (Critical safety risk)
289
- jev-dev guard check --command "gcloud compute instances delete prod-server"
290
-
291
- # Authorize network operations explicitly if intended
292
- jev-dev guard check --command "git push origin main" --allow-network
293
- ```
294
-
295
- ---
296
-
297
- ### 3. Patch Reviewer (`patch review`)
298
- Audit a patch or git diff before committing:
299
-
300
- ```bash
301
- # Review uncommitted working tree changes
302
- jev-dev patch review --task "Refactor authentication session handling"
303
-
304
- # Review staged changes
305
- jev-dev patch review --staged --task "Fix invoice tax calculation"
306
-
307
- # Review a specific commit range
308
- jev-dev patch review --commit-range HEAD~1 --task "Database migration"
309
- ```
310
-
311
- Output:
312
- ```
313
- =======================================================
314
- JEV PATCH REVIEWER (PHASE 3)
315
- =======================================================
316
-
317
- Task: Fix invoice tax calculation
318
- Status: [APPROVED] (Risk Score: 12.0/100)
319
- Diff Stats: 2 file(s), +24 / -3 lines
320
-
321
- --- JUDGMENTS BREAKDOWN ---
322
- Regression Risk: 1.0 / 4.0
323
- Out Of Scope: 5%
324
- Modifies Auth: 0%
325
- Modifies Database: 0%
326
- Missing Tests: 10%
327
- Exposes Secrets: 0%
328
- Confidence: 92%
329
- =======================================================
330
- ```
331
-
332
- ---
333
-
334
- ### 4. Git Pre-Commit Hook (`hooks install`)
335
- Protect your repository automatically on every `git commit`:
336
-
337
- ```bash
338
- # Default installation (fail-open: warns and permits commit if CLI is unavailable)
339
- jev-dev hooks install
340
-
341
- # Strict security installation (fail-closed: rejects commit if CLI fails to execute)
342
- jev-dev hooks install --policy fail-closed
343
-
344
- # Force overwrite existing hook
345
- jev-dev hooks install --force
346
- ```
347
-
348
- Whenever you run `git commit`, the hook evaluates your staged diff:
349
- * If secrets, private keys, or catastrophic regressions are detected, **the commit is aborted** (`exit 1`).
350
- * If clean, the commit proceeds instantly.
351
- * **Failure Policies**: Defaults to `fail-open` for backward compatibility. Use `--policy fail-closed` or set `JEV_HOOK_FAILURE_POLICY=fail-closed` for strict environments.
352
- * To uninstall: `jev-dev hooks uninstall` (preserves non-Jev user hooks unless `--force` is passed).
353
-
354
- ---
355
-
356
- ### 5. Semantic Linter in CI (`lint semantic`)
357
- Prevent architectural drift in pull requests:
358
-
359
- ```bash
360
- # Run locally over staged changes
361
- jev-dev lint semantic --staged
362
-
363
- # Run in advisory mode (report findings without breaking build)
364
- jev-dev lint semantic --commit-range origin/main...HEAD --advisory
365
- ```
366
-
367
- CLI exit codes are identical with and without `--json`:
368
-
369
- | Command | Exit status |
370
- |---|---|
371
- | `patch review` | `2` for `BLOCK_HUMAN_REQUIRED`; `0` for approved or escalated review |
372
- | `guard check` | `1` when denied and confirmation is required; otherwise `0` |
373
- | `lint semantic` | `1` for failed checks; `--advisory` findings retain `0` |
374
-
375
- Execution and argument errors return `1` with diagnostics on stderr. JSON result bodies
376
- remain on stdout. From 0.2.14, scripts must handle these nonzero JSON statuses rather than
377
- assuming that parseable JSON implies success. `--commit-range` accepts one Git revision
378
- expression (for example `HEAD~1`, `main..feature` or `origin/main...HEAD`), not Git options
379
- or multiple shell-separated revisions.
380
-
381
- #### GitHub Actions Workflow
382
- Add `.github/workflows/jev-lint.yml` to your repository:
383
-
384
- ```yaml
385
- name: Jev Semantic Linter
386
-
387
- on:
388
- pull_request:
389
- branches: [main, master]
390
-
391
- jobs:
392
- semantic-lint:
393
- runs-on: ubuntu-latest
394
- steps:
395
- - uses: actions/checkout@v4
396
- with:
397
- fetch-depth: 0
398
- - uses: actions/setup-node@v4
399
- with:
400
- node-version: 22
401
- - run: npm ci
402
- - run: npx jev-dev lint semantic --commit-range origin/main...HEAD --advisory
403
- env:
404
- TYPESAFE_API_KEY: ${{ secrets.TYPESAFE_API_KEY }}
405
- OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }}
406
- ```
407
-
408
- Built-in rules:
409
- * `insecure_secret_handling`: Detects hardcoded secrets, private keys, or leaked tokens.
410
- * `dangerous_migration`: Blocks destructive database operations (`DROP TABLE`, `TRUNCATE`).
411
- * `ui_domain_mixing`: Prevents raw SQL queries inside React / UI components.
412
- * `auth_boundary_change`: Flags changes to authentication and permission guards.
413
- * `manual_generated_edit`: Flags manual edits to auto-generated or compiled code.
414
- * `missing_tests`: Requires automated test coverage for new business logic.
415
-
416
- ---
417
-
418
- ## ๐Ÿ”Œ Model Context Protocol (MCP) Server
419
-
420
- `jev-dev-harness` includes an official Model Context Protocol (MCP) server running over stdio (`@modelcontextprotocol/sdk`). This allows **Cursor**, **Claude Desktop**, **Antigravity**, and any MCP-compatible agent to natively invoke Jev capabilities as first-class tools.
421
-
422
- ### Available MCP Tools
423
-
424
- 1. **`jev_rank_context`**: Intelligent context selector that ranks codebase files by relevance for a given task, with factual counts and usage; savings are not measured.
425
- 2. **`jev_guard_check`**: Pre-execution security filter that classifies shell commands (`read-only`, `modify-local`, `destructive-local`, `network`, `production-sensitive`) and blocks risky execution.
426
- 3. **`jev_review_patch`**: Fast patch auditor that checks git diffs for regressions, scope creep, auth/database modifications, and exposed secrets.
427
- 4. **`jev_lint_semantic`**: Semantic architectural linter that tests diffs against modularity, security, and migration rules.
428
-
429
- ### Running the MCP Server
430
-
431
- ```bash
432
- # Instant zero-install run via npx:
433
- npx -y jev-dev-harness
434
-
435
- # Or if installed globally (`npm i -g jev-dev-harness`):
436
- jev-mcp
437
- ```
438
-
439
- ### Configuration Examples
440
-
441
- #### 1. Claude Desktop (`claude_desktop_config.json`)
442
- Add to your Claude Desktop configuration (`%APPDATA%\Claude\claude_desktop_config.json` on Windows or `~/Library/Application Support/Claude/claude_desktop_config.json` on macOS):
443
-
444
- ```json
445
- {
446
- "mcpServers": {
447
- "jev-dev": {
448
- "command": "npx",
449
- "args": ["-y", "jev-dev-harness"],
450
- "env": {
451
- "TYPESAFE_API_KEY": "your-typesafe-or-openrouter-key"
452
- }
453
- }
454
- }
455
- }
456
- ```
457
-
458
- #### 2. Cursor (`.cursor/mcp.json`)
459
- Add to `.cursor/mcp.json` in your project root or global Cursor settings:
460
-
461
- ```json
462
- {
463
- "mcpServers": {
464
- "jev-dev": {
465
- "command": "npx",
466
- "args": ["-y", "jev-dev-harness"],
467
- "env": {
468
- "TYPESAFE_API_KEY": "${env:TYPESAFE_API_KEY}"
469
- }
470
- }
471
- }
472
- }
473
- ```
474
-
475
- #### 3. Codex Desktop (`config.toml`)
476
- Add to `~/.codex/config.toml` (e.g. `C:\Users\<user>\.codex\config.toml` on Windows):
477
-
478
- ```toml
479
- [mcp_servers.jev_dev]
480
- command = "npx"
481
- args = ["-y", "jev-dev-harness"]
482
- startup_timeout_sec = 60.0
483
-
484
- [mcp_servers.jev_dev.env]
485
- TYPESAFE_API_KEY = "your-typesafe-or-openrouter-key"
486
-
487
- [mcp_servers.jev_dev.tools.jev_rank_context]
488
- approval_mode = "approve"
489
-
490
- [mcp_servers.jev_dev.tools.jev_guard_check]
491
- approval_mode = "approve"
492
-
493
- [mcp_servers.jev_dev.tools.jev_review_patch]
494
- approval_mode = "approve"
495
-
496
- [mcp_servers.jev_dev.tools.jev_lint_semantic]
497
- approval_mode = "approve"
498
- ```
499
-
500
- #### 4. Antigravity Desktop (`mcp_config.json`)
501
- Add to `~/.gemini/antigravity/mcp_config.json`:
502
-
503
- ```json
504
- {
505
- "mcpServers": {
506
- "jev-dev": {
507
- "command": "npx",
508
- "args": ["-y", "jev-dev-harness"],
509
- "env": {
510
- "TYPESAFE_API_KEY": "your-typesafe-or-openrouter-key"
511
- }
512
- }
513
- }
514
- }
515
- ```
516
-
517
- ---
518
-
519
- ## ๐Ÿค– Integration with AI Coding Agents & Rule Files
520
-
521
- `jev-dev-harness` ships with official agent rules and skills for all major coding agents and extensions:
522
-
523
- * `jev-context-ranker`: Instructs agents to rank context before loading files.
524
- * `jev-tool-guard`: Instructs agents to verify shell commands before execution.
525
- * `jev-patch-reviewer`: Instructs agents to audit git diffs before completing tasks.
526
-
527
- ### ๐Ÿ“‹ Supported IDEs & Agent Rule Files
528
- The harness automatically generates and audits 7 dedicated agent instruction files so that agents adhere strictly to pre-execution checks and efficiency reporting:
529
-
530
- | Agent / Extension | Rule File | Purpose |
531
- | :--- | :--- | :--- |
532
- | **Antigravity IDE** | `GEMINI.md` | Injected into Gemini/Antigravity coding sessions |
533
- | **Codex (Desktop & VS Code)** | `CODEX.md` | Injected into Codex agent workspaces |
534
- | **Claude Code** | `CLAUDE.md` | Injected into Claude Code CLI & desktop prompts |
535
- | **VS Code (Cline & Roo Code)** | `.clinerules` | Injected into Cline and Roo Code tasks |
536
- | **Cursor** | `.cursorrules` | Injected into Cursor Composer & chat |
537
- | **Windsurf (Codeium)** | `.windsurfrules` | Injected into Cascade agent prompts |
538
- | **GitHub Copilot (VS Code)** | `.github/copilot-instructions.md` | Injected into Copilot Chat & Agent Mode |
539
-
540
- Generate all rules in your project in 1 second:
541
- ```bash
542
- jev-dev doctor --init-rules
543
- ```
544
-
545
- ### โšก Post-Task Savings & Efficiency Telemetry
546
-
547
- When an AI coding agent (such as **Codex**, **Antigravity**, **Claude Code**, **Cline**, or **Cursor**) invokes `jev_rank_context`, `jev_guard_check`, or `jev_review_patch`, the MCP server automatically returns real-time efficiency metrics (`efficiencyReport`) along with agent instructions.
548
-
549
- Agents report observed counts and usage, distinguishing unknown savings from measured execution:
550
-
551
- ```markdown
552
- ### โšก Eficiรชncia Jev
553
- - **Contexto:** entradas encontradas; candidatos apรณs filtros; candidatos avaliados; arquivos selecionados.
554
- - **Modelo e uso:** provider/modelo, cache, chamadas novas, tokens reportados e custo com cobertura; custo ausente: nรฃo informado.
555
- - **Execuรงรฃo:** latรชncia e fallback; auditorias apenas quando executadas, com seu escopo.
556
- - **Economia de tokens/dinheiro:** nรฃo medida sem baseline vรกlido.
557
- ```
558
-
559
- ### ๐ŸŒ Live Telemetry Web Dashboard (`jev-dev dashboard`)
560
-
561
- For measured comparisons of actual Codex task runs, use `jev-dev efficiency list`
562
- and `jev-dev efficiency compare --manifest comparison.json`, or MCP
563
- `jev_compare_usage`. Collection of additional Jev usage is opt-in by run ID.
564
- See the [measured usage workflow](docs/jev/MEASURED-USAGE.md); valid baselines and
565
- validation receipts are required. Costs and net usage stay unknown without full
566
- coverage. Original ranking reports do not claim per-task savings automatically.
567
-
568
- For Antigravity, TRAE, Cursor, VS Code extensions and other CLIs, use the
569
- [multi-harness usage bridge](docs/jev/MULTI-HARNESS-USAGE.md): provider adapters,
570
- `jev-dev efficiency import`, MCP `jev_import_usage` and optional proxy capture.
571
- Main-agent usage requires an actual export/hook or configurable provider endpoint;
572
- the MCP connection alone cannot measure private client inference.
573
-
574
- For the SDK 0.7 migration, nullable token contract and the controlled Jev 1.14
575
- smoke evaluation, see [model evaluation](docs/jev/JEV-1.14-EVALUATION.md).
576
- The native default remains pinned to Jev 1.13.0; this update does not promote 1.14.
577
-
578
- Inspect observed usage, cache reuse and recorded operations. Token/money savings have no measured baseline.
579
-
580
- Launch the live telemetry web dashboard anytime:
581
-
582
- ```bash
583
- # Launch live dashboard on http://localhost:3741:
584
- npx -y jev-dev dashboard
585
-
586
- # Or specify a custom port / headless mode:
587
- npx -y jev-dev dashboard --port 8790 --no-open
588
-
589
- # Output aggregated metrics to JSON (for CI or telemetry tracking):
590
- npx -y jev-dev dashboard --json
591
- ```
592
-
593
- <p align="center">
594
- <img src="docs/images/dashboard-preview.png" alt="Jev Developer Harness Live Telemetry Web Dashboard" width="100%" />
595
- </p>
596
-
597
- **Dashboard Features:**
598
- * ๐ŸŸข **Active Telemetry & Protection Banner:** Live connection indicator showing active coding agents (Codex Desktop, Antigravity, Claude Code, Trae, VS Code).
599
- * ๐Ÿท๏ธ **Platform Origin Detection & Badges:** Dedicated visual badges displaying which agent/IDE triggered each tool call (Codex, Antigravity, Claude Code, Trae, VS Code Cline/Roo Code, or Terminal CLI).
600
- * ๐Ÿ”„ **Real-Time Cross-Process Sync:** Server-Sent Events (SSE) and file synchronizer (<500ms) with zero latency impact on agent workflows.
601
- * ๐ŸŒ **Bilingual Interface (i18n):** Instant toggle between English (`US EN`) and Portuguese (`BR PT`).
602
- * ๐Ÿ“Š **Live Key Metrics:** Real-time counters for Agent Ops, unknown savings, reported context usage with coverage, Avg & p95 Latency, Tool Guard Interceptions, and Patch Audits.
603
- * ๐Ÿ“ˆ **Request Distribution & Gate Verdicts:** Visual breakdown of operations handled by Jev across your workspace.
604
- * โšก **Live Operations Stream:** Real-time stream displaying every tool call made by your agent with latency, file/tool counts, and security verdicts.
605
- * ๐Ÿงฎ **ROI & Benchmark Simulator:** Integrated team size & pricing calculator using fixed hypothetical assumptions; it is not measured telemetry.
606
-
607
- ---
608
-
609
- ## โš™๏ธ Environment Variables
610
-
611
- Create a `.env` file or export environment variables:
612
-
613
- | Variable | Description |
614
- | :--- | :--- |
615
- | `TYPESAFE_API_KEY` or `JEV_API_KEY` | Official TypeSafe AI API key (enables native Jev System One). |
616
- | `AI_GATEWAY_API_KEY` | Vercel AI Gateway API key (enables TypeSafe Jev via Vercel AI Gateway). |
617
- | `OPENROUTER_API_KEY` | OpenRouter API key (enables LLM emulation mode, e.g. `deepseek/deepseek-v4-flash`). |
618
- | `JEV_PROVIDER` | Force provider: `typesafe`, `vercel`, or `openrouter`. |
619
- | `OPENROUTER_MODEL` | Custom OpenRouter model slug (default: `deepseek/deepseek-v4-flash`). |
620
- | `OPENROUTER_EFFORT` | Reasoning effort for supported models (`low`, `medium`, `high`). |
621
-
622
- ---
623
-
624
- ## ๐Ÿงช Testing
625
-
626
- The repository features comprehensive integration and unit test suites:
627
-
628
- ```bash
629
- # Run full Vitest test suite (142 tests across 22 test suites)
630
- npm test
631
-
632
- # Run benchmark suite (precision, recall, file selection counts)
633
- npm run bench
634
-
635
- # Run TypeScript typecheck
636
- npm run typecheck
637
- ```
638
-
639
- ---
640
-
641
- ## ๐Ÿงน Clean Uninstallation & Teardown
642
-
643
- If you ever wish to completely remove `jev-dev-harness` from your machine and coding agents, run:
644
-
645
- ```bash
646
- # Interactive uninstaller (confirms each step):
647
- jev-dev uninstall
648
-
649
- # Or completely purge everything without prompts:
650
- jev-dev uninstall --purge --global --rules
651
- ```
652
-
653
- **What it cleanly removes:**
654
- * Removes Jev MCP configurations from all IDEs (Codex, Antigravity, Claude, Cursor, Windsurf, Trae, VSCode).
655
- * Removes git pre-commit safety hooks in the local repository.
656
- * Purges the global `~/.jev-dev/` data and telemetry directory.
657
- * Optionally removes workspace agent rule files (`GEMINI.md`, `CLAUDE.md`, `.cursorrules`).
658
- * Optionally uninstalls the global npm package (`npm uninstall -g jev-dev-harness`).
659
-
660
- ---
661
-
662
- ## ๐Ÿ“„ License
663
-
664
- This project is licensed under the [MIT License](LICENSE).
1
+ <p align="center">
2
+ <img src="./assets/logo.png" alt="Jev Developer Harness Logo" width="220" style="border-radius: 20px; box-shadow: 0 8px 32px rgba(37, 99, 235, 0.25);" />
3
+ </p>
4
+
5
+ <h1 align="center">Jev Developer Harness</h1>
6
+
7
+ <p align="center">
8
+ <strong>The Ultimate Runtime Safety, Token-Reduction, and Intelligence Harness for AI Coding Agents</strong>
9
+ </p>
10
+
11
+ <p align="center">
12
+ <a href="https://www.npmjs.com/package/jev-dev-harness"><img src="https://img.shields.io/npm/v/jev-dev-harness.svg?color=cb3837" alt="npm version" /></a>
13
+ <img src="https://img.shields.io/badge/tests-142%20passing-brightgreen.svg" alt="Tests" />
14
+ <img src="https://img.shields.io/badge/TypeScript-5.8-blue.svg" alt="TypeScript" />
15
+ <img src="https://img.shields.io/badge/Node.js-22+-green.svg" alt="Node" />
16
+ <a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License: MIT" /></a>
17
+ <a href="https://typesafe.ai"><img src="https://img.shields.io/badge/Powered%20By-TypeSafe%20AI%20%2F%20Jev-purple.svg" alt="TypeSafe AI" /></a>
18
+ </p>
19
+
20
+ > **An open-source developer harness and runtime safety toolkit for AI coding agents (Antigravity, Codex, Claude Code, Cursor, VSCode, Aider) powered by TypeSafe AI / Jev.**
21
+
22
+ ---
23
+
24
+ ## ๐Ÿš€ Why Jev Developer Harness?
25
+
26
+ Large Language Models (LLMs) are exceptional at generative synthesis and reasoning, but using them for high-volume context filtering, safety guardrails, and patch triage is **slow, expensive, and prone to context window dilution**.
27
+
28
+ **TypeSafe AI's Jev** is a specialized "System One" decision engine. Rather than generating chat text, it evaluates application state and natural language against typed, calibrated questions (`noul`, `score`, `choice`) with sub-second latency and consistent probabilities.
29
+
30
+ `jev-dev-harness` bridges the gap between coding agents and codebase safety:
31
+
32
+ ```
33
+ AI Coding Agent (Codex, Antigravity, Claude Code)
34
+ โ”‚
35
+ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
36
+ โ–ผ โ–ผ โ–ผ
37
+ [Context Ranker] [Tool Call Guard] [Patch Reviewer]
38
+ Selects surgical 3-5 Intercepts shell commands Audits git diffs before
39
+ relevant files (ranked) with measured latency commits (secrets, scope, auth)
40
+ โ”‚ โ”‚ โ”‚
41
+ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
42
+ โ–ผ
43
+ [Semantic Linter in CI]
44
+ Enforces architectural drift
45
+ and safety rules in GitHub PRs
46
+ ```
47
+
48
+ ---
49
+
50
+ ## ๐Ÿ“Š Benchmark & Performance: With vs. Without Jev Harness
51
+
52
+ How much faster, cheaper, and safer is programming with an AI coding agent (Codex, Antigravity, Claude Code, Cursor) when using `jev-dev-harness`?
53
+
54
+ <p align="center">
55
+ <img src="docs/images/dashboard-roi-preview.png" alt="Jev Developer Harness ROI & Benchmark Simulator" width="100%" />
56
+ </p>
57
+
58
+ ### ๐Ÿ’ก Key Benchmarks at a Glance
59
+
60
+ The following legacy comparison values are hypothetical assumptions, not measured benchmarks or savings. No valid token/cost baseline has been collected.
61
+
62
+ | Metric | Without Jev (Vanilla Agent) | With Jev Developer Harness | Impact / Savings |
63
+ | :--- | :--- | :--- | :--- |
64
+ | **Context Tokens / Task** | ~75,000 - 120,000 tokens | 4,200 - 7,800 tokens | **92.4% token cut** |
65
+ | **Turnaround Latency** | 25 - 50 seconds | 4 - 8 seconds | **5x faster completion** |
66
+ | **Files Loaded into Context**| 35 - 90 files (noise bloat) | 3 - 5 surgical files | **88.2% less pollution** |
67
+ | **Command Safety Guard** | None (LLM executes blind) | &lt;1ms deterministic gate | **100% blocks destructive cmds** |
68
+ | **Patch & Diff Audit** | Manual or 3-min CI wait | ~750ms System One hook | **Catches secrets & regressions** |
69
+ | **Est. Cost (5 devs)** | ~$1,400 / month | ~$107 / month | **$15,500+ / year saved** |
70
+
71
+ ### ๐Ÿ“Ÿ Real-Time Terminal Benchmark (`jev-dev compare`)
72
+
73
+ Run the hypothetical simulation anytime in your terminal with zero install:
74
+
75
+ ```bash
76
+ npx -y jev-dev compare
77
+ ```
78
+
79
+ <p align="center">
80
+ <img src="docs/images/cli-compare-preview.png" alt="Jev CLI Compare Benchmark Terminal" width="100%" />
81
+ </p>
82
+
83
+ ---
84
+
85
+ ## โšก Key Modules & CLI Commands
86
+
87
+ Maintainers: see [the release guide](docs/RELEASING.md) for version checks,
88
+ Git release tags and publishing to npm `latest`. Release notes are in
89
+ [CHANGELOG.md](CHANGELOG.md).
90
+
91
+ | Module / Command | Purpose |
92
+ | :--- | :--- |
93
+ | `jev-dev version` | Inspects currently installed harness version, latest on npm registry, package path, runtime details, and install type. |
94
+ | `jev-dev context rank` | Selects the top 3-5 crucial files for a task, reporting selection counts and validated response usage. |
95
+ | `jev-dev guard check` | Intercepts commands in <1ms, categorizing operations into `read-only`, `modify-local`, `destructive-local`, `network`, or `production-sensitive`. |
96
+ | `jev-dev patch review` | Fast triage of git diffs before commit/PR. Detects scope creep, credential exposure, database mutations, and missing tests. |
97
+ | `jev-dev lint semantic` | Automated architectural drift detection in GitHub Actions CI (prevents UI/database mixing, dangerous migrations, etc.). |
98
+ | `jev-dev hooks install` | 1-click installer for git pre-commit safety gate. Blocks commits containing leaked credentials or critical regression risk. |
99
+ | `jev-dev mcp` | Standard Model Context Protocol (stdio) exposing all 4 tools to Cursor, Claude Desktop, Antigravity, VS Code. |
100
+ | `jev-dev compare` | Hypothetical simulation (not measured telemetry) of token and cost assumptions with vs. without Jev. |
101
+ | `jev-dev dashboard` | Real-time web dashboard with SSE streaming, platform origin detection, and interactive ROI simulator. |
102
+ | `jev-dev doctor` | System health check: AI connectivity ping, MCP integrations, telemetry status, and auto-generates 7 agent rule files (`--init-rules`). |
103
+ | `jev-dev setup` | 1-minute interactive CLI wizard to configure providers and auto-register agents. Supports `-y` for non-interactive execution. |
104
+ | `jev-dev provider` | Inspects or switches the active AI provider (`typesafe`, `vercel`, `openrouter`, `offline`) on the fly. |
105
+ | `jev-dev update` | 1-click upgrade to the latest npm release, with smart cache eviction and non-blocking notifications. |
106
+ | `jev-dev uninstall` | 1-click clean uninstaller. Removes all MCP entries across IDEs, git hooks, rule files, and `~/.jev-dev` data. |
107
+
108
+ ---
109
+
110
+ ## ๐Ÿ”‘ Providers: Native TypeSafe, Vercel & OpenRouter
111
+
112
+ `jev-dev-harness` is designed to be accessible to everyone:
113
+
114
+ 1. **Native TypeSafe AI (Recommended)**:
115
+ * Direct integration with TypeSafe's Jev System One model.
116
+ * Calibrated probabilities, native discrete choices, and extreme low-latency evaluation.
117
+ * ๐Ÿ‘‰ **Generate API Key:** [https://typesafe.ai](https://typesafe.ai) (Dashboard: [https://typesafe.ai/dashboard](https://typesafe.ai/dashboard))
118
+ * Automatically activated when `TYPESAFE_API_KEY` (or `JEV_API_KEY`) is set.
119
+ 2. **Vercel AI Gateway (Free Tier Credits & Managed)**:
120
+ * Direct access to TypeSafe AI's Jev model through Vercel's managed AI Gateway (`https://ai-gateway.vercel.sh/typesafe`).
121
+ * Takes advantage of Vercel's free credit allowance and free output tokens with zero markup.
122
+ * ๐Ÿ‘‰ **Generate API Key:** [https://vercel.com/d/ai-gateway](https://vercel.com/d/ai-gateway) (Vercel Dashboard โ†’ AI Gateway โ†’ API Keys)
123
+ * Automatically activated when `AI_GATEWAY_API_KEY` (or `VERCEL_AI_GATEWAY_KEY` / `VERCEL_OIDC_TOKEN`) is configured.
124
+ 3. **OpenRouter (Native Jev & Explicit LLM Emulation)**:
125
+ * Defaults to `typesafe/jev-1.14` through `/api/v1/systemone`, with runtime validation and a bounded deadline. Existing explicit model settings are preserved.
126
+ * Other explicitly selected models use chat emulation and are labeled separately. Jev failures return deterministic fallback, never a silent model switch.
127
+ * See [native OpenRouter setup, cache, metrics and evaluation](docs/jev/OPENROUTER-NATIVE.md).
128
+ * ๐Ÿ‘‰ **Generate API Key:** [https://openrouter.ai/keys](https://openrouter.ai/keys)
129
+ * Automatically activated when `OPENROUTER_API_KEY` (or keys starting with `sk-or-`) is configured.
130
+ 4. **Deterministic Offline Fallback**:
131
+ * If offline or no API keys are provided, the harness automatically falls back to regex and heuristic analysis. **Your coding agents are never blocked by API downtime.**
132
+
133
+ ---
134
+
135
+ ## ๐Ÿ“ฆ Installation & Quickstart
136
+
137
+ ### ๐Ÿš€ 1-Minute Interactive Setup Wizard (Recommended)
138
+
139
+ Configure your API keys (TypeSafe AI or OpenRouter) and automatically register the MCP server with your coding agent (Codex, Antigravity, Claude, Cursor) with a single command:
140
+
141
+ ```bash
142
+ # Zero-install interactive wizard:
143
+ npx -y jev-dev setup
144
+
145
+ # Or if installed globally:
146
+ npm install -g jev-dev-harness
147
+ jev-dev setup
148
+ ```
149
+
150
+ The wizard guides you through:
151
+ 1. **Provider Selection:** Native TypeSafe AI (Recommended), Vercel AI Gateway (Free Tier), OpenRouter (native Jev, or an explicitly selected chat model), or Offline mode.
152
+ 2. **API Key Input:** Securely paste your key (automatically validated with a live connection ping).
153
+ 3. **Global CLI Availability:** Automatically saves to `.env` and `~/.jev-dev/config.json`, making `jev-dev` commands available in **any directory on your system**.
154
+ 4. **Multi-Agent Auto-Configuration:** Automatically detects and registers the Jev MCP server across all installed coding agents on your machine:
155
+ * **Codex Desktop** (`~/.codex/config.toml`)
156
+ * **Claude Desktop** (`claude_desktop_config.json`)
157
+ * **Antigravity IDE** (`~/.gemini/antigravity/mcp_config.json`)
158
+ * **Cursor** (`~/.cursor/mcp.json`)
159
+ * **Windsurf** (`~/.codeium/windsurf/mcp_config.json`)
160
+ * **Trae** (`~/.trae/mcp.json`)
161
+
162
+ ---
163
+
164
+ ### ๐Ÿ”€ Switching AI Providers on the Fly
165
+
166
+ You can inspect or switch your active provider at any time without losing your saved keys:
167
+
168
+ ```bash
169
+ # Check current active provider & live latency:
170
+ npx -y jev-dev provider
171
+
172
+ # Switch instantly to Vercel AI Gateway (Free Tier):
173
+ npx -y jev-dev provider vercel
174
+
175
+ # Switch back to native TypeSafe AI:
176
+ npx -y jev-dev provider typesafe
177
+
178
+ # Switch to OpenRouter or Offline:
179
+ npx -y jev-dev provider openrouter
180
+ npx -y jev-dev provider offline
181
+
182
+ # Or run the full interactive wizard:
183
+ npx -y jev-dev setup
184
+ ```
185
+
186
+ ---
187
+
188
+ ### Option 1: Run instantly with npx (No install needed)
189
+
190
+ ```bash
191
+ # Interactive setup wizard
192
+ npx -y jev-dev setup
193
+
194
+ # Open real-time Live Telemetry web dashboard
195
+ npx -y jev-dev dashboard
196
+
197
+ # Live ROI & benchmark comparison
198
+ npx -y jev-dev compare
199
+
200
+ # Run CLI commands directly
201
+ npx -y jev-dev context rank --task "My task"
202
+ npx -y jev-dev guard check --command "git status"
203
+
204
+ # Run stdio MCP server directly for agents
205
+ npx -y jev-dev-harness
206
+ ```
207
+
208
+ ### Option 2: Global CLI via npm
209
+
210
+ ```bash
211
+ npm install -g jev-dev-harness
212
+
213
+ # Now available globally anywhere on your system:
214
+ jev-dev setup # Run the setup wizard
215
+ jev-dev dashboard # Open live telemetry dashboard
216
+ jev-dev compare # View ROI and benchmarks
217
+ jev-dev update # Upgrade to latest npm version
218
+ jev-dev --help # View all commands
219
+ jev-mcp # Launch the MCP server
220
+ ```
221
+
222
+ ### Option 3: From Source (Developers & Contributors)
223
+
224
+ ```bash
225
+ git clone https://github.com/celolopes/jev-dev-harness.git
226
+ cd jev-dev-harness
227
+ npm install
228
+ npm run build
229
+ npm link
230
+ ```
231
+
232
+ ---
233
+
234
+ ## ๐Ÿ› ๏ธ Usage Guide
235
+
236
+ ### 1. Context Ranker (`context rank`)
237
+ Narrow down an entire codebase to the exact files needed for a prompt:
238
+
239
+ ```bash
240
+ # Formatted human output
241
+ jev-dev context rank --task "Implement JWT authentication token refresh and logout routes" --path .
242
+
243
+ # Machine-readable JSON (ideal for AI coding agents)
244
+ jev-dev context rank --task "Implement JWT authentication" --top 5 --json
245
+ ```
246
+
247
+ Output example:
248
+ ```json
249
+ {
250
+ "task": "Implement JWT authentication",
251
+ "selected": [
252
+ {
253
+ "path": "src/auth/jwt.ts",
254
+ "score": 0.94,
255
+ "confidence": 0.92,
256
+ "role": "implementation",
257
+ "reason": "Jev: Crucial (95% match, role: implementation) + heuristic: 92%"
258
+ },
259
+ {
260
+ "path": "tests/auth/jwt.test.ts",
261
+ "score": 0.84,
262
+ "confidence": 0.90,
263
+ "role": "test",
264
+ "reason": "Jev: Highly Relevant (85% match, role: test) + heuristic: 82%"
265
+ }
266
+ ],
267
+ "metrics": {
268
+ "initialCandidates": 240,
269
+ "filteredCandidates": 14,
270
+ "tokensSent": 950,
271
+ "latencyMs": 280
272
+ }
273
+ }
274
+ ```
275
+
276
+ ---
277
+
278
+ ### 2. Tool Call Guard (`guard check`)
279
+ Inspect shell commands before execution to prevent accidental file deletion or production outages:
280
+
281
+ ```bash
282
+ # Safe read-only inspection -> ALLOWED immediately
283
+ jev-dev guard check --command "git status"
284
+
285
+ # Destructive command -> BLOCKED (Requires confirmation)
286
+ jev-dev guard check --command "git reset --hard HEAD~1"
287
+
288
+ # Production cloud command -> BLOCKED (Critical safety risk)
289
+ jev-dev guard check --command "gcloud compute instances delete prod-server"
290
+
291
+ # Authorize network operations explicitly if intended
292
+ jev-dev guard check --command "git push origin main" --allow-network
293
+ ```
294
+
295
+ ---
296
+
297
+ ### 3. Patch Reviewer (`patch review`)
298
+ Audit a patch or git diff before committing:
299
+
300
+ ```bash
301
+ # Review uncommitted working tree changes
302
+ jev-dev patch review --task "Refactor authentication session handling"
303
+
304
+ # Review staged changes
305
+ jev-dev patch review --staged --task "Fix invoice tax calculation"
306
+
307
+ # Review a specific commit range
308
+ jev-dev patch review --commit-range HEAD~1 --task "Database migration"
309
+ ```
310
+
311
+ Output:
312
+ ```
313
+ =======================================================
314
+ JEV PATCH REVIEWER (PHASE 3)
315
+ =======================================================
316
+
317
+ Task: Fix invoice tax calculation
318
+ Status: [APPROVED] (Risk Score: 12.0/100)
319
+ Diff Stats: 2 file(s), +24 / -3 lines
320
+
321
+ --- JUDGMENTS BREAKDOWN ---
322
+ Regression Risk: 1.0 / 4.0
323
+ Out Of Scope: 5%
324
+ Modifies Auth: 0%
325
+ Modifies Database: 0%
326
+ Missing Tests: 10%
327
+ Exposes Secrets: 0%
328
+ Confidence: 92%
329
+ =======================================================
330
+ ```
331
+
332
+ ---
333
+
334
+ ### 4. Git Pre-Commit Hook (`hooks install`)
335
+ Protect your repository automatically on every `git commit`:
336
+
337
+ ```bash
338
+ # Default installation (fail-open: warns and permits commit if CLI is unavailable)
339
+ jev-dev hooks install
340
+
341
+ # Strict security installation (fail-closed: rejects commit if CLI fails to execute)
342
+ jev-dev hooks install --policy fail-closed
343
+
344
+ # Force overwrite existing hook
345
+ jev-dev hooks install --force
346
+ ```
347
+
348
+ Whenever you run `git commit`, the hook evaluates your staged diff:
349
+ * If secrets, private keys, or catastrophic regressions are detected, **the commit is aborted** (`exit 1`).
350
+ * If clean, the commit proceeds instantly.
351
+ * **Failure Policies**: Defaults to `fail-open` for backward compatibility. Use `--policy fail-closed` or set `JEV_HOOK_FAILURE_POLICY=fail-closed` for strict environments.
352
+ * To uninstall: `jev-dev hooks uninstall` (preserves non-Jev user hooks unless `--force` is passed).
353
+
354
+ ---
355
+
356
+ ### 5. Semantic Linter in CI (`lint semantic`)
357
+ Prevent architectural drift in pull requests:
358
+
359
+ ```bash
360
+ # Run locally over staged changes
361
+ jev-dev lint semantic --staged
362
+
363
+ # Run in advisory mode (report findings without breaking build)
364
+ jev-dev lint semantic --commit-range origin/main...HEAD --advisory
365
+ ```
366
+
367
+ CLI exit codes are identical with and without `--json`:
368
+
369
+ | Command | Exit status |
370
+ |---|---|
371
+ | `patch review` | `2` for `BLOCK_HUMAN_REQUIRED`; `0` for approved or escalated review |
372
+ | `guard check` | `1` when denied and confirmation is required; otherwise `0` |
373
+ | `lint semantic` | `1` for failed checks; `--advisory` findings retain `0` |
374
+
375
+ Execution and argument errors return `1` with diagnostics on stderr. JSON result bodies
376
+ remain on stdout. From 0.2.14, scripts must handle these nonzero JSON statuses rather than
377
+ assuming that parseable JSON implies success. `--commit-range` accepts one Git revision
378
+ expression (for example `HEAD~1`, `main..feature` or `origin/main...HEAD`), not Git options
379
+ or multiple shell-separated revisions.
380
+
381
+ #### GitHub Actions Workflow
382
+ Add `.github/workflows/jev-lint.yml` to your repository:
383
+
384
+ ```yaml
385
+ name: Jev Semantic Linter
386
+
387
+ on:
388
+ pull_request:
389
+ branches: [main, master]
390
+
391
+ jobs:
392
+ semantic-lint:
393
+ runs-on: ubuntu-latest
394
+ steps:
395
+ - uses: actions/checkout@v4
396
+ with:
397
+ fetch-depth: 0
398
+ - uses: actions/setup-node@v4
399
+ with:
400
+ node-version: 22
401
+ - run: npm ci
402
+ - run: npx jev-dev lint semantic --commit-range origin/main...HEAD --advisory
403
+ env:
404
+ TYPESAFE_API_KEY: ${{ secrets.TYPESAFE_API_KEY }}
405
+ OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }}
406
+ ```
407
+
408
+ Built-in rules:
409
+ * `insecure_secret_handling`: Detects hardcoded secrets, private keys, or leaked tokens.
410
+ * `dangerous_migration`: Blocks destructive database operations (`DROP TABLE`, `TRUNCATE`).
411
+ * `ui_domain_mixing`: Prevents raw SQL queries inside React / UI components.
412
+ * `auth_boundary_change`: Flags changes to authentication and permission guards.
413
+ * `manual_generated_edit`: Flags manual edits to auto-generated or compiled code.
414
+ * `missing_tests`: Requires automated test coverage for new business logic.
415
+
416
+ ---
417
+
418
+ ## ๐Ÿ”Œ Model Context Protocol (MCP) Server
419
+
420
+ `jev-dev-harness` includes an official Model Context Protocol (MCP) server running over stdio (`@modelcontextprotocol/sdk`). This allows **Cursor**, **Claude Desktop**, **Antigravity**, and any MCP-compatible agent to natively invoke Jev capabilities as first-class tools.
421
+
422
+ ### Available MCP Tools
423
+
424
+ 1. **`jev_rank_context`**: Intelligent context selector that ranks codebase files by relevance for a given task, with factual counts and usage; savings are not measured.
425
+ 2. **`jev_guard_check`**: Pre-execution security filter that classifies shell commands (`read-only`, `modify-local`, `destructive-local`, `network`, `production-sensitive`) and blocks risky execution.
426
+ 3. **`jev_review_patch`**: Fast patch auditor that checks git diffs for regressions, scope creep, auth/database modifications, and exposed secrets.
427
+ 4. **`jev_lint_semantic`**: Semantic architectural linter that tests diffs against modularity, security, and migration rules.
428
+
429
+ ### Running the MCP Server
430
+
431
+ ```bash
432
+ # Instant zero-install run via npx:
433
+ npx -y jev-dev-harness
434
+
435
+ # Or if installed globally (`npm i -g jev-dev-harness`):
436
+ jev-mcp
437
+ ```
438
+
439
+ ### Configuration Examples
440
+
441
+ #### 1. Claude Desktop (`claude_desktop_config.json`)
442
+ Add to your Claude Desktop configuration (`%APPDATA%\Claude\claude_desktop_config.json` on Windows or `~/Library/Application Support/Claude/claude_desktop_config.json` on macOS):
443
+
444
+ ```json
445
+ {
446
+ "mcpServers": {
447
+ "jev-dev": {
448
+ "command": "npx",
449
+ "args": ["-y", "jev-dev-harness"],
450
+ "env": {
451
+ "TYPESAFE_API_KEY": "your-typesafe-or-openrouter-key"
452
+ }
453
+ }
454
+ }
455
+ }
456
+ ```
457
+
458
+ #### 2. Cursor (`.cursor/mcp.json`)
459
+ Add to `.cursor/mcp.json` in your project root or global Cursor settings:
460
+
461
+ ```json
462
+ {
463
+ "mcpServers": {
464
+ "jev-dev": {
465
+ "command": "npx",
466
+ "args": ["-y", "jev-dev-harness"],
467
+ "env": {
468
+ "TYPESAFE_API_KEY": "${env:TYPESAFE_API_KEY}"
469
+ }
470
+ }
471
+ }
472
+ }
473
+ ```
474
+
475
+ #### 3. Codex Desktop (`config.toml`)
476
+ Add to `~/.codex/config.toml` (e.g. `C:\Users\<user>\.codex\config.toml` on Windows):
477
+
478
+ ```toml
479
+ [mcp_servers.jev_dev]
480
+ command = "npx"
481
+ args = ["-y", "jev-dev-harness"]
482
+ startup_timeout_sec = 60.0
483
+
484
+ [mcp_servers.jev_dev.env]
485
+ TYPESAFE_API_KEY = "your-typesafe-or-openrouter-key"
486
+
487
+ [mcp_servers.jev_dev.tools.jev_rank_context]
488
+ approval_mode = "approve"
489
+
490
+ [mcp_servers.jev_dev.tools.jev_guard_check]
491
+ approval_mode = "approve"
492
+
493
+ [mcp_servers.jev_dev.tools.jev_review_patch]
494
+ approval_mode = "approve"
495
+
496
+ [mcp_servers.jev_dev.tools.jev_lint_semantic]
497
+ approval_mode = "approve"
498
+ ```
499
+
500
+ #### 4. Antigravity Desktop (`mcp_config.json`)
501
+ Add to `~/.gemini/antigravity/mcp_config.json`:
502
+
503
+ ```json
504
+ {
505
+ "mcpServers": {
506
+ "jev-dev": {
507
+ "command": "npx",
508
+ "args": ["-y", "jev-dev-harness"],
509
+ "env": {
510
+ "TYPESAFE_API_KEY": "your-typesafe-or-openrouter-key"
511
+ }
512
+ }
513
+ }
514
+ }
515
+ ```
516
+
517
+ ---
518
+
519
+ ## ๐Ÿค– Integration with AI Coding Agents & Rule Files
520
+
521
+ `jev-dev-harness` ships with official agent rules and skills for all major coding agents and extensions:
522
+
523
+ * `jev-context-ranker`: Instructs agents to rank context before loading files.
524
+ * `jev-tool-guard`: Instructs agents to verify shell commands before execution.
525
+ * `jev-patch-reviewer`: Instructs agents to audit git diffs before completing tasks.
526
+
527
+ ### ๐Ÿ“‹ Supported IDEs & Agent Rule Files
528
+ The harness automatically generates and audits 7 dedicated agent instruction files so that agents adhere strictly to pre-execution checks and efficiency reporting:
529
+
530
+ | Agent / Extension | Rule File | Purpose |
531
+ | :--- | :--- | :--- |
532
+ | **Antigravity IDE** | `GEMINI.md` | Injected into Gemini/Antigravity coding sessions |
533
+ | **Codex (Desktop & VS Code)** | `CODEX.md` | Injected into Codex agent workspaces |
534
+ | **Claude Code** | `CLAUDE.md` | Injected into Claude Code CLI & desktop prompts |
535
+ | **VS Code (Cline & Roo Code)** | `.clinerules` | Injected into Cline and Roo Code tasks |
536
+ | **Cursor** | `.cursorrules` | Injected into Cursor Composer & chat |
537
+ | **Windsurf (Codeium)** | `.windsurfrules` | Injected into Cascade agent prompts |
538
+ | **GitHub Copilot (VS Code)** | `.github/copilot-instructions.md` | Injected into Copilot Chat & Agent Mode |
539
+
540
+ Generate all rules in your project in 1 second:
541
+ ```bash
542
+ jev-dev doctor --init-rules
543
+ ```
544
+
545
+ ### โšก Post-Task Savings & Efficiency Telemetry
546
+
547
+ Context scans use a cooperative 3000 ms filesystem budget by default. Set
548
+ `JEV_SCAN_BUDGET_MS`, pass `--scan-budget-ms` to the CLI, or `scanBudgetMs`
549
+ to the MCP tool to change it. `scanPartial` marks a deadline-limited scan;
550
+ relevant files may be missing, so supplement it with targeted searches. The
551
+ deadline is checked between synchronous filesystem operations, and cannot
552
+ interrupt a blocked operation; scoring and model calls have separate timing.
553
+
554
+ When an AI coding agent (such as **Codex**, **Antigravity**, **Claude Code**, **Cline**, or **Cursor**) invokes `jev_rank_context`, `jev_guard_check`, or `jev_review_patch`, the MCP server automatically returns real-time efficiency metrics (`efficiencyReport`) along with agent instructions.
555
+
556
+ Agents report observed counts and usage, distinguishing unknown savings from measured execution:
557
+
558
+ ```markdown
559
+ ### โšก Eficiรชncia Jev
560
+ - **Contexto:** entradas visitadas, excluindo o conteรบdo de diretรณrios ignorados; candidatos apรณs filtros e avaliados; arquivos selecionados. Entradas nรฃo sรฃo necessariamente arquivos. Em falha ou timeout, relate o ocorrido sem inventar contagens ou causa.
561
+ - **Modelo e uso:** provider/modelo, cache, chamadas novas, tokens reportados e custo com cobertura; uso limitado a respostas validadas, podendo excluir retries e falhas; custo ausente: nรฃo informado.
562
+ - **Execuรงรฃo:** latรชncia, fallback e motivo quando retornados; verificaรงรตes executadas com escopo e resultado.
563
+ - **Economia de tokens/dinheiro:** nรฃo medida sem baseline vรกlido.
564
+ ```
565
+
566
+ ### ๐ŸŒ Live Telemetry Web Dashboard (`jev-dev dashboard`)
567
+
568
+ For measured comparisons of actual Codex task runs, use `jev-dev efficiency list`
569
+ and `jev-dev efficiency compare --manifest comparison.json`, or MCP
570
+ `jev_compare_usage`. Collection of additional Jev usage is opt-in by run ID.
571
+ See the [measured usage workflow](docs/jev/MEASURED-USAGE.md); valid baselines and
572
+ validation receipts are required. Costs and net usage stay unknown without full
573
+ coverage. Original ranking reports do not claim per-task savings automatically.
574
+
575
+ For Antigravity, TRAE, Cursor, VS Code extensions and other CLIs, use the
576
+ [multi-harness usage bridge](docs/jev/MULTI-HARNESS-USAGE.md): provider adapters,
577
+ `jev-dev efficiency import`, MCP `jev_import_usage` and optional proxy capture.
578
+ Main-agent usage requires an actual export/hook or configurable provider endpoint;
579
+ the MCP connection alone cannot measure private client inference.
580
+
581
+ For the SDK 0.7 migration, nullable token contract and the controlled Jev 1.14
582
+ smoke evaluation, see [model evaluation](docs/jev/JEV-1.14-EVALUATION.md).
583
+ The native default remains pinned to Jev 1.13.0; this update does not promote 1.14.
584
+
585
+ Inspect observed usage, cache reuse and recorded operations. Token/money savings have no measured baseline.
586
+
587
+ Launch the live telemetry web dashboard anytime:
588
+
589
+ ```bash
590
+ # Launch live dashboard on http://localhost:3741:
591
+ npx -y jev-dev dashboard
592
+
593
+ # Or specify a custom port / headless mode:
594
+ npx -y jev-dev dashboard --port 8790 --no-open
595
+
596
+ # Output aggregated metrics to JSON (for CI or telemetry tracking):
597
+ npx -y jev-dev dashboard --json
598
+ ```
599
+
600
+ <p align="center">
601
+ <img src="docs/images/dashboard-preview.png" alt="Jev Developer Harness Live Telemetry Web Dashboard" width="100%" />
602
+ </p>
603
+
604
+ **Dashboard Features:**
605
+ * ๐ŸŸข **Active Telemetry & Protection Banner:** Live connection indicator showing active coding agents (Codex Desktop, Antigravity, Claude Code, Trae, VS Code).
606
+ * ๐Ÿท๏ธ **Platform Origin Detection & Badges:** Dedicated visual badges displaying which agent/IDE triggered each tool call (Codex, Antigravity, Claude Code, Trae, VS Code Cline/Roo Code, or Terminal CLI).
607
+ * ๐Ÿ”„ **Real-Time Cross-Process Sync:** Server-Sent Events (SSE) and file synchronizer (<500ms) with zero latency impact on agent workflows.
608
+ * ๐ŸŒ **Bilingual Interface (i18n):** Instant toggle between English (`US EN`) and Portuguese (`BR PT`).
609
+ * ๐Ÿ“Š **Live Key Metrics:** Real-time counters for Agent Ops, unknown savings, reported context usage with coverage, Avg & p95 Latency, Tool Guard Interceptions, and Patch Audits.
610
+ * ๐Ÿ“ˆ **Request Distribution & Gate Verdicts:** Visual breakdown of operations handled by Jev across your workspace.
611
+ * โšก **Live Operations Stream:** Real-time stream displaying every tool call made by your agent with latency, file/tool counts, and security verdicts.
612
+ * ๐Ÿงฎ **ROI & Benchmark Simulator:** Integrated team size & pricing calculator using fixed hypothetical assumptions; it is not measured telemetry.
613
+
614
+ ---
615
+
616
+ ## โš™๏ธ Environment Variables
617
+
618
+ Create a `.env` file or export environment variables:
619
+
620
+ | Variable | Description |
621
+ | :--- | :--- |
622
+ | `TYPESAFE_API_KEY` or `JEV_API_KEY` | Official TypeSafe AI API key (enables native Jev System One). |
623
+ | `AI_GATEWAY_API_KEY` | Vercel AI Gateway API key (enables TypeSafe Jev via Vercel AI Gateway). |
624
+ | `OPENROUTER_API_KEY` | OpenRouter API key (enables LLM emulation mode, e.g. `deepseek/deepseek-v4-flash`). |
625
+ | `JEV_PROVIDER` | Force provider: `typesafe`, `vercel`, or `openrouter`. |
626
+ | `OPENROUTER_MODEL` | Custom OpenRouter model slug (default: `deepseek/deepseek-v4-flash`). |
627
+ | `OPENROUTER_EFFORT` | Reasoning effort for supported models (`low`, `medium`, `high`). |
628
+
629
+ ---
630
+
631
+ ## ๐Ÿงช Testing
632
+
633
+ The repository features comprehensive integration and unit test suites:
634
+
635
+ ```bash
636
+ # Run full Vitest test suite (142 tests across 22 test suites)
637
+ npm test
638
+
639
+ # Run benchmark suite (precision, recall, file selection counts)
640
+ npm run bench
641
+
642
+ # Run TypeScript typecheck
643
+ npm run typecheck
644
+ ```
645
+
646
+ ---
647
+
648
+ ## ๐Ÿงน Clean Uninstallation & Teardown
649
+
650
+ If you ever wish to completely remove `jev-dev-harness` from your machine and coding agents, run:
651
+
652
+ ```bash
653
+ # Interactive uninstaller (confirms each step):
654
+ jev-dev uninstall
655
+
656
+ # Or completely purge everything without prompts:
657
+ jev-dev uninstall --purge --global --rules
658
+ ```
659
+
660
+ **What it cleanly removes:**
661
+ * Removes Jev MCP configurations from all IDEs (Codex, Antigravity, Claude, Cursor, Windsurf, Trae, VSCode).
662
+ * Removes git pre-commit safety hooks in the local repository.
663
+ * Purges the global `~/.jev-dev/` data and telemetry directory.
664
+ * Optionally removes workspace agent rule files (`GEMINI.md`, `CLAUDE.md`, `.cursorrules`).
665
+ * Optionally uninstalls the global npm package (`npm uninstall -g jev-dev-harness`).
666
+
667
+ ---
668
+
669
+ ## ๐Ÿ“„ License
670
+
671
+ This project is licensed under the [MIT License](LICENSE).
672
+
673
+
674
+ ### Jev 1.14 defaults in 0.2.16
675
+
676
+ New unpinned configurations use `jev-1.14.0` (TypeSafe), `typesafe/jev-1.14`
677
+ (OpenRouter), or `typesafe-ai/jev-1.14.0` (Vercel). Existing explicit model settings
678
+ are retained. The change is an owner-selected default, not a benchmark superiority
679
+ claim. See [model defaults, pins and compatibility](docs/jev/JEV-0.2.16-DEFAULTS.md).
680
+
681
+
682
+ ### Explicit Dot / delegated-task review
683
+
684
+ A delegated coding task can invoke `jev-dev delegate review --input request.json`
685
+ (or stdin) for a bounded, command-only offline advisory receipt. It never executes
686
+ or authorizes the operation, calls a remote model, or installs automatic interception.
687
+ See [the versioned envelope and handoff contract](docs/jev/DELEGATED-REVIEW.md).