Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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>`. Every runner that can be told "you are already
// externally sandboxed" is told so here: claude and codex have
// explicit modes for it, pi has project trust.
DefaultArgs []string
// MCPConfigFlag is the runner's flag for loading an external MCP
// server config file, or "" if clawk doesn't know how to hand this
// runner one. When set and the sandbox declares servers, the flag and
// sandbox.GuestMCPConfigPath are appended to the launch args.
//
// A per-runner flag rather than a line in DefaultArgs because the
// value is conditional (a sandbox with no `mcp ( … )` block must not
// get a flag pointing at a file that isn't there) and because each
// runner spells this differently — codex and opencode use their own
// config formats and pi loads MCP through an extension, so they stay
// empty until someone renders those too.
MCPConfigFlag string
}
Agent describes how a coding-agent runner is launched inside a sandbox. Treating each agent (claude, codex, pi, 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 another runner is a one-line registry change.
Source Files
¶
- admission.go
- agent_docs.go
- agent_session.go
- agents.go
- apply.go
- attach.go
- auth.go
- blocklist.go
- complete.go
- compose_files.go
- compose_mcp.go
- compose_serial.go
- create.go
- cwd.go
- daemon.go
- debug.go
- destroy.go
- doctor.go
- doctor_linux.go
- down.go
- fcd.go
- forward.go
- here.go
- hostmem_linux.go
- idle.go
- image.go
- image_unix.go
- lifecycle.go
- list.go
- migrate.go
- mod.go
- namespace.go
- netpolicy.go
- netwatch.go
- network.go
- observe.go
- policy.go
- pr.go
- pr_state.go
- progress_ui.go
- providers_linux.go
- push_files.go
- resources.go
- reverse_forward.go
- root.go
- run.go
- runverb.go
- serial.go
- serial_proxy.go
- sessions.go
- sessions_cmd.go
- setup.go
- shares.go
- shell.go
- status.go
- system.go
- up.go
- version.go
- vshell.go
- vzd_stub.go
- work.go
- worktree.go
Click to show internal directories.
Click to hide internal directories.