add_dirs

command
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2026 License: GPL-3.0 Imports: 7 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL