opencode: two profiles, per-profile permissions, shared agent prompts

oc-work: local models only on the local key, edits and most commands ask,
loads instructions/work.md. oc-local (also oc, opencode): every model,
defaults to qwen3.8-flash-next-iq3s-med, edits and commands run except
destructive and outward-facing ones. On sctfw004 oc-local presents the work
key. personal.json and work-strict.json removed.

Agents: drop variant, which has no effect on LiteLLM models. dev takes its
permissions from the profile. The read-only agents deny redirects and the
write/exec flags of allowed commands, swap find for fd, and only allow
listing forms of git branch. review defaults to the uncommitted diff.

CLAUDE.md: add the comment, process and shell-tool rules from the laptop's
AGENTS.md, and note that OpenCode reads this file.
This commit is contained in:
connor committed 2026-11-02 10:34:38 -05:00
1 parent 7ad155c4b2
commit 275a5bfb2b
16 files changed
+439 -680

No files matched your search

-2
View File
@@ -22,9 +22,7 @@
~/.config/paru: common/paru
~/.config/OrcaSlicer/user: common/OrcaSlicer/user
~/.config/opencode/opencode.json: common/opencode/opencode.json
~/.config/opencode/personal.json: common/opencode/personal.json
~/.config/opencode/work.json: common/opencode/work.json
~/.config/opencode/work-strict.json: common/opencode/work-strict.json
~/.config/opencode/local.json: common/opencode/local.json
~/.config/opencode/agents/architect.md: common/opencode/agents/architect.md
~/.config/opencode/agents/brainstorm.md: common/opencode/agents/brainstorm.md
-2
View File
@@ -48,9 +48,7 @@
~/.config/networkmanager-dmenu: common/networkmanager-dmenu
~/.julia/config/startup.jl: common/startup.jl
~/.config/opencode/opencode.json: common/opencode/opencode.json
~/.config/opencode/personal.json: common/opencode/personal.json
~/.config/opencode/work.json: common/opencode/work.json
~/.config/opencode/work-strict.json: common/opencode/work-strict.json
~/.config/opencode/local.json: common/opencode/local.json
~/.config/opencode/agents/architect.md: common/opencode/agents/architect.md
~/.config/opencode/agents/brainstorm.md: common/opencode/agents/brainstorm.md