Documentation
¶
Overview ¶
Demonstrates opencodesdk.WithAddDirs — forwarding ACP's unstable `additionalDirectories` field to opencode.
When opencode advertises SessionCapabilities.AdditionalDirectories during ACP initialize, the SDK passes the extra directories on session/new, session/load, session/fork, and session/resume so the agent can read files beyond the configured cwd. When the capability is missing, the SDK silently drops the option and logs a warning — no wire error.
go run ./examples/add_dirs
Click to show internal directories.
Click to hide internal directories.