mirror of
https://github.com/qwibitai/nanoclaw.git
synced 2026-06-30 18:40:32 +08:00
2d2c3204bc
readAgentAndGlobalClaudeMd was appending /workspace/global/CLAUDE.md explicitly at the end, but since @-import resolution was added the group's own CLAUDE.md already pulls global in via its default `@./.claude-global.md` import (see src/group-init.ts). Result: non-main groups got global instructions inlined twice, wasting context tokens and occasionally producing contradictory repeated guidance. Drop the explicit global append. Groups that want global content import it via the @-directive in their CLAUDE.md (the default) — groups that intentionally don't import it now correctly skip it, matching Claude-backed agent behaviour. The NANOCLAW_IS_MAIN env branch also becomes unnecessary and is removed. Addresses Codex Review P2 on qwibitai/nanoclaw#1966. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>