Documentation
¶
Overview ¶
Package agent implements Codog's agent runtime, CLI orchestration, and interactive command surfaces.
Index ¶
- func RunCLI(ctx context.Context, args []string, baseOverrides config.FlagOverrides) error
- type App
- func (a *App) ACP(ctx context.Context, args []string) error
- func (a *App) API(args []string) error
- func (a *App) APIContext(ctx context.Context, args []string) error
- func (a *App) APIKey(args []string) error
- func (a *App) AddDir(args []string) error
- func (a *App) Advisor(args []string) error
- func (a *App) Agents(args []string) error
- func (a *App) AgentsWithOverrides(args []string, overrides config.FlagOverrides) error
- func (a *App) AllowedTools(args []string) error
- func (a *App) AntTrace(ctx context.Context, args []string) error
- func (a *App) Auth(args []string) error
- func (a *App) AutofixPR(ctx context.Context, args []string) error
- func (a *App) BTW(ctx context.Context, args []string, overrides config.FlagOverrides, ...) error
- func (a *App) BackfillSessions(args []string) error
- func (a *App) Background(args []string) error
- func (a *App) BackgroundWithFormat(args []string, overrides config.FlagOverrides, defaultFormat string) error
- func (a *App) BackgroundWithOverrides(args []string, overrides config.FlagOverrides) error
- func (a *App) Bookmarks(args []string, overrides config.FlagOverrides) error
- func (a *App) BootstrapPlan(args []string) error
- func (a *App) Branch(args []string) error
- func (a *App) BranchLock(args []string) error
- func (a *App) BreakCache(args []string, overrides config.FlagOverrides) error
- func (a *App) Bridge(args []string) error
- func (a *App) BridgeKick(args []string) error
- func (a *App) Brief(args []string) error
- func (a *App) BriefWithFormat(args []string, defaultFormat string) error
- func (a *App) Budget(args []string) error
- func (a *App) Bughunter(args []string) error
- func (a *App) Cache(args []string, overrides config.FlagOverrides) error
- func (a *App) Capabilities(args []string) error
- func (a *App) Changelog(args []string) error
- func (a *App) Chrome(args []string) error
- func (a *App) ClearCommand(args []string) error
- func (a *App) ClearResumedSession(args []string, overrides config.FlagOverrides) error
- func (a *App) CodeIntel(args []string) error
- func (a *App) CodeIntelLSP(args []string) error
- func (a *App) Commands(args []string) error
- func (a *App) CommitPushPR(ctx context.Context, args []string) error
- func (a *App) Compact(args []string, overrides config.FlagOverrides) error
- func (a *App) Completion(args []string) error
- func (a *App) ConfigCommand(args []string) error
- func (a *App) Context(args []string, overrides config.FlagOverrides) error
- func (a *App) ContextViz(args []string, overrides config.FlagOverrides) error
- func (a *App) Conversation(args []string, overrides config.FlagOverrides) error
- func (a *App) Copy(ctx context.Context, args []string, overrides config.FlagOverrides) error
- func (a *App) Cron(args []string) error
- func (a *App) CronWithFormat(args []string, defaultFormat string) error
- func (a *App) DebugToolCall(ctx context.Context, args []string, overrides config.FlagOverrides) error
- func (a *App) DeferredInit(command string, args []string) error
- func (a *App) Definition(args []string) error
- func (a *App) Desktop(args []string, overrides config.FlagOverrides) error
- func (a *App) Diagnostics(ctx context.Context, args []string) error
- func (a *App) Diff(args []string) error
- func (a *App) Doctor(args []string) error
- func (a *App) DumpManifests(args []string) error
- func (a *App) Effort(args []string) error
- func (a *App) Enterprise(args []string) error
- func (a *App) Env(args []string) error
- func (a *App) ExitCompatibility(args []string) error
- func (a *App) Export(args []string) error
- func (a *App) ExportWithOverrides(args []string, overrides config.FlagOverrides) error
- func (a *App) ExtraUsage(args []string) error
- func (a *App) Fast(args []string) error
- func (a *App) Feedback(args []string, overrides config.FlagOverrides) error
- func (a *App) Files(args []string) error
- func (a *App) Focus(args []string) error
- func (a *App) Format(args []string) error
- func (a *App) G004Conformance(args []string) error
- func (a *App) GenerateSessionName(args []string, overrides config.FlagOverrides) error
- func (a *App) Git(args []string) error
- func (a *App) GitBlame(args []string) error
- func (a *App) GitCommit(args []string, defaultFormat string) error
- func (a *App) GitLog(args []string) error
- func (a *App) GitStatus(args []string) error
- func (a *App) GoodClaude(args []string) error
- func (a *App) GreenContract(args []string) error
- func (a *App) HeapDump(args []string) error
- func (a *App) History(args []string, overrides config.FlagOverrides) error
- func (a *App) Hooks(ctx context.Context, args []string) error
- func (a *App) Hover(args []string) error
- func (a *App) IDE(args []string) error
- func (a *App) Init(args []string) error
- func (a *App) InitVerifiers(args []string) error
- func (a *App) Insights(args []string) error
- func (a *App) Install(ctx context.Context, args []string) error
- func (a *App) InstallGitHubApp(args []string) error
- func (a *App) InstallSlackApp(args []string) error
- func (a *App) IssueDraft(args []string, overrides config.FlagOverrides) error
- func (a *App) Keybindings(args []string) error
- func (a *App) Language(args []string) error
- func (a *App) LanguageCommand(ctx context.Context, language string, args []string) error
- func (a *App) ListAgents() error
- func (a *App) ListPlugins() error
- func (a *App) ListSessions() error
- func (a *App) ListSessionsWithActive(args []string, activeID string) error
- func (a *App) ListSkills() error
- func (a *App) Login(args []string) error
- func (a *App) Logout(args []string) error
- func (a *App) MCP(ctx context.Context, args []string) error
- func (a *App) Map(args []string) error
- func (a *App) Marketplace(args []string) error
- func (a *App) MaxTokens(args []string) error
- func (a *App) MaxTurns(args []string) error
- func (a *App) Memory(args []string) error
- func (a *App) Metrics(args []string, overrides config.FlagOverrides) error
- func (a *App) Mobile(args []string, overrides config.FlagOverrides) error
- func (a *App) MockLimits(args []string) error
- func (a *App) MockParity(ctx context.Context, args []string) error
- func (a *App) Model(args []string) error
- func (a *App) Models(args []string) error
- func (a *App) Notifications(args []string) error
- func (a *App) OAuth(args []string) error
- func (a *App) OAuthRefresh(args []string) error
- func (a *App) Onboarding(args []string) error
- func (a *App) Open(ctx context.Context, args []string) error
- func (a *App) OutputStyle(args []string) error
- func (a *App) PRComments(ctx context.Context, args []string) error
- func (a *App) Passes(args []string) error
- func (a *App) Paste(ctx context.Context, args []string, overrides config.FlagOverrides) error
- func (a *App) PerfIssue(args []string) error
- func (a *App) Permissions(args []string) error
- func (a *App) Pin(args []string, overrides config.FlagOverrides) error
- func (a *App) Plan(args []string) error
- func (a *App) Prefetch(args []string) error
- func (a *App) PrivacySettings(args []string) error
- func (a *App) Profile(args []string) error
- func (a *App) Project(args []string) error
- func (a *App) ProjectCommand(ctx context.Context, kind string, args []string) error
- func (a *App) Prompt(ctx context.Context, input string, overrides config.FlagOverrides) error
- func (a *App) PromptWithOutput(ctx context.Context, input string, overrides config.FlagOverrides, ...) error
- func (a *App) Providers(args []string) error
- func (a *App) PullRequestDraft(args []string, overrides config.FlagOverrides) error
- func (a *App) REPL(ctx context.Context, overrides config.FlagOverrides) error
- func (a *App) RateLimit(args []string) error
- func (a *App) RateLimitOptions(args []string) error
- func (a *App) Reasoning(args []string) error
- func (a *App) References(args []string) error
- func (a *App) RegisterMCPTools(ctx context.Context) error
- func (a *App) RegisterPluginTools() error
- func (a *App) ReleaseNotes(args []string) error
- func (a *App) ReloadPlugins(args []string) error
- func (a *App) ReloadPluginsWithFormat(args []string, defaultFormat string) error
- func (a *App) Remote(args []string) error
- func (a *App) RemoteEnv(args []string) error
- func (a *App) RemoteSetup(args []string, overrides config.FlagOverrides) error
- func (a *App) Rename(args []string, overrides config.FlagOverrides) error
- func (a *App) RepairSessions(args []string) error
- func (a *App) ReportSchema(args []string) error
- func (a *App) Reset(args []string) error
- func (a *App) ResetLimits(args []string) error
- func (a *App) ResumeCommand(args []string) error
- func (a *App) ResumedMaxTokens(args []string) error
- func (a *App) ResumedMaxTurns(args []string) error
- func (a *App) ResumedModel(args []string) error
- func (a *App) Review(args []string) error
- func (a *App) ReviewRemote(ctx context.Context, args []string) error
- func (a *App) Rewind(args []string, overrides config.FlagOverrides) error
- func (a *App) RunCommand(ctx context.Context, args []string) error
- func (a *App) RunResumedSlash(ctx context.Context, command string, args []string, ...) error
- func (a *App) SSH(ctx context.Context, args []string) error
- func (a *App) Sandbox() error
- func (a *App) SandboxToggle(args []string) error
- func (a *App) Scope(args []string) error
- func (a *App) Search(ctx context.Context, args []string) error
- func (a *App) SecurityReview(args []string) error
- func (a *App) Server(ctx context.Context, args []string) error
- func (a *App) SessionExists(args []string, activeID string) error
- func (a *App) SessionExport(args []string) error
- func (a *App) SessionShow(args []string) error
- func (a *App) SessionTag(args []string, overrides config.FlagOverrides) error
- func (a *App) SessionsCommand(args []string) error
- func (a *App) Setup(ctx context.Context, args []string) error
- func (a *App) SetupToken(args []string) error
- func (a *App) Share(args []string, overrides config.FlagOverrides) error
- func (a *App) ShowCost(overrides config.FlagOverrides) error
- func (a *App) Skills(args []string) error
- func (a *App) Slash(args []string) error
- func (a *App) Speak(ctx context.Context, args []string, overrides config.FlagOverrides) error
- func (a *App) StaleBase(args []string) error
- func (a *App) Stash(args []string) error
- func (a *App) State(args []string) error
- func (a *App) Status(args []string, overrides config.FlagOverrides) error
- func (a *App) Statusline(args []string, overrides config.FlagOverrides) error
- func (a *App) Stickers(args []string) error
- func (a *App) Subagent(args []string, overrides config.FlagOverrides) error
- func (a *App) Summary(args []string, overrides config.FlagOverrides) error
- func (a *App) Symbols(args []string) error
- func (a *App) SystemPromptCommand(args []string) error
- func (a *App) TUI(ctx context.Context, overrides config.FlagOverrides) error
- func (a *App) Tag(args []string) error
- func (a *App) Team(args []string) error
- func (a *App) TeamWithFormat(args []string, defaultFormat string) error
- func (a *App) Telemetry(args []string) error
- func (a *App) Teleport(args []string) error
- func (a *App) Temperature(args []string) error
- func (a *App) Templates(args []string) error
- func (a *App) TerminalSetup(args []string) error
- func (a *App) Theme(args []string) error
- func (a *App) ThinkBack(args []string) error
- func (a *App) Todos(args []string) error
- func (a *App) ToolDetails(args []string) error
- func (a *App) ToolDetailsWithFormat(args []string, defaultFormat string) error
- func (a *App) Trust(args []string) error
- func (a *App) Undo(args []string) error
- func (a *App) Unfocus(args []string) error
- func (a *App) Unpin(args []string, overrides config.FlagOverrides) error
- func (a *App) Updater(ctx context.Context, args []string) error
- func (a *App) Upgrade(ctx context.Context, args []string) error
- func (a *App) Usage(args []string, overrides config.FlagOverrides) error
- func (a *App) UsageOverview(command string, args []string, overrides config.FlagOverrides) error
- func (a *App) Validation(args []string) error
- func (a *App) Vim(args []string) error
- func (a *App) Voice(args []string) error
- func (a *App) WorkspaceCommand(args []string) error
- type ExitError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type App ¶
type App struct {
Config config.Config
Client *anthropic.Client
Tools *tools.Registry
Sessions *session.Store
Workspace string
Executable string
Out io.Writer
Err io.Writer
In io.Reader
PluginManifests []plugins.Manifest
AgentDefinitions []agentdefs.Definition
InlineAgents []agentdefs.Definition
PluginDirs []string
ActiveIDE *bridge.EditorState
ConfigLoadError string
ConfigLoadErrorKind string
// contains filtered or unexported fields
}
func (*App) AgentsWithOverrides ¶
func (a *App) AgentsWithOverrides(args []string, overrides config.FlagOverrides) error
func (*App) AllowedTools ¶
func (*App) BackfillSessions ¶
func (*App) Background ¶
func (*App) BackgroundWithFormat ¶
func (*App) BackgroundWithOverrides ¶
func (a *App) BackgroundWithOverrides(args []string, overrides config.FlagOverrides) error
func (*App) Bookmarks ¶
func (a *App) Bookmarks(args []string, overrides config.FlagOverrides) error
func (*App) BootstrapPlan ¶
func (*App) BranchLock ¶
func (*App) BreakCache ¶
func (a *App) BreakCache(args []string, overrides config.FlagOverrides) error
func (*App) BridgeKick ¶
func (*App) BriefWithFormat ¶
func (*App) Capabilities ¶
func (*App) ClearCommand ¶
func (*App) ClearResumedSession ¶
func (a *App) ClearResumedSession(args []string, overrides config.FlagOverrides) error
func (*App) CodeIntelLSP ¶
func (*App) Completion ¶
func (*App) ConfigCommand ¶
func (*App) ContextViz ¶
func (a *App) ContextViz(args []string, overrides config.FlagOverrides) error
func (*App) Conversation ¶
func (a *App) Conversation(args []string, overrides config.FlagOverrides) error
func (*App) CronWithFormat ¶
func (*App) DebugToolCall ¶
func (*App) Definition ¶
func (*App) DumpManifests ¶
func (*App) Enterprise ¶
func (*App) ExitCompatibility ¶
func (*App) ExportWithOverrides ¶
func (a *App) ExportWithOverrides(args []string, overrides config.FlagOverrides) error
func (*App) ExtraUsage ¶
func (*App) G004Conformance ¶
func (*App) GenerateSessionName ¶
func (a *App) GenerateSessionName(args []string, overrides config.FlagOverrides) error
func (*App) GoodClaude ¶
func (*App) GreenContract ¶
func (*App) InitVerifiers ¶
func (*App) InstallGitHubApp ¶
func (*App) InstallSlackApp ¶
func (*App) IssueDraft ¶
func (a *App) IssueDraft(args []string, overrides config.FlagOverrides) error
func (*App) Keybindings ¶
func (*App) LanguageCommand ¶
func (*App) ListAgents ¶
func (*App) ListPlugins ¶
func (*App) ListSessions ¶
func (*App) ListSessionsWithActive ¶
func (*App) ListSkills ¶
func (*App) Marketplace ¶
func (*App) MockLimits ¶
func (*App) Notifications ¶
func (*App) OAuthRefresh ¶
func (*App) Onboarding ¶
func (*App) OutputStyle ¶
func (*App) Permissions ¶
func (*App) PrivacySettings ¶
func (*App) ProjectCommand ¶
func (*App) PromptWithOutput ¶
func (*App) PullRequestDraft ¶
func (a *App) PullRequestDraft(args []string, overrides config.FlagOverrides) error
func (*App) RateLimitOptions ¶
func (*App) References ¶
func (*App) RegisterPluginTools ¶
func (*App) ReleaseNotes ¶
func (*App) ReloadPlugins ¶
func (*App) ReloadPluginsWithFormat ¶
func (*App) RemoteSetup ¶
func (a *App) RemoteSetup(args []string, overrides config.FlagOverrides) error
func (*App) RepairSessions ¶
func (*App) ReportSchema ¶
func (*App) ResetLimits ¶
func (*App) ResumeCommand ¶
func (*App) ResumedMaxTokens ¶
func (*App) ResumedMaxTurns ¶
func (*App) ResumedModel ¶
func (*App) RunResumedSlash ¶
func (a *App) RunResumedSlash(ctx context.Context, command string, args []string, overrides config.FlagOverrides, format string) error
RunResumedSlash executes a supported slash command against a resumed session.
func (*App) SandboxToggle ¶
func (*App) SecurityReview ¶
func (*App) SessionExport ¶
func (*App) SessionShow ¶
func (*App) SessionTag ¶
func (a *App) SessionTag(args []string, overrides config.FlagOverrides) error
SessionTag toggles a searchable tag on a resumed conversation. Git tags remain available through the direct `codog tag` command.
func (*App) SessionsCommand ¶
func (*App) SetupToken ¶
func (*App) Statusline ¶
func (a *App) Statusline(args []string, overrides config.FlagOverrides) error
func (*App) Subagent ¶
func (a *App) Subagent(args []string, overrides config.FlagOverrides) error
Subagent maps Claude-style subagent run controls onto Codog agent runs.
func (*App) SystemPromptCommand ¶
func (*App) TeamWithFormat ¶
func (*App) Temperature ¶
func (*App) TerminalSetup ¶
func (*App) ToolDetails ¶
func (*App) ToolDetailsWithFormat ¶
func (*App) UsageOverview ¶
func (*App) Validation ¶
func (*App) WorkspaceCommand ¶
Click to show internal directories.
Click to hide internal directories.