v0.9.6 — Context-refresh fetch fix + richer Claude Code prompts
v0.9.6 — Context-refresh fetch fix + richer Claude Code prompts
Two fixes to the closed-loop Claude Code workflow. Strictly additive — no API or schema changes; the v0.9.3 security pass is intact.
Fixed
- Context refresh now loads file contents.
↻ Refresh from repowas reporting "could not be fetched" for every file (CLAUDE.md, README, etc.) while only directory listings worked. The GitHub MCP returns a text file as a prefixed plain string rather than a{ content }object, sonormaliseResponsedropped it. It now parses the string (and strips thesuccessfully downloaded text file (SHA: …)prefix) and stores the file body. (PR #19)
Improved
- Self-contained Claude Code prompts. Each per-item "Generate Claude Code prompt" now includes the source link, the reason Foresights flagged the item, the "why it matters", and the integration suggestions — so the prompt is paste-and-go instead of making Claude Code rediscover the context.
- Repo context is now references, not dumps. The prompt lists the tracked repo paths instead of inlining full file bodies. Claude Code auto-loads
CLAUDE.mdand reads files live, so this keeps prompts compact and avoids baking in stale file content. (Context refresh still captures file content internally — now only for the change-detection fingerprint.)
Verification
727 tests pass; tsc and targeted biome clean; the build reproduces the live aws-cdk-news dashboard byte-for-byte plus the fixes.