cli

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: Apache-2.0 Imports: 55 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute() error

Types

type Agent

type Agent struct {
	// Name is the user-facing runner argument (`clawk run <name>`).
	// Must be unique. Lowercase ASCII, no whitespace. Also the command
	// resolved on the guest agent's PATH (which carries the image
	// config's Env), so it lands wherever the image installed the tool.
	Name string

	// DefaultArgs are prepended to whatever the user passes through
	// `-- <args>`. Claude and Codex both have explicit "externally
	// sandboxed" modes, so clawk enables those by default.
	DefaultArgs []string
}

Agent describes how a coding-agent runner is launched inside a sandbox. Treating each agent (claude, codex, opencode, ...) as a data-driven entry rather than a per-agent code path keeps the CLI surface symmetric: every agent's verb works the same way, and adding a fourth runner is a one-line registry change.

Jump to

Keyboard shortcuts

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