run

package
v0.0.49 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package main implements the intent-route sub-agent CLI.

The intent-route agent is an intent router that classifies user input and delegates to the appropriate specialist agent or skill. It recognizes New Features, Flash Ideas, Issues/Bugs, Questions, and Others. It auto-detects the parent agent runner (opencode, pi, codex, crush) and delegates execution via the subagent package.

Usage:

intent-route [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 intent-route 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 intent-route 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