agents

package
v0.1.0-beta.4 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2025 License: MIT Imports: 5 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	Type      AgentType `json:"type"`
	Name      string    `json:"name"`
	Command   string    `json:"command"`
	Available bool      `json:"available"`
	Version   string    `json:"version"`
}

Agent represents a coding agent with its metadata

type AgentExecutionRequest

type AgentExecutionRequest struct {
	Language       string                    `json:"language"`
	TargetDir      string                    `json:"target_dir"`
	Directory      string                    `json:"directory,omitempty"`
	DirectoryPlans []templates.DirectoryPlan `json:"directory_plans,omitempty"`
}

AgentExecutionRequest contains all parameters needed for agent execution

type AgentType

type AgentType string

AgentType represents different coding agent types

const (
	GeminiCLI   AgentType = "gemini"
	ClaudeCode  AgentType = "claude"
	OpenAICodex AgentType = "openai"
	GitHubCLI   AgentType = "github"
)

type Detector

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

Detector handles detection of available coding agents

func NewDetector

func NewDetector() (*Detector, error)

NewDetector creates a new agent detector

func (*Detector) DetectAvailableAgents

func (d *Detector) DetectAvailableAgents() []Agent

DetectAvailableAgents scans the system for available coding agents

func (*Detector) ExecuteWithAgent

func (d *Detector) ExecuteWithAgent(agentType AgentType, request AgentExecutionRequest) error

ExecuteWithAgent sends instructions to the specified agent

func (*Detector) GeneratePrompt

func (d *Detector) GeneratePrompt(request AgentExecutionRequest) (string, error)

GeneratePrompt creates a prompt using the template engine

Jump to

Keyboard shortcuts

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