Skip to content

nanocoai/nanoclaw / .claude/skills/add-opencode

add-opencode

Verified

Use OpenCode as an agent provider. OpenRouter, OpenAI, Google, DeepSeek, etc. via OpenCode config — not the Anthropic Agent SDK. Per group via `ncl groups config update --provider opencode`; host passes OPENCODE_* and XDG mount when spawning containers.

FileKindSize
ARCHITECTURE.mdmarkdown8.0 KB
REMOVE.mdmarkdown3.4 KB
SKILL.mdskill md19.8 KB
apply-fixtures.jsonconfig303 B
payload/container/agent-runner/src/provider-contracts/opencode.tsscript866 B
payload/container/agent-runner/src/providers/mcp-to-opencode.test.tsscript2.7 KB
payload/container/agent-runner/src/providers/mcp-to-opencode.tsscript1.6 KB
payload/container/agent-runner/src/providers/opencode-auth.test.tsscript3.1 KB
payload/container/agent-runner/src/providers/opencode-auth.tsscript1.7 KB
payload/container/agent-runner/src/providers/opencode-config.tsscript10.0 KB
payload/container/agent-runner/src/providers/opencode-memory.tsscript4.4 KB
payload/container/agent-runner/src/providers/opencode-registration.test.tsscript625 B
payload/container/agent-runner/src/providers/opencode-turn.tsscript14.1 KB
payload/container/agent-runner/src/providers/opencode.config.test.tsscript16.2 KB
payload/container/agent-runner/src/providers/opencode.conformance.test.tsscript253 B
payload/container/agent-runner/src/providers/opencode.empty-resume.test.tsscript14.7 KB
payload/container/agent-runner/src/providers/opencode.factory.test.tsscript331 B
payload/container/agent-runner/src/providers/opencode.memory.test.tsscript6.9 KB
payload/container/agent-runner/src/providers/opencode.native.test.tsscript17.6 KB
payload/container/agent-runner/src/providers/opencode.question.test.tsscript7.6 KB
payload/container/agent-runner/src/providers/opencode.shared-runtime.test.tsscript30.9 KB
payload/container/agent-runner/src/providers/opencode.sse-cleanup.test.tsscript6.4 KB
payload/container/agent-runner/src/providers/opencode.tsscript24.9 KB
payload/scripts/opencode-auth-config.test.tsscript27.1 KB
payload/scripts/opencode-auth.test.tsscript19.7 KB
payload/scripts/opencode-auth.tsscript21.4 KB
payload/scripts/opencode-gateway.test.tsscript7.1 KB
payload/scripts/opencode-host.test.tsscript13.4 KB
payload/scripts/opencode-host.tsscript8.9 KB
payload/scripts/opencode-model-config.tsscript8.6 KB
payload/scripts/opencode-models.test.tsscript10.6 KB
payload/scripts/opencode-models.tsscript4.0 KB
payload/scripts/opencode-vault.test.tsscript3.3 KB
payload/scripts/opencode-vault.tsscript2.7 KB
payload/scripts/tsconfig.opencode-auth.jsonconfig171 B
payload/setup/providers/opencode.test.tsscript1.2 KB
payload/setup/providers/opencode.tsscript806 B
payload/src/provider-contracts/opencode.tsscript2.9 KB
payload/src/providers/opencode-auth-stub.tsscript909 B
payload/src/providers/opencode-registration.test.tsscript8.5 KB
payload/src/providers/opencode.tsscript2.7 KB
# Remove OpenCode

Before removing code, switch each OpenCode group to an installed provider using
`ncl groups config update --id <group-id> --provider claude`, then restart that
group. Use `/migrate-memory` first if needed. Do not edit materialized
`container.json` files or clear database rows directly.

Delete `import './opencode.js';` from these five barrels, leaving other imports:

- `setup/providers/index.ts`
- `src/providers/index.ts`
- `src/provider-contracts/index.ts`
- `container/agent-runner/src/providers/index.ts`
- `container/agent-runner/src/provider-contracts/index.ts`

Delete each skill-owned destination in the `nc:copy` block of [SKILL.md](SKILL.md).
Use the destination at the project root, not the source under `payload/`. Check
the applied skill version and ownership before deleting: preserve unrelated files
and local work, and leave shared registry, contract, memory, and cwd-shim files in
place. The install journal records which files the automatic apply actually wrote.

Also remove `src/opencode-dockerfile.test.ts`, the legacy skill-owned guard from
before the `cli-tools.json` migration, and the retired attachment test an older
skill version copied:

```bash
rm -f src/opencode-dockerfile.test.ts container/agent-runner/src/providers/opencode.attachments.test.ts
```

If an older skill version installed the memory plugin and managed config, remove
those unused skill-owned files too, including ignored generated dependencies:

```bash
rm -f container/agent-runner/src/providers/opencode-memory-plugin.ts
rm -f container/agent-runner/src/providers/opencode.compaction.test.ts
rm -rf container/agent-runner/src/providers/opencode-managed-config
```

Recreating affected containers discards their old managed config symlinks. Leave
other tools' config and persisted session data alone.

If an older skill version installed `src/opencode-cli-tools.test.ts`, delete
that legacy skill-owned test as well.

Remove the runner dependency with `cd container/agent-runner && bun remove
@opencode-ai/sdk`. Delete only the object named `opencode-ai` from
`container/cli-tools.json`. Both package and lockfile must be updated together.

If `DEFAULT_AGENT_PROVIDER=opencode` is saved in `.env`, change only that key to
`claude` (or another installed provider) before restarting the host. Then remove
OpenCode-specific `.env` settings that are no longer used. Keep
`ANTHROPIC_BASE_URL` if another integration still needs it. Session state,
memory, and credentials stored in the gateway are user data: retain them unless the operator
explicitly requests deletion. The fixed credential stub may remain unused.

Run the host build and runner typecheck, then `./container/build.sh build` to
remove the baked SDK and CLI from the local image. Restart the NanoClaw host
using the installation's normal service workflow. Verify that no OpenCode
import remains in any of the five barrels and neither dependency manifest
contains its OpenCode entry. An uninstalled provider fails in the runner; the
host can first warn and compose default surfaces. Switch affected groups before
removing the skill.

The host helper is removed with the payload. Remove `data/host-harness/opencode/`
only if this installation created it and the operator wants its private CLI
removed. Preserve globally installed OpenCode, native credentials, configuration,
and conversation history. Existing native OpenCode can still run in this checkout.
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 471kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 322kUpdated Claude CodeCodexVerifiedInstall