[BUG] Memory: Commit instruction not respected

Resolved 💬 6 comments Opened Apr 19, 2025 by ocontant Closed Jan 3, 2026

Environment

  • Platform (select one):
  • [ ] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [ X ] Other: Claude Code MacOs Shell
  • Claude CLI version: 0.2.74 (Claude Code)
  • Operating System: MacOS 15.3.2 (24D81)
  • Terminal: iterm2

Bug Description

When reopening claude to continue work on a project, our commit instruction are not being respected by the AI agent. It ignores the commit instruction and skip steps we defined. It is like some other commit instruction oversede our instructions.

If there are competing instructions, the user instruction should supersede the AI initial instructions. The logic could be a OR logical where competing instruction are override by user instructions and the other functional instruction unaffected by User custom instruction are appended to user instruction, in order to not lose the benefits of initial AI instruction and benefit complementary instruction.

Steps to Reproduce

  1. Start an initial session, and configure CLAUDE.md and MEMORY to add new custom instruction about commit rules.
  2. Stop the session
  3. Start a new session in the same project and without any other prompts, request the AI to create a commit.

Expected Behavior

Expect the commit to respect the rules we defined.

Actual Behavior

Our steps are skipped and the AI agent revert to default behaviours.

Additional Context

The code is close, we cannot provide additional information to help pinpoint the root cause.

View original on GitHub ↗

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