Ship a form OpenCode loads from its system directory #268
Labels
No labels
bug
cannot reproduce
duplicate
enhancement
help wanted
invalid
need info
need triage
need verification
not a bug
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
claudiomaradonna/agent-foundry#268
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Agent Foundry could ship in a form OpenCode loads from its system
directory, so a repository gets the policy, skills, subagents, and hooks
without holding any foundry file and without an umbrella repository.
Scenario
https://git.unitoo.it/claudiomaradonna/ministry launches bots on
OpenCode through Azkaban, on repositories that should stay free of agent
files. It can mount one read-only folder per project at
/etc/opencode,which OpenCode reads on Linux beside the project's own configuration and
above it.
Evidence
Tried on 2026-12-01 with OpenCode 2.4.2 in Azkaban's container, a folder
mounted read-only at
/etc/opencode:instructionsarray of itsopencode.jsonreached the model, with no tool call;
skills/was listed and loaded;mcp.usepolicies removed a serverthe workspace's own
opencode.jsonadded.Not tried: its
agents/andplugins/folders, whichhttps://opencode.ai/docs/config/ says it loads too.
What stands in the way
Seen at
7e74699f3e7e7502f5247fa6c6c862179016628a:.agents/scripts/,.agents/templates/, and.agents/hooks/by their path in therepository;
AGENTS.mdholds the policy together with the project's facts,Architecture and How to interact with the project, which a mounted
file cannot hold;
.plans/and.worktrees/count on the repository's.gitignore;foundry-upgrade's Record assume the filesare tracked in the repository.
Smallest change
A build that lays the foundry out as that folder:
opencode.jsonwiththe policy as
instructions,skills/,agents/,plugins/, and thescripts, templates, and hooks at a path the skills resolve from their
own folder. Claude Code and Codex keep the forms they have.