agent

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EmbeddedRules string

Functions

This section is empty.

Types

type Agents

type Agents struct {
	// contains filtered or unexported fields
}

Agents provides pre-configured runners for each team member

func NewAgents

func NewAgents(workDir string) *Agents

NewAgents creates the agent team with project-local priority Priority: project/.maxam/agents/ > ~/.maxam/agents/

func (*Agents) All added in v0.7.0

func (a *Agents) All() []string

All returns all configured runner names

func (*Agents) Get

func (a *Agents) Get(name string) (*Runner, bool)

Get returns a runner by name

func (*Agents) GetByRole added in v0.7.0

func (a *Agents) GetByRole(role string) (*Runner, bool)

GetByRole returns the first runner with the specified role

type Model added in v0.3.0

type Model string

Model represents the Claude model to use

const (
	ModelDefault Model = ""       // Use claude's default
	ModelHaiku   Model = "haiku"  // Fast, lightweight
	ModelSonnet  Model = "sonnet" // Balanced
	ModelOpus    Model = "opus"   // Most capable
)

type Runner

type Runner struct {
	Name        string
	WorkDir     string
	ClaudeMDDir string
	Timeout     time.Duration
	ContextMode config.ContextMode
	Model       Model // Model to use for this agent
}

Runner executes Claude Code with agent persona

func NewRunner

func NewRunner(name, workDir, claudeMDDir string) *Runner

NewRunner creates a new agent runner

func (*Runner) Run

func (r *Runner) Run(ctx context.Context, prompt string) (string, error)

Run executes a task with the agent

func (*Runner) RunWithAllowedTools

func (r *Runner) RunWithAllowedTools(ctx context.Context, prompt string, tools []string) (string, error)

RunWithAllowedTools executes with specific tools enabled

func (*Runner) RunWithModel added in v0.3.0

func (r *Runner) RunWithModel(ctx context.Context, prompt string, model Model) (string, error)

RunWithModel executes a task with a specific model

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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