OpenProgram Docs

References

openprogram references add docs ~/work/product-docs --description "product behaviour and terms"
openprogram references add sdk https://github.com/example/sdk --branch main
openprogram references list

Then, in any conversation: Compare @docs/api/auth.md with how we log in.

WrittenMeans
@docsThe whole folder. The agent searches and reads it as needed
@docs/api/auth.mdThat file. In the Web composer it becomes an attachment chip, like any @ file
@./docs/api/auth.mdThe working directory's own docs folder, when it has one with the same name

Typing @ in the Web composer lists the matching names first, as folders; @docs/ then searches inside docs. Every conversation's system context names each reference with its path, so the TUI, channels and --print work the same.

What the agent may do there

ReferenceRead and searchWrite, edit, patch
A folder (default)YesRefused in every permission mode, Bypass included
A folder added with --writableYesAs in the working directory: Accept edits applies, and a sandboxed command may write there
A repositoryYesRefused; it is always read-only

The closest folder decides: a project kept inside a read-only reference still writes its own files. Files the sandbox blocks from reading stay blocked. Without the sandbox, the refusal covers the file tools; shell commands are not checked.

Manage them

CommandDoes
openprogram references add NAME FOLDER--writable, --description TEXTRegisters the folder (absolute, ~, or relative to where you run it). The same name again replaces it
openprogram references add NAME URL--branch BRANCHClones an https://, ssh:// or git@host:path repository into ~/.openprogram/references/
openprogram references refresh NAMEUpdates a cloned repository to its remote branch. Nothing refreshes on its own
openprogram references remove NAMEForgets the name. A clone is deleted; a folder is left as it is
openprogram references list--jsonEvery name, path and access

In the Web composer and the TUI, /references takes the same verbs, for example /references add docs ~/work/product-docs; a relative folder there is read from the conversation's working directory. Names use letters, digits, ., _ and -. References belong to the profile and are saved in its config.json under references.

Permissions

Last updated · 2026-11-30