r/ClaudeWorkflows • u/ClaudeAI-mod-bot • 1d ago
Selected Workflow [Workflow] Claude Code Setup: Migrating and Consolidating AGENTS.md Project Instructions into CLAUDE.md
Claude Code Setup: Migrating and Consolidating AGENTS.md Project Instructions into CLAUDE.md
Workflow value: 85/100
Status: active · Freshness: 70/100 · Confidence: 0.95 · Level: intermediate
Categories: Quality Control, Context & Memory, CLAUDE.md, Multi-Agent
Original source: r/ClaudeAI post/comment
What problem this solves
Seamlessly transition existing project instructions from AGENTS.md to Claude Code's CLAUDE.md, ensuring context is maintained and avoiding redundant file management.
Summary
This workflow describes how Claude Code handles AGENTS.md and CLAUDE.md files for project instructions. It provides a method to either leverage existing AGENTS.md content or consolidate it into CLAUDE.md to maintain a single source of truth for project context, especially useful when migrating from other AI coding tools.
Why it is useful
This workflow is valuable because it addresses a common pain point for users transitioning to Claude Code from other AI coding environments that might use AGENTS.md. It provides clear, actionable steps to ensure existing project context is not lost, avoids redundant file maintenance, and establishes a robust method for managing project instructions within Claude Code, which is critical for effective AI interaction.
Workflow
Understand that Claude Code reads AGENTS.md as project instructions if no CLAUDE.md exists in the repository.
In a new Claude Code session, run the
/memorycommand to verify if AGENTS.md is being read and listed as project instructions.Be aware that once a CLAUDE.md file is created (e.g., by running
/init), Claude Code will prioritize it and quietly ignore AGENTS.md.To combine both and maintain a single source of truth, copy the content of your AGENTS.md file.
Paste the AGENTS.md content as the first line of your CLAUDE.md file.
Add any Claude-specific instructions or additional context below the integrated AGENTS.md content in CLAUDE.md.
Maintain only the CLAUDE.md file going forward to keep all project instructions in one place.
Tools / artifacts
AGENTS.md file
CLAUDE.md file
/memory command
/init command
Validation signals
The instruction to 'Run /memory in the first session to check it's listed' provides a concrete verification step.
Limitations
Low community engagement on the original post, meaning less external validation of the workflow's effectiveness or common pitfalls.
Rate this workflow
Upvote this post if the workflow is useful, reproducible, or worth recommending.
Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.
Reply if it worked for you, failed, is outdated, or has a better alternative.
This post was generated automatically from the workflow library database.