run

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package main implements the explore sub-agent CLI.

The explore agent is a file search specialist that excels at navigating and exploring codebases. It auto-detects the parent agent runner (opencode, pi, codex, crush) and delegates execution via the subagent package.

Usage:

explore [OPTIONS] <prompt>

Options:

--agent-runner <id>      override agent runner (opencode|pi|codex|crush)
--model <model>          override model
--model-env <env>        override the env var used to pass the model
--session-id <id>        resume an existing session
--timeout <duration>     timeout (default: 1h, min: 1m)
--catch-up               replay session events
--status                 show session status
--list-sessions          list all sessions
--session-base <dir>     override sessions directory
-h, --help               show help

Index

Constants

This section is empty.

Variables

View Source
var SkillFile string

Functions

func Run

func Run(ctx context.Context, cfg Config) error

Run runs the explore agent programmatically with the given config.

func RunArgs

func RunArgs(args []string) error

RunArgs parses CLI arguments into a Config and delegates to Run.

Types

type Config

type Config struct {
	ModelEnv     string        // env var name for model; empty = default
	AgentRunner  string        // override agent runner (opencode|pi|codex|crush)
	Model        string        // model name (set via env var)
	SessionID    string        // resume an existing session
	Timeout      time.Duration // 0 = default 1h
	CatchUp      bool          // replay session events
	Status       bool          // show session status
	ListSessions bool          // list all sessions
	SessionBase  string        // override sessions directory
	Prompt       string        // user prompt
}

Config holds all customizable configuration for the explore agent. Zero-value fields fall back to sensible defaults.

Jump to

Keyboard shortcuts

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