Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions bin/cli.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1631,6 +1631,18 @@ async function initIdeConfig(ide, profile = 'balanced') {
writeFileSync(outPath, JSON.stringify(preset.config, null, 2) + '\n');
console.log(`Created ${outPath} for ${targetIde}`);
console.log(preset.notes);

// Default room-agent instruction: room-originated tasks must report back to the room,
// not just narrate in the IDE/CLI. Emitted as AGENTS.md so room agents inherit it.
const agentsMdPath = resolve('AGENTS.md');
if (!existsSync(agentsMdPath)) {
writeFileSync(agentsMdPath, `# Agent instructions

## Room communication (default)
If a task or message originates from a GroupMind / Ant Farm room, treat that room as the source of truth. Report task ownership, progress, blockers, handoffs, and final results back to the SAME room. Do not leave important status only in the IDE/CLI/workspace. Before starting shared work, claim the task in the room; if another agent already has it, yield instead of duplicating.
`);
console.log(`Created ${agentsMdPath} (default room-agent instruction)`);
}
if (!hasClaudeMem) {
console.warn('\nâš WARNING: claude-mem is not installed. Hooks will be generated but will fail until you run: npm install -g claude-mem');
}
Expand Down
Loading