News for hackers. Stuff that matters.
Re:Cursor CLI by ako on Friday August 08, 2025 @01:09AM (#44833651)
I asked claude code for a guidelines file so it would collaborate with windsurf. This is what it proposed:

---

    This project uses shared planning documents for collaboration with Claude Code. Please:

    1. First read and understand these files:

       - PLAN.md - current project roadmap and objectives

       - ARCHITECTURE.md - technical decisions and system design

       - TODO.md - current tasks and their status

       - DECISIONS.md - decision history with rationale

       - COLLABORATION.md - handoff notes from other tools

    2. Before making any significant changes, check these documents for:

       - Existing architectural decisions

       - Current sprint priorities

       - Tasks already in progress

       - Previous context from Claude Code

    3. After completing work, update the relevant planning documents with:

       - Task completion status

       - New decisions made

       - Any changes to architecture or approach

       - Notes for future collaboration

    Always treat these files as the single source of truth for project state.
Re:Cursor CLI by novaleaf on Friday August 08, 2025 @01:26AM (#44833742)
problem is that claude doesn't actually read those or keep them in context unless you prompt it to. it has to be in CLAUDE.md or it'll quickly forget about the contents
Re:Cursor CLI by ako on Friday August 08, 2025 @01:51AM (#44833876)
I've added these instructions in CLAUDE.md and .windsurfrules, and yes sometimes you have to remind it, but overall it works quite well.
Re:Cursor CLI by MrGreenTea on Friday August 08, 2025 @02:04AM (#44833952)
Habe you though about adding a Session start hook that reads this file and adds it to the context?
Re:Cursor CLI by ako on Friday August 08, 2025 @02:44AM (#44834205)
Not yet, but that sounds like a good suggestion.
Re:Cursor CLI by radarsat1 on Friday August 08, 2025 @05:22AM (#44835082)
Sounds like a job for a symlink
Re:Cursor CLI by troupo on Friday August 08, 2025 @03:21AM (#44834428)
> it has to be in CLAUDE.md or it'll quickly forget about the contents

And then it will promptly forget about CLAUDE.md as well (happened to me on several occasions)

Re:Cursor CLI by adastra22 on Friday August 08, 2025 @11:29AM (#44838202)
CLAUDE.md is placed in front of the first input for your session, right after the system prompt. That’s all. It’s not given any more weight than the rest of the context, and idk what compacting the conversation does to it.
Re:Cursor CLI by ascorbic on Friday August 08, 2025 @06:59AM (#44835593)
You could create a CLAUDE.md that just contains:

  @AGENTS.md
Still messy, but at least it means it's using the same content
Re:Cursor CLI by Jenk on Friday August 08, 2025 @08:11AM (#44836088)
What about

    ln -s AGENTS.md CLAUDE.md # repeat for all

?
Re:Cursor CLI by seunosewa on Friday August 08, 2025 @09:35AM (#44836761)
Also great.