Repository navigation
feat(core): rename built-in tool namespace and system prompts to shuvcode - #504
Merged
Merged
Conversation
…code
- Move the 18 built-in Code Mode tools from namespace opencode to shuvcode while preserving opencode_*_mcp_* permission action compatibility
- Update base, model-specific, command, TUI investigation, and bundled voice/browser prompts from OpenCode to Shuvcode without touching ${OPENCODE_TOOL_GUIDANCE}
- Rename the built-in skill to shuvcode with fork CLI/XDG paths and default report issues to shuv1337/shuvcode
- Add shuvcode-identity.test.ts sync guard and expand FORBIDDEN_TOOLS coverage across all 8 entries
shuv1337
force-pushed
the
shuvcode-tool-prompts
branch
from
November 18, 2026 08:19
4b0e876 to
e4e22f0
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
Extend the Shuvcode fork identity into model-facing prompts, built-in skills, and the built-in Code Mode tool namespace (
tools.opencode.*→tools.shuvcode.*):opencode→shuvcode): Moves all 18 built-in tools acrossopencode.ts,automation.ts,artifact.ts,mcp-resource.ts, andmcp-events.ts(plusOpenCodeTools'stools.shuvcode.session_movecontext hook and all 8FORBIDDEN_TOOLSentries inautomation/code.ts) toshuvcode.opencode_<tool>toshuvcode_<tool>; rules keyed on the oldopencode_<tool>names no longer match them. This is intentional: there are no existing deny rules or saved automations to carry over, so there is no compat shim and notools.opencodealias. The 3 MCP tools keep explicitpermission: "opencode_list_mcp_resources","opencode_read_mcp_resource", and"opencode_watch_mcp_event"options, matching the action names their runtime permission checks and event watches use;worktree_removekeepsedit.OpenCode→Shuvcodeacrosssystem.txt,system-prompt/{gpt,gpt-astra,kimi,meta,trinity}.txt(preserving literal${OPENCODE_TOOL_GUIDANCE}),command/{automation,initialize}.txt,artifact.ts,generate.ts,tui/src/util/error-details.ts,@shuvcode/gpt-live-plugin,app/src/voice/spec.ts, and@opencode/plugin-browser.shuvcode&reportskills: Registersskill://shuvcode/SKILL.md(id: "shuvcode"), fixesopencode.mdCLI invocations (shuvcode ...), XDG paths (~/.config/shuvcode,~/.local/share/shuvcode/log/opencode.log), andtools.shuvcode.*references, and defaultsreport.md'sgh issue createto--repo shuv1337/shuvcode.packages/core/test/shuvcode-identity.test.tsto catch silentupstream/devmerge regressions acrossPluginInternaltool namespaces, MCP permissions, all 8FORBIDDEN_TOOLSentries, rendered model prompts, command templates, and built-in skills.Format/file literals (
opencode.json(c),.opencode/,opencode.db,opencode.log,$schema), env var names (OPENCODE_*,AI_AGENT), internalopencode.*plugin IDs,@opencode/*imports,OpenCode Console/Go, and wire/OAuth headers remain unchanged perAGENTS.md.No feature flag: this is an intentional fork-identity rename across built-in prompts, skills, and the Code Mode namespace.
Verification
bun run check(40/40tasks passing across lint and typecheck)bun run typecheck:tscinpackages/core,packages/tui, andpackages/serverpackages/core:bun run script/test.tsacross all 13 affected test files (219 pass, 0 fail), plus--rerun-each 10ontest/shuvcode-identity.test.ts(30/30 pass)packages/server(automation.test.ts),packages/tui(dialog-mcp.test.tsx),packages/app(console-extensions.test.ts),packages/gpt-live-plugin(46 pass), andpackages/plugin-browser(113 pass)git diff --checkVisual