agents

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: MIT Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package agents lists the coding tools a launch can start.

Only Claude Code ships today. Launch defaults already store a tool per org or repository ("" meaning the app's default), so another tool can be added here without changing what is stored.

Index

Constants

View Source
const Claude = "claude"

Claude is the ID of Claude Code, the default tool.

Variables

View Source
var ErrUnknownAgent = errors.New("unknown coding tool")

ErrUnknownAgent is returned for a tool ID this build does not know.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	// ID is what launch defaults store, such as "claude".
	ID string `json:"id"`

	// Name is what the UI shows, as in "Open in Claude".
	Name string `json:"name"`

	// Command is the program a launch script runs.
	Command string `json:"command"`
}

Agent is a coding tool the launcher can start.

func All

func All() []Agent

All returns every tool, the default first.

func Default

func Default() Agent

Default returns the tool used when no launch default names one.

func Lookup

func Lookup(id string) (Agent, error)

Lookup returns the tool with id, or the default tool for "".

Jump to

Keyboard shortcuts

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