phoebus_os/.opencode/opencode.json
Phoebus b6b9630148
Some checks are pending
ci / test (push) Waiting to run
feat(git): add license, opencode project config and branch protection
- LICENSE (GPL-2.0-or-later, matching the crate manifests) plus a README note.
- .opencode/opencode.json encodes the safety rules as tool permissions (deny
  disk/format tools and secret stores) and pulls OBJECTIVES/ROADMAP/HANDOFF
  into context; .opencode/command/{verify,handoff}.md add session commands.
- scripts/forgejo.sh protect/unprotect and 'make protect'; main is protected
  (owner push allowed, force-push blocked).
2026-09-20 02:41:35 -07:00

43 lines
1.1 KiB
JSON

{
"$schema": "https://opencode.ai/config.json",
"instructions": ["docs/OBJECTIVES.md", "docs/ROADMAP.md", "docs/HANDOFF.md"],
"permission": {
"edit": "allow",
"external_directory": {
"*": "allow",
"~/.ssh/**": "deny",
"~/.gnupg/**": "deny",
"~/.config/phoebus/**": "deny",
"~/.aws/**": "deny",
"~/.config/gcloud/**": "deny",
"~/.password-store/**": "deny"
},
"bash": {
"*": "allow",
"rm -rf /": "deny",
"rm -rf /*": "deny",
"rm -rf ~": "deny",
"rm -rf ~/*": "deny",
"mkfs*": "deny",
"dd if=*of=/dev/*": "deny",
"dd of=/dev/*": "deny",
"cryptsetup *": "deny",
"wipefs *": "deny",
"sgdisk *": "deny",
"sfdisk *": "deny",
"fdisk *": "deny",
"parted *": "deny",
"shred *": "deny",
"mkswap *": "deny",
"mount *": "deny",
"umount *": "deny",
"chroot *": "deny",
"cat /etc/shadow": "deny",
"cat ~/.ssh/*": "deny",
"cat ~/.gnupg/*": "deny",
"cat ~/.config/phoebus/*": "deny",
"cat ~/.aws/*": "deny",
"cat ~/.netrc": "deny"
}
}
}