Oc Auto Perms
Intent-aware OpenCode permissions powered by TypeSafe AI's Jev model.
3
近 30 天 +2
641
近 7 天 19
45.1
生态多维模型
13 天前
2026-09-21
快速安装与配置
opencode.json写入当前项目的 opencode.json,只对这个仓库生效。
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["oc-auto-perms@0.1.3"]
}写入 ~/.config/opencode/opencode.json,对所有项目生效。
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["oc-auto-perms@0.1.3"]
}若你要在本地改造这个插件,先装到项目里再从本地路径引用。
shell
pnpm add -D oc-auto-permsOpenCode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。
OpenCode V2 plugins by Ope Oginni, developed in one monorepo and released as independent npm packages.
Plugins
| Package | Description |
|---|---|
oc-auto-perms |
Universal intent-aware permissions powered by TypeSafe AI's Jev model |
oc-ping |
WIP — iMessage notifications and remote replies powered by Photon |
oc-invaders |
WIP — Play TUI Invaders while an OpenCode agent works |
Development
Install dependencies and run every package's checks:
bun install
bun run check
bun test
bun run build
Run a command for one plugin:
bun run --filter oc-ping test
bun run --filter oc-ping build
Each plugin keeps its own local OpenCode example. To test oc-ping, enter its
workspace, copy the example, build it, and start an isolated OpenCode instance:
cd packages/oc-ping
cp opencode.example.jsonc opencode.jsonc
bun run build
opencode2 --standalone
Releases
Packages are independently versioned with Changesets:
bun run changeset
bun run version-packages
bun run release
Before publishing, test the package contents with:
bun run pack:dry-run
同类生态推荐
Add Dir
opencode-add-dir
Add working directories to your OpenCode session with auto-approved permissions
Osuki Agent
@osuki-dev/opencode-osuki-agent
Effect-native OpenCode coordinator with Jev routing and persistent goals
Auto Permissions
opencode-auto-permissions
Automatic, context-aware permission review for OpenCode