Agentic Workflow Deviation: Ignoring claude.md Context and Instruction Boundaries

Resolved 💬 4 comments Opened Jul 22, 2025 by markfaithfull Closed Aug 19, 2025

Bug Description
Hello this relates to Claude Code which I have been using for several weeks - I'm reporting a problematic change in behaviour that I have noticed over the last week or so

I have observed Claude Code repeatedly taking actions that are contrary to instructions provided in the claude.md context file this includes pushing code to live without permission and applying edits to code when I only asked for a design to be produced.

My suspicion is that when claude code goes through a conversation compact exercise it does not re-read the claude.md file as step 1 before returning to activity and so 'forgets' its terms of engagement

Environment Info

  • Platform: darwin
  • Terminal: WarpTerminal
  • Version: 1.0.51
  • Feedback ID: 1ccd0359-f3e6-4f6a-8f12-7aa7742a25fd

Errors

[{"error":"Error: Command failed: security find-generic-password -a $USER -w -s \"Claude Code\"\nsecurity: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n\n    at genericNodeError (node:internal/errors:983:15)\n    at wrappedFn (node:internal/errors:537:14)\n    at checkExecSyncError (node:child_process:882:11)\n    at execSync (node:child_process:954:15)\n    at eD (file:///Users/markfaithfull/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:712:4489)\n    at file:///Users/markfaithfull/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:624:13989\n    at Q (file:///Users/markfaithfull/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:526:14406)\n    at QF (file:///Users/markfaithfull/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:624:13129)\n    at cC (file:///Users/markfaithfull/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:624:11995)\n    at qB (file:///Users/markfaithfull/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:624:16609)","timestamp":"2025-07-14T12:52:54.803Z"},{"error":"Error: 529 {\"type\":\"error\",\"error\":{\"type\":\"overloaded_error\",\"message\":\"Overloaded\"}}\n    at Z6.generate (file:///Users/markfaithfull/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1315:12815)\n    at iq.makeStatusError (file:///Users/markfaithfull/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1332:2100)\n    at iq.makeRequest (file:///Users/markfaithfull/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1332:5311)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async tA1.showErrors (file:///Users/markfaithfull/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1706:23178)\n    at async tA1 (file:///Users/markfaithfull/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1706:12720)\n    at async oO2 (file:///Users/markfaithfull/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1706:23029)\n    at async file:///Users/markfaithfull/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1706:18138\n    at async c0A (file:///Users/markfaithfull/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1706:5121)\n    at async Tc (file:///Users/markfaithfull/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1706:18108)","timestamp":"2025-07-15T14:10:03.827Z"},{"error":"Error: Failed to fetch tenant info for cloud ID: https://cool-waters-cyber.atlassian.net. Status: 404\n    at Uq2 (file:///Users/markfaithfull/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1383:14523)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async Object.call (file:///Users/markfaithfull/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1383:9921)\n    at async dL6 (file:///Users/markfaithfull/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1941:20231)\n    at async nz1 (file:///Users/markfaithfull/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1941:16952)\n    at async Pc (file:///Users/markfaithfull/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1916:892)\n    at async mL6 (file:///Users/markfaithfull/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1941:16097)\n    at async gL6 (file:///Users/markfaithfull/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1941:15582)\n    at async qE (file:///Users/markfaithfull/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1941:14043)\n    at async qE (file:///Users/markfaithfull/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1941:14733)","timestamp":"2025-07-16T07:57:41.944Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at SF (file:///Users/markfaithfull/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1489:1184)\n    at file:///Users/markfaithfull/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1489:912\n    at Array.map (<anonymous>)\n    at _F (file:///Users/markfaithfull/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1489:903)\n    at v_2 (file:///Users/markfaithfull

Note: Error logs were truncated.

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