A hook point of Claude Code
SessionStart
heard When a session starts, the plugin tells its daemon, the one background process it runs on your machine, and waits for nothing.
If you switched the self-test on, it runs now and checks that Jev, the small, fast model the plugin puts its questions to, still answers.
Say something
It asks three questions about one known fact (water boils at 100 degrees Celsius at sea level), one of each kind Jev answers: a yes or no, a choice and a score.
Its switch is at
session.compact, and it acts here too. Before Claude Code replaces a conversation with its summary, the plugin asks Jev about each of your latest prompts (twelve at most, and whatever the last compaction carried): does it still say how the assistant is to work, as something it must not do, something it must always do, or a standing go-ahead? A prompt Jev is 70% sure of is carried across in your own words: the writer of the summary is told to keep it, and the assistant reads it again when the session starts after the compaction.
Each is an answer Jev could give, and the screen you would see. The rules that decide it are drawn on the page of the jevhook that acts in it.
the session starting again after that compaction standing
A summary has replaced the conversation, and what you said is in it only as its writer put it. So the daemon's answer at the compaction is kept until the session starts again, and the assistant reads your own words then, once.
โฏ add a --json flag to the export command โ The flag is added and the tests pass. Nothing is pushed. โป Worked for 3s compaction: Jev: 1 of your instructions carried across the compaction (93%) ยท 150 ms ยท $0.0002 this session [-] โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โฏ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โธ manual mode on ยท ? for shortcuts
The assistant reads as the session starts again:
jevhooks: This conversation was just compacted. Before it was, the user said what is quoted below, and it still holds. Go by it as you would if it stood above in full: - "never push without asking me first" (Jev: 93%)
How the rules decided it, on the page of Carry your instructions across a compaction
What this site keeps about a visit, and how to refuse it, is said in one place: what is kept.