eval: advisory instruction feedback from Claude Code sessions
`ajieval sessions` pairs each human prompt with what the assistant did just before it, and asks Jev whether the prompt was a correction and which repository rule (AGENTS.md, the aji-jev skill, commit memory) the corrected behaviour broke. Excerpts are truncated and credential-like strings redacted; answers stay in a local log, and each prompt is sent once. `sessions report` proposes clarifying a rule only when corrections pointing to it recur across sessions (thresholds in triage.json); it never edits instructions. `sessions hook` is meant for a personal SessionEnd hook: it returns at once and scans in the background, and does nothing without a TypeSafe key, which may now also come from ~/.config/typesafe/api_key.
This commit is contained in:
1 parent
dde801c653
commit
65e7a0a97c
6 files changed
+352
-4
No files matched your search
@@ -8,6 +8,7 @@
|
||||
python3 -m ajieval classify RUN_DIR --suggest [--auto-accept]
|
||||
python3 -m ajieval triage runs/ [--plan PLAN.json] [--json]
|
||||
python3 -m ajieval calibrate runs/
|
||||
python3 -m ajieval sessions hook|scan TRANSCRIPT|report
|
||||
"""
|
||||
|
||||
import argparse
|
||||
@@ -18,7 +19,7 @@ import sys
|
||||
|
||||
import datetime
|
||||
|
||||
from . import freeze, jev, languages, native, record, report, triage, util
|
||||
from . import freeze, jev, languages, native, record, report, sessions, triage, util
|
||||
|
||||
# Protocol §27 categories and §38 causes; their descriptions (the questions
|
||||
# Jev answers) are defined once, in jev.py.
|
||||
@@ -269,6 +270,13 @@ def main(argv=None):
|
||||
cb.add_argument("--json", action="store_true")
|
||||
cb.set_defaults(fn=triage.main_calibrate)
|
||||
|
||||
se = sub.add_parser("sessions", help="advisory feedback on AGENTS.md, skills and memory from Claude Code session corrections")
|
||||
se.add_argument("action", choices=["hook", "scan", "report"])
|
||||
se.add_argument("transcript", nargs="?", help="scan: a Claude Code transcript (.jsonl)")
|
||||
se.add_argument("--config")
|
||||
se.add_argument("--json", action="store_true")
|
||||
se.set_defaults(fn=sessions.main)
|
||||
|
||||
v = sub.add_parser("vsr", help="B1 §6.1: verified success rate per agent × language with 95 %% Wilson intervals")
|
||||
v.add_argument("paths", nargs="+")
|
||||
v.add_argument("--tasks", help="comma-separated task ids to include (e.g. the medium ones)")
|
||||
|
||||
Reference in new issue
Block a user