Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions Taskfile.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
version: "3"

vars:
DEPRECATED_BINARY_NAME: cagent{{if eq OS "windows"}}.exe{{end}}
CLI_PLUGIN_BINARY_NAME: docker-agent{{if eq OS "windows"}}.exe{{end}}
MAIN_PKG: ./main.go
BUILD_DIR: ./bin
Expand All @@ -25,7 +24,6 @@ tasks:
desc: Build the application binary
cmds:
- go build -ldflags "{{.LDFLAGS}}" -o {{.BUILD_DIR}}/{{.CLI_PLUGIN_BINARY_NAME}} {{.MAIN_PKG}}
- cp "{{.BUILD_DIR}}/{{.CLI_PLUGIN_BINARY_NAME}}" {{.BUILD_DIR}}/{{.DEPRECATED_BINARY_NAME}}
- '{{if ne .CI "true"}}ln -sf {{.USER_WORKING_DIR}}/{{.BUILD_DIR}}/{{.CLI_PLUGIN_BINARY_NAME}} {{.HOME}}/bin/{{.CLI_PLUGIN_BINARY_NAME}}{{end}}'
sources:
- "{{.GO_SOURCES}}"
Expand All @@ -36,7 +34,6 @@ tasks:
- "go.sum"
generates:
- "{{.BUILD_DIR}}/{{.CLI_PLUGIN_BINARY_NAME}}"
- "{{.BUILD_DIR}}/{{.DEPRECATED_BINARY_NAME}}"

