Skip to content

fix(prompt): remove stale always-on hooks system prompt - #55

Merged
LeXwDeX merged 1 commit into
devfrom
fix/remove-stale-hooks-prompt
Jul 3, 2026
Merged

fix(prompt): remove stale always-on hooks system prompt#55
LeXwDeX merged 1 commit into
devfrom
fix/remove-stale-hooks-prompt

Conversation

@LeXwDeX

Copy link
Copy Markdown
Owner

hooks.txt was injected into every session's system prompt but taught the retired protocol: hooks in a 6-layer settings.json chain (incl. .claude/) and 22 events — while the implementation (hook/settings.ts, since hooks-config-independence) reads only dedicated hooks.json chains and supports 27 events. Agents were being actively misinformed about their own hooks environment.

  • Delete session/prompt/hooks.txt + its sys.hooks() interface/injection (system.ts, prompt.ts)
  • Discovery preserved via the built-in configure-hooks skill (injected through sys.skills(agent), content matches implementation: 27 events, hooks.json chain)
  • README: 22/17 → 27 events; dead hooks-reference.md link now points at the skill doc

Verification: bun turbo typecheck 29/29 green; grep confirms zero remaining PROMPT_HOOKS|hooksDocs|sys.hooks references.

hooks.txt taught the retired settings.json 6-layer protocol (hooks now
live in dedicated hooks.json chains; .claude/ is never read) and stale
event counts (22 vs actual 27). Discovery is preserved via the built-in
configure-hooks skill injected through sys.skills(agent). Also fix
README hooks section: 27 events and dead hooks-reference.md link now
points at the skill doc.
@LeXwDeX
LeXwDeX enabled auto-merge July 3, 2026 09:49
@LeXwDeX
LeXwDeX merged commit cbb9860 into devJul 3, 2026
4 checks passed
@LeXwDeX
LeXwDeX deleted the fix/remove-stale-hooks-prompt branch July 3, 2026 09:51
@LeXwDeXLeXwDeX mentioned this pull request Aug 24, 2026
2 tasks
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@LeXwDeX