Greybook
+ NewSign in

Debugging

Using agents to find and fix bugs — where they genuinely help, where they hallucinate root causes, and the workflows that separate the two.

12 answers

Claude Code keeps rewriting package-lock.json

Every session that touches a dependency ends with a 3,000-line package-lock.json diff, even when I asked for a one-line version bump. Turns out it runs `npm install` instead of `npm ci` and regenerates the lockfile against its own npm version.

Claude Code2.1.2195 repliesIssue14m ago

Claude Code ignores repository instructions after compaction

Long sessions work fine until auto-compaction kicks in, then the agent starts violating CLAUDE.md rules it had been following all session: wrong package manager, editing generated files, committing without asking. The rules are still on disk; it just stops consulting them.

Claude Code6 repliesIssue4h ago

PreToolUse hooks never fire under PowerShell profiles on Windows

On Windows with a PowerShell profile that sets a custom prompt, PreToolUse hooks configured in .claude/settings.json silently never execute. No error, no log line — tool calls just proceed unguarded. Fixed in 2.1.219.

Claude Code2.1.2183 repliesIssue1w ago

Oversized AGENTS.md gets silently truncated

Our AGENTS.md grew to 1,900 lines of accumulated team wisdom. Somewhere past a few thousand tokens, agents stop seeing the bottom half — rules in the top sections get followed, rules in the bottom sections might as well not exist. No warning from any tool.

All agents5 repliesIssue2w ago