Documentation
¶
Overview ¶
Package claudecode drives the Claude Code CLI headless, using its stream-json input and output. Approvals reach the user through a tool the adapter contributes to pocketagent's tool server, which Claude Code calls as its --permission-prompt-tool.
Index ¶
- func Describe(tool string, input map[string]any) agent.Permission
- func New(spec agent.Spec) (agent.Agent, error)
- type Agent
- func (a *Agent) Caps() agent.Caps
- func (a *Agent) ResumeCommand(cwd, sessionID string) string
- func (a *Agent) Run(ctx context.Context, req agent.Request, h agent.Handler) (agent.Result, error)
- func (a *Agent) Sessions(_ context.Context, _, cwd string) ([]agent.SessionInfo, error)
- func (a *Agent) Tools() []agent.Tool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Agent ¶
type Agent struct {
// contains filtered or unexported fields
}
func (*Agent) ResumeCommand ¶ added in v0.10.0
ResumeCommand is how to continue a session in a terminal.
Click to show internal directories.
Click to hide internal directories.