Skip to content

feat(profile): add OpenCode profile adapter - #477

Open
christso wants to merge 2 commits into
feat/460-pi-omp-profilesfrom
feat/460-opencode-profile
Open

feat(profile): add OpenCode profile adapter#477
christso wants to merge 2 commits into
feat/460-pi-omp-profilesfrom
feat/460-opencode-profile

Conversation

@christso

@christso christso commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add OpenCode profiles through additive OPENCODE_CONFIG and OPENCODE_CONFIG_DIR overrides
  • file-install profile skills and commands, serialize strict settings plus local/remote MCP into one owned config, and generate launchers
  • reject native plugin mode because OpenCode lacks a complete inspect/update/remove lifecycle
  • clean exact runtime-generated metadata while retaining modified or unrelated root content

Stack

Validation

  • bun run typecheck
  • bun run lint
  • bun run build
  • bun test — 1687 pass, 6 skip, 0 fail
  • bun run test:e2e — 142 pass, 4 skip, 0 fail
  • bun run docs:build
  • focused final review — no P0-P2 findings

Real runtime dogfood

OpenCode 1.18.30 in an isolated HOME/XDG sandbox:

  • installed a file-backed profile with launcher, strict settings, commands, skills, and a disposable stdio MCP server
  • debug config proved profile settings override conflicting global values while preserving non-conflicting global values
  • mcp list connected to the disposable server; generated config retained {env:DOGFOOD_TOKEN} while runtime resolution supplied the environment value
  • debug skill proved profile skills stay out of default OpenCode, project A/B skills remain project-local, and named/default launchers preserve normal project discovery
  • two targeted updates were idempotent and left both project trees unchanged
  • one-pass removal deleted managed config, skills, commands, launcher, runtime-generated .gitignore, state, and root while preserving global and project files

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 14, 2026

Copy link
Copy Markdown

Deploying allagents with  Cloudflare Pages  Cloudflare Pages

Latest commit: b324a55
Status: ✅  Deploy successful!
Preview URL: https://8e23b6b5.allagents.pages.dev
Branch Preview URL: https://feat-460-opencode-profile.allagents.pages.dev

View logs

@christso
christso added this pull request to stack #476 September 14, 2026 07:02
@christso
christso force-pushed the feat/460-opencode-profile branch from d04a5c6 to c4eccf3 Compare September 14, 2026 10:04
@christso
christso force-pushed the feat/460-opencode-profile branch from c4eccf3 to 7b3ea82 Compare September 14, 2026 20:33
@christso
christso force-pushed the feat/460-opencode-profile branch from 7b3ea82 to b324a55 Compare September 14, 2026 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant