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