{"modulePath":"github.com/xhd2015/agent-pro","version":"v0.0.260","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package commandcode\n\n## Functions\n\n```go\nfunc FindAgentPath(env *exec.Env) (string, error)\n```\nFindAgentPath looks up the Command Code binary (\\`cmd\\`, then \\`commandcode\\`).\n\n## Types\n\n```go\ntype CommandcodeAgent struct {\n\tAgentPath     string\n\tSettingsPath  string\n\tWorkspace     string\n\tEnv           *exec.Env\n\tLastSessionID string\n}\n```\nCommandcodeAgent wraps the Command Code CLI (\\`cmd\\`).\n\n```go\nfunc (a *CommandcodeAgent) Ask(ctx context.Context, question string, opts *registry.AskOptions, onDelta registry.DeltaCallback) (string, error)\n```\nAsk runs \\`cmd -p\\` with JSON output and optional --resume / --model.\n\n```go\nfunc (a *CommandcodeAgent) ListModels(ctx context.Context) ([]registry.ModelInfo, error)\n```\n\n","path":"github.com/xhd2015/agent-pro/agent/cli/commandcode","name":"commandcode","synopsis":"","isRedistributable":true}
