claudecode

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2026 License: MIT Imports: 13 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func Describe

func Describe(tool string, input map[string]any) agent.Permission

Describe turns a Claude Code tool call into a Permission with a kind, a one-line title and a readable detail.

func New

func New(spec agent.Spec) (agent.Agent, error)

New builds the adapter. It has no options of its own.

Types

type Agent

type Agent struct {
	// contains filtered or unexported fields
}

func (*Agent) Caps

func (a *Agent) Caps() agent.Caps

func (*Agent) Run

func (a *Agent) Run(ctx context.Context, req agent.Request, h agent.Handler) (agent.Result, error)

func (*Agent) Tools

func (a *Agent) Tools() []agent.Tool

Tools contributes the permission-prompt hook.

Jump to

Keyboard shortcuts

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