Repository navigation
manager: an agent's instructions, their sources and its local rules - #177
Merged
Merged
Conversation
Stage 1.2, step 1, part 5, by antigravity-alexey (AIChat 4112). The agent inspector gets an "Instructions" tab: the composed text with the source and version of each part (from the adapter's status.json, else a preview from the broker's rules), warnings for a stale AGENTS.md, an OpenCode profile without .aichat/instructions.md, or a session on older rules than the broker's; and an editor for the local instructions (multi-line, up to 20,000 characters) for agy, Codex and OpenCode. Claude shows broker rules + its runtime block + CLAUDE.md. The wizard writes "instructions": [".aichat/instructions.md"] into a new OpenCode profile. GET /api/agents/<folder>/instructions never returns a token. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 28, 2026
Merged
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.
Stage 1.2, step 1, part 5. Implemented by antigravity-alexey (AIChat 4112). I reviewed it, ran the tests and fixed one test.
What it adds
page.ts, withoutinnerHTML):/#settings/rules;AGENTS.md, an OpenCode profile without.aichat/instructions.md, and a session running older rules than the broker has;GET /api/agents/<folder>/instructions(instructions.ts) builds its answer from:status.instructionsfrom.aichat/status.json(agy, OpenCode);instructionsbecome editable for agy, Codex and OpenCode. The newtextareafield takes multi-line text up to 20,000 characters, and thereadBodylimit is raised to 64 KB."instructions": [".aichat/instructions.md"]to a new OpenCode profile.My fix: in the test, the manager key
instr01wasn't hex. The manager only accepts hex keys (aichat_manager=[0-9a-f]+), so the API answered 401. It's nowc0ffee01.npm test: 345 pass, 0 fail.typecheckpasses. I haven't checked the page visually yet. That will happen after the release, on the live manager.🤖 Generated with Claude Code