Behavior
Hook
60 hook on 7 seam, in the order a conversation reaches them.
- Hook
- 60
- Two releases
- Seam
- 7
- Distinct events
- Classic
- 30
- Effect-TS
- 30
Trajectory
One turn, seam by seam. The lens names what the hooks at that seam see and change.
- 01
system-prompt/assemble
Prompt 2 hook +4 armModel 2 rewritehook-dsh-live-containers rewrite Keeps live, editable blocks in the system prompt
ets-hook-dsh-live-containers rewrite Keeps live, editable blocks in the system prompt
- 02
llm/stream
Text 12 hookModel 12 rewriteNormalizes the dash, ellipsis, fullwidth, invisible, quotes, spaces classes
hook-dsh-normalize-dash rewrite Turns every unicode dash into a plain hyphen, live
hook-dsh-normalize-ellipsis rewrite Turns the unicode ellipsis into three dots, live
hook-dsh-normalize-fullwidth rewrite Turns fullwidth characters back into ASCII, live
hook-dsh-normalize-invisible rewrite Removes invisible characters from model output
hook-dsh-normalize-quotes rewrite Turns curly quotes into straight ones, live
hook-dsh-normalize-spaces rewrite Turns exotic spaces into plain spaces, live
ets-hook-dsh-normalize-dash rewrite Turns every unicode dash into a plain hyphen, live
ets-hook-dsh-normalize-ellipsis rewrite Turns the unicode ellipsis into three dots, live
ets-hook-dsh-normalize-fullwidth rewrite Turns fullwidth characters back into ASCII, live
ets-hook-dsh-normalize-invisible rewrite Removes invisible characters from model output
ets-hook-dsh-normalize-quotes rewrite Turns curly quotes into straight ones, live
ets-hook-dsh-normalize-spaces rewrite Turns exotic spaces into plain spaces, live
- 03
tools/pre-execute
Tool 4 hook +4 armModel 2 rewrite / 2 advisehook-dsh-workspace-govern rewrite Gates workspace changes before they happen
hook-dsh-workspace-operate advise Turns intent into typed proposals: rename, connect, replace
ets-hook-dsh-workspace-govern rewrite Gates workspace changes before they happen
ets-hook-dsh-workspace-operate advise Turns intent into typed proposals: rename, connect, replace
- 04
tools/post-execute
Tool 20 hook +16 armModel 4 rewrite / 16 advisehook-dsh-ccr rewrite Compresses oversized tool output, caches it, and retrieves it on demand
hook-dsh-comment-filter rewrite Strips code comments out of read results
hook-dsh-convention-suggester advise Names the repo's conventions before the model breaks them
hook-dsh-doc-suggester advise Suggests the documents a documentation task should touch
hook-dsh-edit-suggester advise Suggests the files an edit is about to touch
hook-dsh-graph-suggester advise Widens a suggestion from a symbol to everything connected to it
hook-dsh-replay-suggester advise Shows what the model touched the last time it did this
hook-dsh-search-suggester advise Suggests where to search before the model starts reading
hook-dsh-test-suggester advise Suggests the tests a task should run
hook-dsh-tool-coach advise Teaches the model to stop reading files through the terminal
ets-hook-dsh-ccr rewrite Compresses oversized tool output, caches it, and retrieves it on demand
ets-hook-dsh-comment-filter rewrite Strips code comments out of read results
ets-hook-dsh-convention-suggester advise Names the repo's conventions before the model breaks them
ets-hook-dsh-doc-suggester advise Suggests the documents a documentation task should touch
ets-hook-dsh-edit-suggester advise Suggests the files an edit is about to touch
ets-hook-dsh-graph-suggester advise Widens a suggestion from a symbol to everything connected to it
ets-hook-dsh-replay-suggester advise Shows what the model touched the last time it did this
ets-hook-dsh-search-suggester advise Suggests where to search before the model starts reading
ets-hook-dsh-test-suggester advise Suggests the tests a task should run
ets-hook-dsh-tool-coach advise Teaches the model to stop reading files through the terminal
- 05
batch/proposed
Batch 2 hookModel 2 recordhook-dsh-batch-decision record Decides when a batch of edits is ready to apply
ets-hook-dsh-batch-decision record Decides when a batch of edits is ready to apply
- 06
fs/observed
File 18 hookModel 8 rewrite / 10 recordhook-dsh-cargo-governor rewrite Keeps Cargo.toml in order without asking
hook-dsh-package-governor rewrite Keeps package.json in order without asking
hook-dsh-package-pinner rewrite Pins every dependency to the version actually used
hook-dsh-workspace-approve record Binds an approved proposal to its execution
hook-dsh-workspace-audit record Records what the workspace did, as events and ledger lines
hook-dsh-workspace-journal record Keeps undo, checkpoints, and crash recovery
hook-dsh-workspace-merge rewrite Merges a batch atomically, file by file
hook-dsh-workspace-monitor record Watches the workspace and sweeps it on a schedule
hook-dsh-workspace-observe record Observes the workspace so the family can reason about it
ets-hook-dsh-cargo-governor rewrite Keeps Cargo.toml in order without asking
ets-hook-dsh-package-governor rewrite Keeps package.json in order without asking
ets-hook-dsh-package-pinner rewrite Pins every dependency to the version actually used
ets-hook-dsh-workspace-approve record Binds an approved proposal to its execution
ets-hook-dsh-workspace-audit record Records what the workspace did, as events and ledger lines
ets-hook-dsh-workspace-journal record Keeps undo, checkpoints, and crash recovery
ets-hook-dsh-workspace-merge rewrite Merges a batch atomically, file by file
ets-hook-dsh-workspace-monitor record Watches the workspace and sweeps it on a schedule
ets-hook-dsh-workspace-observe record Observes the workspace so the family can reason about it
- 07
agent/status
State 2 hookModel 2 advisehook-dsh-lesson-nudge advise Turns the idle moment after a turn into a self-review
ets-hook-dsh-lesson-nudge advise Turns the idle moment after a turn into a self-review
Seam
The same order, as one path.
Transform
What the model emits on the left, what the transcript stores on the right.
- normalize-dash U+2014 — - the dash family: em, en, and seventeen exotic relatives
- normalize-ellipsis U+2026 … ... the single ellipsis character, default replacement
- normalize-quotes U+201C “ " eight typographic quotes to their straight ASCII counterpart
- normalize-spaces U+00A0 exotic spaces to the plain ASCII space
- normalize-fullwidth U+FF21 A A the fullwidth ASCII block back to halfwidth
- normalize-invisible U+200B removed zero-width, joiner, bidi, and BOM characters removed
One character, end to end follows the dash from the model to the ledger.