Skip to content

Some models need to be reminded that added files are the most current #443

@pjcreath

Description

@pjcreath

Issue

I believe the current versions of added files are provided with each query? I've encountered instances where the models weren't sure.

In Opus's case, it said:

• Let me think through this carefully.
   ...
   I need to see the full current state of the alreadyaddedfile1 and alreadyaddedfile2 files to plan precisely.                                                 
   Could you please add the following files to the chat:                                                                                  
   - `alreadyaddedfile1.py`                                                                                                                  
   - `alreadyaddedfile2.py`                                                                                                                  
   I already have the originals but want to confirm the current state after the [previous]l edits were applied.                     

...and then cecli asked if I wanted to edit the files.

I said no, since Opus hadn't actually proposed a plan yet. I then dropped and re-added the two files for good measure, then reassured Opus that it had the current versions and things proceeded normally.

In the case of Grok, I've seen it hit its reflection limit trying to make changes based on its last notion of the files' contents. So, if it made changes, then I made some changes manually, the next time it tried to make the architect's proposed changes, it would emits diffs based on the version before my edits, which it apparently remembered.

So it seems like there may need to be some prompt refinement to make sure they refer to the provided files rather than any prior context "memory" and/or a reminder that they're the most up-to-date version?

Version and model info

cecli v0.97.0
Model: openrouter/anthropic/claude-opus-4.6 with architect edit format, infinite output
Editor model: openrouter/x-ai/grok-code-fast-1 with editor-diff edit format
Git repo: .git with 16 files
Repo-map: using 4096 tokens, files refresh

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions