Skip to content
SprecherEast
Issue 732

Knowledge layer: a note can load twice (its rule and a direct read)

Back to our plan
Open
toolingtech-debtpriority: lowscope-creep

Summary

A module note can reach an agent twice in one session: once as its generated rule, when the agent opens a file in the module, and once when the agent reads README.md directly because the index points there. That costs tokens for nothing.

Details

The eval on #715 showed every run with the knowledge layer opening src/modules/events/README.md first. The rule's paths (src/modules/events/**) also match the README itself. Options:

  • word the index so agents open a module file and let the note load itself;
  • leave the README out of its own rule's paths, if Claude Code supports a negative pattern;
  • accept the cost and record why.

Decide from a measured run, not by guessing.

Acceptance criteria

  • Not done: One option chosen and recorded, with the measured tokens before and after on the eval's tasks 1–6.
  • Not done: npm run agent-context passes.

Files likely touched: docs/knowledge/index.md, scripts/agent-context.mjs. Must not touch: the notes' content.

Size not set: a cloud session can't read the board.


Generated by Claude Code, opens in a new tab

See it on GitHub, opens in a new tab