agent

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: Apache-2.0 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 interface {
	// Name returns the display name of the agent
	Name() string
	// ConfigPath returns the path to the agent's config file
	ConfigPath() string
	// Exists returns true if the agent's config file exists
	Exists() bool
	// HasPlaywright checks if Playwright MCP is configured
	HasPlaywright() (bool, error)
	// InstallPlaywright adds Playwright MCP to the config
	InstallPlaywright() error
	// RemovePlaywright removes Playwright MCP from the config
	RemovePlaywright() error
	// HasContext7 checks if Context7 MCP is configured
	HasContext7() (bool, error)
	// InstallContext7 adds Context7 MCP to the config
	InstallContext7() error
	// RemoveContext7 removes Context7 MCP from the config
	RemoveContext7() error
	// SupportsSkills returns true if the agent supports skills
	SupportsSkills() bool
	// HasSkill checks if a skill is installed
	HasSkill(skillName string) (bool, error)
	// InstallSkill installs a skill from a source URL
	InstallSkill(skillName, source string) error
	// RemoveSkill removes a skill by name
	RemoveSkill(skillName string) error
	// SupportsPlugins returns true if the agent supports plugins
	SupportsPlugins() bool
	// HasPlugin checks if a plugin is installed
	HasPlugin(pluginName string) (bool, error)
	// InstallPlugin installs a plugin from a source URL
	InstallPlugin(pluginName, source string) error
	// RemovePlugin removes a plugin by name
	RemovePlugin(pluginName string) error
}

Agent represents an AI coding agent that supports MCP servers

func GetAgentByName

func GetAgentByName(name string) Agent

GetAgentByName returns an agent by name (case-insensitive)

func GetAllAgents

func GetAllAgents() []Agent

GetAllAgents returns all supported agents

type ClaudeAgent

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

ClaudeAgent represents Claude Code agent

func NewClaudeAgent

func NewClaudeAgent() *ClaudeAgent

NewClaudeAgent creates a new Claude Code agent

func (*ClaudeAgent) ConfigPath

func (a *ClaudeAgent) ConfigPath() string

func (*ClaudeAgent) Exists

func (a *ClaudeAgent) Exists() bool

func (*ClaudeAgent) HasContext7

func (a *ClaudeAgent) HasContext7() (bool, error)

func (*ClaudeAgent) HasPlaywright

func (a *ClaudeAgent) HasPlaywright() (bool, error)

func (*ClaudeAgent) HasPlugin

func (a *ClaudeAgent) HasPlugin(pluginName string) (bool, error)

func (*ClaudeAgent) HasSkill

func (a *ClaudeAgent) HasSkill(skillName string) (bool, error)

func (*ClaudeAgent) InstallContext7

func (a *ClaudeAgent) InstallContext7() error

func (*ClaudeAgent) InstallPlaywright

func (a *ClaudeAgent) InstallPlaywright() error

func (*ClaudeAgent) InstallPlugin

func (a *ClaudeAgent) InstallPlugin(pluginName, source string) error

func (*ClaudeAgent) InstallSkill

func (a *ClaudeAgent) InstallSkill(skillName, source string) error

func (*ClaudeAgent) Name

func (a *ClaudeAgent) Name() string

func (*ClaudeAgent) RemoveContext7

func (a *ClaudeAgent) RemoveContext7() error

func (*ClaudeAgent) RemovePlaywright

func (a *ClaudeAgent) RemovePlaywright() error

func (*ClaudeAgent) RemovePlugin

func (a *ClaudeAgent) RemovePlugin(pluginName string) error

func (*ClaudeAgent) RemoveSkill

func (a *ClaudeAgent) RemoveSkill(skillName string) error

func (*ClaudeAgent) SupportsPlugins

func (a *ClaudeAgent) SupportsPlugins() bool

func (*ClaudeAgent) SupportsSkills

func (a *ClaudeAgent) SupportsSkills() bool

type CursorAgent

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

CursorAgent represents Cursor editor agent

func NewCursorAgent

func NewCursorAgent() *CursorAgent

NewCursorAgent creates a new Cursor agent

func (*CursorAgent) ConfigPath

func (a *CursorAgent) ConfigPath() string

func (*CursorAgent) Exists

func (a *CursorAgent) Exists() bool

func (*CursorAgent) HasContext7

func (a *CursorAgent) HasContext7() (bool, error)

func (*CursorAgent) HasMCP

func (a *CursorAgent) HasMCP(name string) (bool, error)

HasMCP checks if a specific MCP server is configured

func (*CursorAgent) HasPlaywright

func (a *CursorAgent) HasPlaywright() (bool, error)

func (*CursorAgent) HasPlugin

func (a *CursorAgent) HasPlugin(pluginName string) (bool, error)

func (*CursorAgent) HasSkill

func (a *CursorAgent) HasSkill(skillName string) (bool, error)

func (*CursorAgent) InstallContext7

func (a *CursorAgent) InstallContext7() error

func (*CursorAgent) InstallMCP

func (a *CursorAgent) InstallMCP(name string, mcpConfig map[string]interface{}) error

InstallMCP adds an MCP server to the config

func (*CursorAgent) InstallPlaywright

func (a *CursorAgent) InstallPlaywright() error

func (*CursorAgent) InstallPlugin

func (a *CursorAgent) InstallPlugin(pluginName, source string) error

