Repository navigation
Agents: shared instructions with append or replace, same config for every agent - #54
Merged
Merged
Conversation
…where
homeSpec.agents.instructions.{mode,text} (and per agent
homeSpec.agents.<agent>.instructions) replaces claude.claudeMd,
pi.appendSystemMd and kimi.systemMd. Every agent gets the machine
context, the org ground rules (skills lib.groundRules, groundRules.enable),
the user's text and then its own text. "append" adds them to the built-in
system prompt; "replace" puts them in its place: pi and kimi SYSTEM.md,
a claude output style. opencode has no replacement and is refused.
Remote MCP servers (varlock docs) now reach claude, pi and kimi as well
as opencode, and claude reads /tmp like opencode. Bumps skills (ground
rules, consolidated org skills) and org-pkgs (no code-agent image,
worktree helper, check extraCommands).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
andrewthomaslee
enabled auto-merge (squash)
November 15, 2026 02:51
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
~/.claude/CLAUDE.mdhome-manager(keep-coding-instructions: false) +outputStylein settings.json~/.pi/agent/AGENTS.md~/.pi/agent/SYSTEM.md~/.kimi-code/AGENTS.md~/.kimi-code/SYSTEM.md~/.config/opencode/AGENTS.mdSame config for every agent:
Removed (
mkRemovedOptionModulewith a pointer to the new options):claude.claudeMd,pi.appendSystemMd,kimi.systemMd. Their only user was the deleted pkgs code-agent image; home sets none of them.Input bumps:
skills(#23, #24: ground rules, org standards router) andorg-pkgs(#38, #39: no code-agent image,worktree,org.check.extraCommands), plussync-locks.Evidence
checks.agents-instructions: ground rules and shared text in all four agents' files, per-agent text stays per agent,groundRules.enable = falsedrops the rules, varlock-docs in kimi/pi/opencode/claude sync,/tmpfor claude, replace writes pi/kimiSYSTEM.mdand the claude output style, opencode replace fails its assertion.agents-wiring,agents-independent,agents-machine-contextpass unchanged.devenv shell -- bash -c 'fmt && check'→all checks passed!(one listed, non-deniedstdenv.isDarwindeprecation warning).Merge Danger
Door: two-way
Blast Radius: agent prompts
After home bumps modules, every agent's instructions file gains the ground rules (~1.4k chars). Users can turn them off with
groundRules.enable = false. Claude, pi and kimi gain the varlock-docs server where it is enabled (netsa). Merge order: after skills #24 and pkgs #38/#39 (merged); home follows.🤖 Generated with Claude Code