deploy-local:
desc: Deploy the docker agent cli-plugin
Expand Down
4 changes: 2 additions & 2 deletions cmd/root/a2a.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ func newA2ACmd() *cobra.Command {
Use: "a2a <agent-file>|<registry-ref>",
Short: "Start an agent as an A2A (Agent-to-Agent) server",
Long: "Start an A2A server that exposes the agent via the Agent-to-Agent protocol",
Example: ` cagent serve a2a ./agent.yaml
cagent serve a2a agentcatalog/pirate --listen 127.0.0.1:9090`,
Example: ` docker-agent serve a2a ./agent.yaml
docker-agent serve a2a agentcatalog/pirate --listen 127.0.0.1:9090`,
Args: cobra.ExactArgs(1),
RunE: flags.runA2ACommand,
}
Expand Down
6 changes: 3 additions & 3 deletions cmd/root/acp.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ func newACPCmd() *cobra.Command {
Use: "acp <agent-file>|<registry-ref>",
Short: "Start an agent as an ACP (Agent Client Protocol) server",
Long: "Start an ACP server that exposes the agent via the Agent Client Protocol",
Example: ` cagent serve acp ./agent.yaml
cagent serve acp ./team.yaml
cagent serve acp agentcatalog/pirate`,
Example: ` docker-agent serve acp ./agent.yaml
docker-agent serve acp ./team.yaml
docker-agent serve acp agentcatalog/pirate`,
Args: cobra.ExactArgs(1),
RunE: flags.runACPCommand,
}
Expand Down
26 changes: 13 additions & 13 deletions cmd/root/alias.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ func newAliasCmd() *cobra.Command {
Short: "Manage aliases",
Long: "Create and manage aliases for agent configurations or catalog references.",
Example: ` # Create an alias for a catalog agent
cagent alias add code agentcatalog/notion-expert
docker-agent alias add code agentcatalog/notion-expert

# Create an alias for a local agent file
cagent alias add myagent ~/myagent.yaml
docker-agent alias add myagent ~/myagent.yaml

# List all registered aliases
cagent alias list
docker-agent alias list

# Remove an alias
cagent alias remove code`,
docker-agent alias remove code`,
GroupID: "advanced",
}

Expand Down Expand Up @@ -63,19 +63,19 @@ the alias is used:
--model Override the agent's model (format: [agent=]provider/model)
--hide-tool-results Hide tool call results in the TUI`,
Example: ` # Create a simple alias
cagent alias add code agentcatalog/notion-expert
docker-agent alias add code agentcatalog/notion-expert

# Create an alias that always runs in yolo mode
cagent alias add yolo-coder agentcatalog/coder --yolo
docker-agent alias add yolo-coder agentcatalog/coder --yolo

# Create an alias with a specific model
cagent alias add fast-coder agentcatalog/coder --model openai/gpt-4o-mini
docker-agent alias add fast-coder agentcatalog/coder --model openai/gpt-4o-mini

# Create an alias with hidden tool results
cagent alias add quiet agentcatalog/coder --hide-tool-results
docker-agent alias add quiet agentcatalog/coder --hide-tool-results

# Create an alias with multiple options
cagent alias add turbo agentcatalog/coder --yolo --model anthropic/claude-sonnet-4-0`,
docker-agent alias add turbo agentcatalog/coder --yolo --model anthropic/claude-sonnet-4-0`,
Args: cobra.ExactArgs(2),
RunE: func(cmd *cobra.Command, args []string) error {
return runAliasAddCommand(cmd, args, &flags)
Expand Down Expand Up @@ -168,9 +168,9 @@ func runAliasAddCommand(cmd *cobra.Command, args []string, flags *aliasAddFlags)
}

if name == "default" {
out.Printf("\nYou can now run: cagent run %s (or even cagent run)\n", name)
out.Printf("\nYou can now run: docker agent run %s (or even docker agent run)\n", name)
} else {
out.Printf("\nYou can now run: cagent run %s\n", name)
out.Printf("\nYou can now run: docker agent run %s\n", name)
}

return nil
Expand All @@ -189,7 +189,7 @@ func runAliasListCommand(cmd *cobra.Command, args []string) error {
allAliases := cfg.Aliases
if len(allAliases) == 0 {
out.Println("No aliases registered.")
out.Println("\nCreate an alias with: cagent alias add <name> <agent-path>")
out.Println("\nCreate an alias with: docker agent alias add <name> <agent-path>")
return nil
}

Expand Down Expand Up @@ -231,7 +231,7 @@ func runAliasListCommand(cmd *cobra.Command, args []string) error {
}
}

out.Println("\nRun an alias with: cagent run <alias>")
out.Println("\nRun an alias with: docker agent run <alias>")

return nil
}
Expand Down
3 changes: 1 addition & 2 deletions cmd/root/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ func newAPICmd() *cobra.Command {

cmd := &cobra.Command{
Use: "api <agent-file>|<agents-dir>",
Short: "Start the cagent API server",
Long: `Start the API server that exposes the agent via a cagent-specific HTTP API`,
Short: "Start the API server",
Args: cobra.ExactArgs(1),
RunE: flags.runAPICommand,
}
Expand Down
8 changes: 4 additions & 4 deletions cmd/root/mcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ func newMCPCmd() *cobra.Command {
Use: "mcp <agent-file>|<registry-ref>",
Short: "Start an agent as an MCP (Model Context Protocol) server",
Long: "Start an MCP server that exposes the agent via the Model Context Protocol. By default, uses stdio transport. Use --http to start a streaming HTTP server instead.",
Example: ` cagent serve mcp ./agent.yaml
cagent serve mcp ./team.yaml
cagent serve mcp agentcatalog/pirate
cagent serve mcp ./agent.yaml --http --listen 127.0.0.1:9090`,
Example: ` docker-agent serve mcp ./agent.yaml
docker-agent serve mcp ./team.yaml
docker-agent serve mcp agentcatalog/pirate
docker-agent serve mcp ./agent.yaml --http --listen 127.0.0.1:9090`,
Args: cobra.ExactArgs(1),
RunE: flags.runMCPCommand,
}
Expand Down
8 changes: 4 additions & 4 deletions cmd/root/new.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ func newNewCmd() *cobra.Command {
Long: `Create a new agent configuration interactively.
The agent builder will ask questions about what you want the agent to do,
then generate a YAML configuration file you can use with 'cagent run'.
then generate a YAML configuration file you can use with 'docker-agent run'.
Optionally provide a description as an argument to skip the initial prompt.`,
Example: ` cagent new
cagent new "a web scraper that extracts product prices"
cagent new --model openai/gpt-4o "a code reviewer agent"`,
Example: ` docker-agent new
docker-agent new "a web scraper that extracts product prices"
docker-agent new --model openai/gpt-4o "a code reviewer agent"`,
GroupID: "core",
RunE: flags.runNewCommand,
}
Expand Down
Loading