Documentation
¶
Overview ¶
Package agents contains adapters for writing Atlas integration files for local coding agents.
Index ¶
- type Agent
- type Claude
- func (Claude) DetectProject(root string) bool
- func (Claude) DetectSystem(context.Context) bool
- func (Claude) DisplayName() string
- func (Claude) GuidelinesPath(root string) string
- func (Claude) MCPConfigPath(root string) string
- func (Claude) Name() string
- func (c Claude) RemoveMCPConfig(_ context.Context, root string, serverName string) error
- func (Claude) SkillsPath(root string) string
- func (c Claude) WriteMCPConfig(_ context.Context, root string, server MCPServerConfig) error
- type Codex
- func (Codex) DetectProject(root string) bool
- func (Codex) DetectSystem(context.Context) bool
- func (Codex) DisplayName() string
- func (Codex) GuidelinesPath(root string) string
- func (Codex) MCPConfigPath(root string) string
- func (Codex) Name() string
- func (c Codex) RemoveMCPConfig(_ context.Context, root string, serverName string) error
- func (Codex) SkillsPath(root string) string
- func (c Codex) WriteMCPConfig(_ context.Context, root string, server MCPServerConfig) error
- type Copilot
- func (Copilot) DetectProject(root string) bool
- func (Copilot) DetectSystem(context.Context) bool
- func (Copilot) DisplayName() string
- func (Copilot) GuidelinesPath(root string) string
- func (Copilot) MCPConfigPath(root string) string
- func (Copilot) Name() string
- func (Copilot) PromptsPath(root string) string
- func (c Copilot) RemoveMCPConfig(_ context.Context, root string, serverName string) error
- func (Copilot) SkillsPath(root string) string
- func (c Copilot) WriteMCPConfig(_ context.Context, root string, server MCPServerConfig) error
- type Gemini
- func (Gemini) DetectProject(root string) bool
- func (Gemini) DetectSystem(context.Context) bool
- func (Gemini) DisplayName() string
- func (Gemini) GuidelinesPath(root string) string
- func (Gemini) MCPConfigPath(root string) string
- func (Gemini) Name() string
- func (g Gemini) RemoveMCPConfig(_ context.Context, root string, serverName string) error
- func (Gemini) SkillsPath(root string) string
- func (g Gemini) WriteMCPConfig(_ context.Context, root string, server MCPServerConfig) error
- type MCPConfigRemover
- type MCPServerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent interface {
// Name returns the stable adapter id used in Atlas config.
Name() string
// DisplayName returns the user-facing agent name.
DisplayName() string
// DetectSystem reports whether the agent is installed or configured on this machine.
DetectSystem(context.Context) bool
// DetectProject reports whether project-local files imply this agent should be configured.
DetectProject(root string) bool
// GuidelinesPath returns the project-local instruction file path.
GuidelinesPath(root string) string
// SkillsPath returns the project-local skill or instruction directory path.
SkillsPath(root string) string
// MCPConfigPath returns the project-local MCP configuration file path.
MCPConfigPath(root string) string
// WriteMCPConfig writes the agent-specific MCP server configuration.
WriteMCPConfig(ctx context.Context, root string, server MCPServerConfig) error
}
Agent writes project-local integration files for one supported local agent.
type Claude ¶
type Claude struct{}
Claude writes project-local integration files for Claude Code.
func (Claude) DetectProject ¶
DetectProject reports whether the project already has Claude Code files.
func (Claude) DetectSystem ¶
DetectSystem reports whether Claude Code appears to be configured.
func (Claude) DisplayName ¶
DisplayName returns the user-facing adapter name.
func (Claude) GuidelinesPath ¶
GuidelinesPath returns the Claude guideline file path.
func (Claude) MCPConfigPath ¶
MCPConfigPath returns the Claude MCP config path.
func (Claude) RemoveMCPConfig ¶ added in v0.3.1
RemoveMCPConfig removes Atlas's Claude MCP server while preserving unrelated entries.
func (Claude) SkillsPath ¶
SkillsPath returns the Claude skill directory path.
func (Claude) WriteMCPConfig ¶
WriteMCPConfig writes the Claude MCP server configuration.
type Codex ¶
type Codex struct{}
Codex writes project-local integration files for OpenAI Codex.
func (Codex) DetectProject ¶
DetectProject reports whether the project already has Codex instructions.
func (Codex) DetectSystem ¶
DetectSystem reports whether Codex appears to be configured on this machine.
func (Codex) DisplayName ¶
DisplayName returns the user-facing adapter name.
func (Codex) GuidelinesPath ¶
GuidelinesPath returns the Codex guideline file path.
func (Codex) MCPConfigPath ¶
MCPConfigPath returns the Codex MCP config path.
func (Codex) RemoveMCPConfig ¶ added in v0.3.1
RemoveMCPConfig removes Atlas's Codex MCP table while preserving other project configuration.
func (Codex) SkillsPath ¶
SkillsPath returns the Codex skill directory path.
func (Codex) WriteMCPConfig ¶
WriteMCPConfig writes the Codex MCP server configuration.
type Copilot ¶
type Copilot struct{}
Copilot writes project-local integration files for GitHub Copilot in VS Code.
func (Copilot) DetectProject ¶
DetectProject reports whether the project already has Copilot files.
func (Copilot) DetectSystem ¶
DetectSystem reports whether Copilot should be offered.
func (Copilot) DisplayName ¶
DisplayName returns the user-facing adapter name.
func (Copilot) GuidelinesPath ¶
GuidelinesPath returns the Copilot guideline file path.
func (Copilot) MCPConfigPath ¶
MCPConfigPath returns the VS Code MCP config path used by Copilot.
func (Copilot) PromptsPath ¶
PromptsPath returns the Copilot prompt directory path.
func (Copilot) RemoveMCPConfig ¶ added in v0.3.1
RemoveMCPConfig removes Atlas's VS Code MCP server while preserving unrelated entries.
func (Copilot) SkillsPath ¶
SkillsPath returns the Copilot instruction directory path.
func (Copilot) WriteMCPConfig ¶
WriteMCPConfig writes the VS Code MCP server configuration.
type Gemini ¶ added in v0.2.0
type Gemini struct{}
Gemini writes project-local integration files for Gemini CLI.
func (Gemini) DetectProject ¶ added in v0.2.0
DetectProject reports whether the project already has Gemini CLI files.
func (Gemini) DetectSystem ¶ added in v0.2.0
DetectSystem reports whether Gemini CLI appears to be configured or installed.
func (Gemini) DisplayName ¶ added in v0.2.0
DisplayName returns the user-facing adapter name.
func (Gemini) GuidelinesPath ¶ added in v0.2.0
GuidelinesPath returns the Gemini guideline file path.
func (Gemini) MCPConfigPath ¶ added in v0.2.0
MCPConfigPath returns the Gemini project settings path.
func (Gemini) RemoveMCPConfig ¶ added in v0.3.1
RemoveMCPConfig removes Atlas's Gemini MCP server while preserving unrelated settings.
func (Gemini) SkillsPath ¶ added in v0.2.0
SkillsPath returns the Gemini skill context directory path.
func (Gemini) WriteMCPConfig ¶ added in v0.2.0
WriteMCPConfig writes the Gemini MCP server configuration.
type MCPConfigRemover ¶ added in v0.3.1
type MCPConfigRemover interface {
RemoveMCPConfig(ctx context.Context, root string, serverName string) error
}
MCPConfigRemover removes only Atlas-owned MCP configuration for an agent.
type MCPServerConfig ¶
type MCPServerConfig struct {
Name string `json:"name"`
Command string `json:"command"`
CWD string `json:"cwd"`
}
MCPServerConfig describes the project-level Atlas MCP server for an agent.
func DefaultMCPServerConfig ¶
func DefaultMCPServerConfig(root string) MCPServerConfig
DefaultMCPServerConfig returns the conventional GoForj Atlas MCP server config.
func (MCPServerConfig) Args ¶
func (c MCPServerConfig) Args() []string
Args returns the stable command arguments for running Atlas through GoForj.