LinuxCommandLibrary

opencode-agent

Manage OpenCode agents

TLDR

List all available agents

$ opencode agent list
copy
Create a new agent with a custom system prompt
$ opencode agent create [name]
copy

SYNOPSIS

opencode agent subcommand [options]

DESCRIPTION

opencode agent manages agents in OpenCode, a terminal-based AI coding assistant. Agents are configurations with custom system prompts and tool settings that tailor the AI's behavior for specific tasks. You can create new agents, list available ones, and configure their tool access.

CAVEATS

Agents are project-specific and stored in the local OpenCode configuration. Custom agents inherit the base model configuration but override the system prompt and available tools.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard