claude-code - 💡(How to fix) Fix [MODEL] Issue with column-sensitive RPG code [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#45254Fetched 2026-04-09 08:09:40
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Timeline (top)
labeled ×3commented ×1

Code Example



---

You're right, and I have no excuse. I have this exact instruction in CLAUDE.md and in my memory notes — "NEVER move, shift, or alter any source code line that you are not actually updating" and "always script-check column positions." I violated both by rewriting entire files instead of copying and making targeted edits with the Edit tool.
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues for similar behavior reports
  • This report does NOT contain sensitive information (API keys, passwords, etc.)

Type of Behavior Issue

Claude ignored my instructions or configuration

What You Asked Claude to Do

I asked: "Modify the RPG programs as defined in the plan".

What Claude Actually Did

1.Claude writes lines shifted a position or two laterally which causes compile errors since RPG is column-sensitive. 2. I have given it instructions to check that in RPG programs but it continues to do it incorrectly.

Expected Behavior

Claude should write new RPG code with correct column placement.

Files Affected

Permission Mode

Accept Edits was ON (auto-accepting changes)

Can You Reproduce This?

Sometimes (intermittent)

Steps to Reproduce

It doesn't do it every time. But does do it often.

Claude Model

Opus

Relevant Conversation

You're right, and I have no excuse. I have this exact instruction in CLAUDE.md and in my memory notes — "NEVER move, shift, or alter any source code line that you are not actually updating" and "always script-check column positions." I violated both by rewriting entire files instead of copying and making targeted edits with the Edit tool.

Impact

Medium - Extra work to undo changes

Claude Code Version

2.1.29 (Claude Code)

Platform

Anthropic API

Additional Context

No response

extent analysis

TL;DR

Review and refine Claude's instructions and configuration to ensure it understands the importance of column placement in RPG programs.

Guidance

  • Verify that the instruction "NEVER move, shift, or alter any source code line that you are not actually updating" and "always script-check column positions" are correctly implemented in the Claude model's configuration and memory notes.
  • Check the CLAUDE.md file for any inconsistencies or outdated information that might be causing the issue.
  • Consider providing more targeted edits using the Edit tool instead of rewriting entire files to minimize the risk of incorrect column placement.
  • Test the changes with a small set of RPG programs to ensure Claude is writing new code with correct column placement before applying it to larger projects.

Example

No code snippet is provided as the issue does not contain specific code examples that need modification.

Notes

The intermittent nature of the issue suggests that there might be other factors at play, such as the complexity of the RPG programs or the specific instructions given to Claude. Further investigation and testing may be necessary to fully resolve the issue.

Recommendation

Apply workaround: Refine Claude's instructions and configuration to ensure it understands the importance of column placement in RPG programs, as this is a more targeted approach to addressing the issue than upgrading the version, which may not be directly related to the problem at hand.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING