Repository navigation
feat(opencode): add optional Jev auto-approve backend - #2
BrendanMartin wants to merge 1 commit into
Conversation
|
I built an optional TypeSafe Jev backend on top of this branch, without changing the default classifier. It is one commit on TypeSafe is not in the built-in provider list, so the key goes through the existing custom-provider login:
Then enable the backend: {
"$schema": "https://opencode.ai/config.json",
"experimental": { "auto_approve": true },
"auto_approve": {
"backend": "jev",
"jev": { "model": "jev-latest" }
}
}
"jev": {
"model": "jev-latest",
"instructions": "Your trusted policy guidance.",
"criteria": {
"approve": "When to run it.",
"ask": "When to prompt.",
"deny": "When to reject it."
},
"min_probability": 0.95
}Restart OpenCode, then press Tab from Build until Auto-approve is selected. |
Adds an optional TypeSafe Jev backend on top of anomalyco#39015.
The existing OpenCode classifier remains the default. Setting
auto_approve.backendtojevreads thetypesafecredential from OpenCode's existing auth store and classifies each consequential action asapprove,ask, ordeny. Approve runs the action, ask opens the normal prompt, and deny rejects it. Question wording and the probability threshold are configurable; the answer labels stay fixed.This branch is one commit on that pull request's head,
ac6133f633b2b5bed0a9bebf45e21041455fa065.