command

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: 11 Imported by: 0

Documentation

Overview

Package command wraps any CLI that takes a prompt and prints a reply, configured as an argv template. It is the escape hatch for agents that don't speak ACP (Aider, custom scripts, ...).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StripANSI

func StripANSI(s string) string

StripANSI removes terminal color and cursor codes.

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