func (*CursorAgent) InstallSkill

func (a *CursorAgent) InstallSkill(skillName, source string) error

func (*CursorAgent) Name

func (a *CursorAgent) Name() string

func (*CursorAgent) RemoveContext7

func (a *CursorAgent) RemoveContext7() error

func (*CursorAgent) RemoveMCP

func (a *CursorAgent) RemoveMCP(name string) error

RemoveMCP removes an MCP server from the config

func (*CursorAgent) RemovePlaywright

func (a *CursorAgent) RemovePlaywright() error

func (*CursorAgent) RemovePlugin

func (a *CursorAgent) RemovePlugin(pluginName string) error

func (*CursorAgent) RemoveSkill

func (a *CursorAgent) RemoveSkill(skillName string) error

func (*CursorAgent) SupportsPlugins

func (a *CursorAgent) SupportsPlugins() bool

func (*CursorAgent) SupportsSkills

func (a *CursorAgent) SupportsSkills() bool

type GeminiAgent

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

GeminiAgent represents Gemini CLI agent

func NewGeminiAgent

func NewGeminiAgent() *GeminiAgent

NewGeminiAgent creates a new Gemini CLI agent

func (*GeminiAgent) ConfigPath

func (a *GeminiAgent) ConfigPath() string

func (*GeminiAgent) Exists

func (a *GeminiAgent) Exists() bool

func (*GeminiAgent) HasContext7

func (a *GeminiAgent) HasContext7() (bool, error)

func (*GeminiAgent) HasPlaywright

func (a *GeminiAgent) HasPlaywright() (bool, error)

func (*GeminiAgent) HasPlugin

func (a *GeminiAgent) HasPlugin(pluginName string) (bool, error)

func (*GeminiAgent) HasSkill

func (a *GeminiAgent) HasSkill(skillName string) (bool, error)

func (*GeminiAgent) InstallContext7

func (a *GeminiAgent) InstallContext7() error

func (*GeminiAgent) InstallPlaywright

func (a *GeminiAgent) InstallPlaywright() error

func (*GeminiAgent) InstallPlugin

func (a *GeminiAgent) InstallPlugin(pluginName, source string) error

func (*GeminiAgent) InstallSkill

func (a *GeminiAgent) InstallSkill(skillName, source string) error

func (*GeminiAgent) Name

func (a *GeminiAgent) Name() string

func (*GeminiAgent) RemoveContext7

func (a *GeminiAgent) RemoveContext7() error

func (*GeminiAgent) RemovePlaywright

func (a *GeminiAgent) RemovePlaywright() error

func (*GeminiAgent) RemovePlugin

func (a *GeminiAgent) RemovePlugin(pluginName string) error

func (*GeminiAgent) RemoveSkill

func (a *GeminiAgent) RemoveSkill(skillName string) error

func (*GeminiAgent) SupportsPlugins

func (a *GeminiAgent) SupportsPlugins() bool

func (*GeminiAgent) SupportsSkills

func (a *GeminiAgent) SupportsSkills() bool

type OpenCodeAgent

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

OpenCodeAgent represents OpenCode agent

func NewOpenCodeAgent

func NewOpenCodeAgent() *OpenCodeAgent

NewOpenCodeAgent creates a new OpenCode agent

func (*OpenCodeAgent) ConfigPath

func (a *OpenCodeAgent) ConfigPath() string

func (*OpenCodeAgent) Exists

func (a *OpenCodeAgent) Exists() bool

func (*OpenCodeAgent) HasContext7

func (a *OpenCodeAgent) HasContext7() (bool, error)

func (*OpenCodeAgent) HasPlaywright

func (a *OpenCodeAgent) HasPlaywright() (bool, error)

func (*OpenCodeAgent) HasPlugin

func (a *OpenCodeAgent) HasPlugin(pluginName string) (bool, error)

func (*OpenCodeAgent) HasSkill

func (a *OpenCodeAgent) HasSkill(skillName string) (bool, error)

func (*OpenCodeAgent) InstallContext7

func (a *OpenCodeAgent) InstallContext7() error

func (*OpenCodeAgent) InstallPlaywright

func (a *OpenCodeAgent) InstallPlaywright() error

func (*OpenCodeAgent) InstallPlugin

func (a *OpenCodeAgent) InstallPlugin(pluginName, source string) error

func (*OpenCodeAgent) InstallSkill

func (a *OpenCodeAgent) InstallSkill(skillName, source string) error

func (*OpenCodeAgent) Name

func (a *OpenCodeAgent) Name() string

func (*OpenCodeAgent) RemoveContext7

func (a *OpenCodeAgent) RemoveContext7() error

func (*OpenCodeAgent) RemovePlaywright

func (a *OpenCodeAgent) RemovePlaywright() error

func (*OpenCodeAgent) RemovePlugin

func (a *OpenCodeAgent) RemovePlugin(pluginName string) error

func (*OpenCodeAgent) RemoveSkill

func (a *OpenCodeAgent) RemoveSkill(skillName string) error

func (*OpenCodeAgent) SupportsPlugins

func (a *OpenCodeAgent) SupportsPlugins() bool

func (*OpenCodeAgent) SupportsSkills

func (a *OpenCodeAgent) SupportsSkills() bool

Jump to

Keyboard shortcuts

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