Documentation
¶
Overview ¶
Package setup registers ka with the coding agents installed on this machine: the ka MCP server and the ka skill, at the user level, so every project the user opens gets them. `ka setup` runs it; it is safe to run again (it replaces ka's own entries and touches nothing else).
Each agent is configured through its own CLI where the vendor documents an add command, and otherwise by merging into its JSON config file. The formats follow the vendors' documentation as of 2026-11.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct {
// Ka is the command agents run (an absolute path, so GUI apps that don't
// read the shell's PATH still find it).
Ka string
// Only limits setup to these agent IDs (empty: every detected agent).
Only []string
// DryRun reports what would change without changing it.
DryRun bool
// Home overrides the home directory (tests).
Home string
// LookPath overrides exec.LookPath (tests).
LookPath func(string) (string, error)
// Run overrides running an agent's CLI (tests).
Run func(ctx context.Context, name string, args ...string) error
}
Options control a run.