Repository navigation
refactor(myra)!: thin system prompt; config in sibling modules (CL-8380) - #839
Merged
Merged
Conversation
Myra's system prompt restated tools that Interchange already appends to the model context (vendor/intx/agent's resolveTools/resolveDirector pass toolDefinitions alongside systemPrompt) and ran ~85 lines of behavioral prose. Cut it to identity, who it works for, and how it behaves — everything else moved to sibling modules or is a candidate skill listed in the PR body. - system-prompt.ts: one export, the prompt string, ~22 lines of prose - workflow-ids.ts: ASSISTANT_WORKFLOW_ID / ASSISTANT_STEP_ID - tool-packages.ts: ASSISTANT_TOOL_PACKAGE_PINS - package.json exports ./tool-packages and ./workflow-ids subpaths - apps/web/src/myra-deploy.ts imports from the new subpaths
TheGreatAxios
force-pushed
the
cl-8380-myra-thin-prompt
branch
from
September 18, 2026 01:08
d523db3 to
3f294af
Compare
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
agents/myra/src/system-prompt.tsnow exports exactly one thing, the prompt string: 29 lines total (was 235), ~22 lines of prose (was ~85). It covers identity, who Myra works for, and how she behaves (concise, asks before external/hard-to-undo effects, uses memory) — no tool listings.vendor/intx/agent/src/agent.ts(resolveTools/resolveDirector) that Interchange passestoolDefinitionsto the director alongsidesystemPromptindependently of the prompt text — tools never need restating in the prompt.ASSISTANT_WORKFLOW_ID/ASSISTANT_STEP_IDtoagents/myra/src/workflow-ids.tsandASSISTANT_TOOL_PACKAGE_PINStoagents/myra/src/tool-packages.ts.index.tsimports from both;package.jsongains./tool-packagesand./workflow-idsexport subpaths (browser-safe, same as./prompt).apps/web/src/myra-deploy.ts's imports to the new subpaths.agents/myra/test/*.test.tsreference the exported constants, not literal prompt text, so they pass unchanged against the new prompt.Cut behavioral guidance — skill candidates
This repo has no static, committed
SKILL.mdfiles anywhere (verified: skills are per-tenant, git-backed runtime assets created through@corbits/skills' registry/tools, not files in this repo — confirmed no seed/bootstrap path plants one, including thewriting-system-promptsskill the old prompt already referenced by name). So the situational guidance cut from the prompt is listed here as follow-up skill candidates rather than committed as files:list_agentsbefore creating a duplicate, ask only the few facts that can't be inferred, then build (agents, grants, routines) in one pass and report back.mcp_list_servers/mcp_list_tools/mcp_read/mcp_callrather than guessing a connected server's tool names or arguments.Test plan
cd agents/myra && bun run typecheck && bun test— 11 passcd apps/web && bun run typecheck— cleanbun run checkat repo root — typecheck, lint, fmt:check, test all green (1754 pass, 0 fail)