feat(stack): managed-block sync for inlined agents (Mavis)#12
Merged
Conversation
Claude Code/Cursor/Codex reference AGENTS.md via @import. MiniMax/Mavis has no import directive, so its method must be inlined — and would diverge if hand- maintained. sync_inlined_method.py regenerates a STACK:BEGIN/END managed block from AGENTS.md, replacing only the bytes between markers (everything outside, i.e. the agent's personal/tool sections, is untouched). Backs up before writing; --check mode for CI/pre-commit. This completes the non-destructive update story for inlined targets, per UPDATING.md's managed-block convention.
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.
Why
Completes the non-destructive update story. Claude Code/Cursor/Codex reference
AGENTS.mdvia@import; MiniMax/Mavis has no import directive, so its method must be physically inlined — and would diverge if hand-maintained.What
scripts/sync_inlined_method.pyregenerates aSTACK:BEGIN/ENDmanaged block fromAGENTS.md:--checkmode for CI/pre-commit (exit 1 if stale).Docs: UPDATING.md managed-block section now shows the sync command; CHANGELOG updated.
Verification
--checkafter sync → OK exit 0 ✅