claude

package
v0.5.0 Latest Latest
Warning

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

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

Documentation

Overview

Package claude runs the Claude Code CLI headless with stream-json I/O. Approvals arrive through the pocketagent MCP bridge, which Claude Code calls as its --permission-prompt-tool.

Index

Constants

This section is empty.

Variables

View Source
var ErrNoConversation = errors.New("session not found")

ErrNoConversation means the session to resume does not exist (for example because it belongs to another directory).

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.

Types

type Agent

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

func New

func New(cfg config.Agent) *Agent

func (*Agent) Caps

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

func (*Agent) Close

func (a *Agent) Close()

func (*Agent) Models

func (a *Agent) Models(string) []string

func (*Agent) Run

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

Jump to

Keyboard shortcuts

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