feat/opencode-bootstrap #1

Merged
Lynx merged 3 commits from feat/opencode-bootstrap into main 2026-05-31 20:26:59 +02:00
Owner
No description provided.
Installs OpenCode as an alternative agent on top of the global config that
bootstrap.sh already lays down — no system-layer reinstall (preflight bails if
missing). Writes ~/.config/opencode/opencode.json: instructions glob over
~/.claude/rules (path-scoped rules like expo.md excluded since OpenCode can't
honor paths: frontmatter), context7 + playwright MCP, a llama.cpp LAN provider
preset, and a permission.bash allow-list mirroring Claude Code. Ports the plan
and handoff slash commands into ~/.config/opencode/commands.

Relies on OpenCode's native ~/.claude/CLAUDE.md global fallback (additive to
instructions) instead of an AGENTS.md symlink.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Autodetect which agent CLIs are installed and configure each: claude mcp add
for Claude Code's .mcp.json (unchanged), and a jq merge of an mcp.socraticode
block into the project's opencode.json for OpenCode (type:local, command array,
environment key). Merge preserves any existing opencode.json keys and refuses
to clobber invalid JSON.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Replace the stale 'bootstrap.sh installs it alongside' section: OpenCode is now
a separate bootstrap-opencode.sh on top of the same global config. Drop the
AGENTS.md symlink (native CLAUDE.md fallback covers it), note the expo.md
exclusion, the llama.cpp preset, context7+playwright MCP, and that
setup-socraticode autodetects both agents.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Lynx merged commit fd60a6b76c into main 2026-05-31 20:26:59 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Lynx/lean-code!1
No description provided.