Documentation
¶
Overview ¶
Package sessioncwd exposes the shared session cwd binding to agents.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(_ Config, deps Deps) (agentkit.ToolProvider, error)
New registers tool/session-cwd: set or clear the calling session's cwd.
Best practices:
- Mount through tools/runtime deps.dynamicTools to refresh the current cwd in the description each turn.
- The same provider can be supplied to acp/session-mcp-tools; calls use their inbound session context.
- Changes take effect next turn; an empty path clears only the session override.
Types ¶
type Deps ¶
type Deps struct {
SessionStore agentkit.SessionStore `json:"sessionStore"`
Workspace workspace.Service `json:"workspace"`
}
Click to show internal directories.
Click to hide internal directories.