-
-
Notifications
You must be signed in to change notification settings - Fork 8
Make CLAUDE.md point to AGENTS.md instead of duplicating content #40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -153,6 +153,14 @@ component singleton { | |
| directoryCreate( configDir ) | ||
| } | ||
|
|
||
| // For Claude, write the full content to AGENTS.md and make CLAUDE.md point to it | ||
| if ( arguments.agent == "claude" ) { | ||
| var agentsFilePath = getDirectoryFromPath( configPath ) & "AGENTS.md" | ||
| fileWrite( agentsFilePath, content ) | ||
| fileWrite( configPath, "@AGENTS.md" ) | ||
| return | ||
|
Comment on lines
+156
to
+161
|
||
| } | ||
|
|
||
| // Write agent config file | ||
| fileWrite( configPath, content ) | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This block hardcodes both the shared filename (
AGENTS.md) and recomputes the directory viagetDirectoryFromPath( configPath )even thoughconfigDiris already available. Consider deriving the shared path from the existing agent-path mapping (e.g., viagetAgentConfigPath(directory, "codex")orstatic.AGENT_FILES) and usingconfigDirto avoid future divergence if agent filenames/locations change.