feat: enable reinforcement on live capture

The Stop hook now sends reinforce=true so the token-overlap matcher
runs on every captured interaction. Memory confidence will accumulate
signal from organic Claude Code use.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-11 10:58:56 -04:00
parent 0b1742770a
commit c5bad996a7
2 changed files with 3 additions and 3 deletions

View File

@@ -3,7 +3,7 @@
Reads the Stop hook JSON from stdin, extracts the last user prompt
from the transcript JSONL, and POSTs to the AtoCore /interactions
endpoint in conservative mode (reinforce=false, no extraction).
endpoint with reinforcement enabled (no extraction).
Fail-open: always exits 0, logs errors to stderr only.
@@ -81,7 +81,7 @@ def _capture() -> None:
"client": "claude-code",
"session_id": session_id,
"project": project,
"reinforce": False,
"reinforce": True,
}
body = json.dumps(payload, ensure_ascii=True).encode("utf-8")