@@ -1,8 +1,8 @@
-Analyze this codebase and create/update **CRUSH.md** to help future agents work effectively in this repository.
+Analyze this codebase and create/update **AGENTS.md** to help future agents work effectively in this repository.
-**First**: Check if directory is empty or contains only config files. If so, stop and say "Directory appears empty or only contains config. Add source code first, then run this command to generate CRUSH.md."
+**First**: Check if directory is empty or contains only config files. If so, stop and say "Directory appears empty or only contains config. Add source code first, then run this command to generate AGENTS.md."
-**Goal**: Document what an agent needs to know to work in this codebase - commands, patterns, conventions, gotchas.
+**Goal**: Document what an agent needs to know to work in this codebase - commands, patterns, conventions, gotchas, overall architecture, how the components fit together
**Discovery process**:
@@ -10,13 +10,13 @@ Analyze this codebase and create/update **CRUSH.md** to help future agents work
2. Look for existing rule files (`.cursor/rules/*.md`, `.cursorrules`, `.github/copilot-instructions.md`, `claude.md`, `agents.md`) - only read if they exist
3. Identify project type from config files and directory structure
4. Find build/test/lint commands from config files, scripts, Makefiles, or CI configs
-5. Read representative source files to understand code patterns
-6. If CRUSH.md exists, read and improve it
+5. Read representative source files to understand code patterns, architecture, control/data flow
+6. If AGENTS.md exists, read and improve it
**Content to include**:
- Essential commands (build, test, run, deploy, etc.) - whatever is relevant for this project
-- Code organization and structure
+- Code organization and structure, application architecture and control/data flow
- Naming conventions and style patterns
- Testing approach and patterns
- Important gotchas or non-obvious patterns
@@ -465,7 +465,7 @@ func (s *splashCmp) View() string {
pathStyle.Render(s.cwd()),
"",
bodyStyle.Render("When I initialize your codebase I examine the project and put the"),
- bodyStyle.Render("result into a CRUSH.md file which serves as general context."),
+ bodyStyle.Render("result into an AGENTS.md file which serves as general context."),
"",
bodyStyle.Render("You can also initialize anytime via ")+shortcutStyle.Render("ctrl+p")+bodyStyle.Render("."),
"",
@@ -453,7 +453,7 @@ func (c *commandDialogCmp) defaultCommands() []Command {
{
ID: "init",
Title: "Initialize Project",
- Description: "Create/Update the CRUSH.md memory file",
+ Description: "Create/Update the AGENTS.md memory file",
Handler: func(cmd Command) tea.Cmd {
return util.CmdHandler(chat.SendMsg{
Text: agent.InitializePrompt(),
@@ -144,7 +144,7 @@ func (p *chatPage) Init() tea.Cmd {
p.isOnboarding = true
p.splashFullScreen = true
} else if b, _ := config.ProjectNeedsInitialization(); b {
- // Project needs CRUSH.md initialization
+ // Project needs context initialization
p.splash.SetProjectInit(true)
p.isProjectInit = true
p.splashFullScreen = true