mirror of
https://github.com/wesammustafa/opencode-primer.git
synced 2026-11-18 18:04:22 +00:00
- opencode.json: a real, runnable project config with safe defaults — edit:"ask", glob-pattern bash map (auto-allow common read-only ops, deny rm -rf and git push --force), webfetch and websearch on "ask", external_directory denied. Useful as a starting point readers can copy verbatim. - tui.json: minimal example covering theme, scroll speed, leader timeout, keybinds, attention/notifications. - Images/README.md: replaces .gitkeep with explicit contribution rules — no copyrighted material, prefer SVG over PNG, prefer mermaid over raster when the concept fits.
44 lines
999 B
JSON
44 lines
999 B
JSON
{
|
|
"$schema": "https://opencode.ai/config.json",
|
|
"model": "anthropic/claude-sonnet-4-5",
|
|
"share": "manual",
|
|
"autoupdate": "notify",
|
|
"instructions": ["AGENTS.md", "CONTRIBUTING.md"],
|
|
"permission": {
|
|
"edit": "ask",
|
|
"bash": {
|
|
"*": "ask",
|
|
"ls *": "allow",
|
|
"ls": "allow",
|
|
"cat *": "allow",
|
|
"git status*": "allow",
|
|
"git diff*": "allow",
|
|
"git log*": "allow",
|
|
"git show*": "allow",
|
|
"grep *": "allow",
|
|
"rg *": "allow",
|
|
"find . *": "allow",
|
|
"wc *": "allow",
|
|
"head *": "allow",
|
|
"tail *": "allow",
|
|
"rm -rf*": "deny",
|
|
"rm *": "ask",
|
|
"git push --force*": "deny",
|
|
"git reset --hard*": "deny",
|
|
"curl *": "ask",
|
|
"npm publish*": "deny"
|
|
},
|
|
"webfetch": "ask",
|
|
"websearch": "ask",
|
|
"external_directory": "deny"
|
|
},
|
|
"agent": {
|
|
"build": {
|
|
"model": "anthropic/claude-sonnet-4-5"
|
|
},
|
|
"plan": {
|
|
"model": "anthropic/claude-haiku-4-5"
|
|
}
|
|
}
|
|
}
|