claude-agents-md 1.8.2 → 1.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -28
- package/bin/claude-agents-md.js +2 -4
- package/make-agents.sh +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Claude AGENTS
|
|
2
2
|
|
|
3
|
-
A wrapper for the Claude CLI that can run in AGENTS mode
|
|
3
|
+
A wrapper for the Claude CLI that can run in AGENTS.md mode - ignoring CLAUDE.md and using AGENTS.md (like every other editor).
|
|
4
4
|
|
|
5
5
|
## What's New 🎉
|
|
6
6
|
|
|
@@ -44,33 +44,6 @@ claude-agents-md mode claude
|
|
|
44
44
|
claude-agents-md mode
|
|
45
45
|
```
|
|
46
46
|
|
|
47
|
-
### Using the cl wrapper script (Recommended!)
|
|
48
|
-
|
|
49
|
-
For even easier mode management, use the included `cl` bash wrapper:
|
|
50
|
-
|
|
51
|
-
```bash
|
|
52
|
-
# Install globally during npm install
|
|
53
|
-
npm install -g claude-agents-md
|
|
54
|
-
|
|
55
|
-
# Or copy manually to your PATH
|
|
56
|
-
cp node_modules/claude-agents-md/bin/cl /usr/local/bin/cl
|
|
57
|
-
chmod +x /usr/local/bin/cl
|
|
58
|
-
|
|
59
|
-
# Now you can use:
|
|
60
|
-
cl /YON # Switch to AGENTS mode AND start Claude
|
|
61
|
-
cl /YOFF # Switch to CLAUDE mode AND start Claude
|
|
62
|
-
cl /STATUS # Show current mode (without starting Claude)
|
|
63
|
-
cl /HELP # Show help
|
|
64
|
-
|
|
65
|
-
# Run Claude in current mode
|
|
66
|
-
cl "write a hello world function"
|
|
67
|
-
|
|
68
|
-
# Switch mode and run with command
|
|
69
|
-
cl /YON "create a web server"
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
Mode preference is saved in `~/.claude_agents_state` and persists between sessions.
|
|
73
|
-
|
|
74
47
|
## Visual Mode Indicators
|
|
75
48
|
|
|
76
49
|
The tool now shows clear visual indicators of which mode you're in:
|
package/bin/claude-agents-md.js
CHANGED
|
@@ -186,7 +186,6 @@ let js = path.join(claudeDir, 'cli.js');
|
|
|
186
186
|
let originalCliPath;
|
|
187
187
|
let agentsCliPath;
|
|
188
188
|
|
|
189
|
-
|
|
190
189
|
if (fs.existsSync(js)) {
|
|
191
190
|
originalCliPath = js;
|
|
192
191
|
agentsCliPath = path.join(claudeDir, 'cli-agents.js');
|
|
@@ -254,8 +253,7 @@ async function run() {
|
|
|
254
253
|
|
|
255
254
|
// AGENTS MODE continues below
|
|
256
255
|
console.log(`${YELLOW}[AGENTS] Running Claude in AGENTS mode${RESET}`);
|
|
257
|
-
|
|
258
|
-
|
|
256
|
+
|
|
259
257
|
// Check and update Claude package first
|
|
260
258
|
await checkForUpdates();
|
|
261
259
|
|
|
@@ -294,7 +292,7 @@ async function run() {
|
|
|
294
292
|
}
|
|
295
293
|
|
|
296
294
|
// Replace CLAUDE.md with AGENTS.md
|
|
297
|
-
cliContent = cliContent.replace(/CLAUDE
|
|
295
|
+
cliContent = cliContent.replace(/CLAUDE\.md/g, 'AGENTS.md');
|
|
298
296
|
debug("Replaced all instances of CLAUDE.md with AGENTS.md");
|
|
299
297
|
|
|
300
298
|
// Add warning message
|
package/make-agents.sh
CHANGED
|
@@ -17,7 +17,7 @@ cp "$CLI_FILE" "${CLI_FILE}.backup"
|
|
|
17
17
|
echo "Created backup at ${CLI_FILE}.backup"
|
|
18
18
|
|
|
19
19
|
# Replace CLAUDE.md with AGENTS.md case insensitively
|
|
20
|
-
sed -i.bak1 's/CLAUDE
|
|
20
|
+
sed -i.bak1 's/CLAUDE\.md/AGENTS.md/g' "$CLI_FILE"
|
|
21
21
|
echo "Replaced all instances of CLAUDE.md with AGENTS.md"
|
|
22
22
|
|
|
23
23
|
# Clean up the .bak file created by sed
|