Force-feed memory at the protocol level - so it works without the model remembering to call anything.
Hooks make memory work without the model remembering to act.
pmb hooks install claude-code wires all four lifecycle hooks; Codex and
MCP-only hosts get the equivalent via their own mechanisms.
Ambient write fills the gap when the agent forgets to record its work. It’s
on by default, never duplicates the agent’s own record_* calls, and only
journals a turn that clears an outcome bar (tests passed, a failure fixed, a
deploy ran).
When a message reads as pushback (profanity, ALL-CAPS, a repeat-word plus a
negated action), PMB records a draft lesson on the first complaint so the
rule exists when it’s needed - not after the seventh time. If a later message or
tool call strongly overlaps a known rule or past failure, the guard surfaces it
loudly, even inside an autonomous tool loop. Tune via auto_recall.* and
hooks.pretool_guard.