01Command name
The command is sea. The commands on this page use sea.
Note
02Before you start
sea code needs a default agent, or an agent named with --agent. sea init sets up a provider, an API key and a default agent. Without one, sea code stops and prints a hint to run sea init.
sea init
sea agent list
sea provider list03Start a session
The session prints the working directory when it starts. It uses the directory where you ran the command.
-a, --agent <name>: the agent to use.-p, --provider <name>: overrides the agent's provider.-m, --model <name>: overrides the agent's model.-v, --verbose: shows tool calls and metadata.--max-iterations <number>: the cap on agent iterations. The default is 25.
cd ~/Projects/my-app
sea code --agent coder --verbose04Tools the session loads
The session registers these tools: file_read, file_write, file_list, shell_execute, code_edit, glob, grep, git_status, git_diff, git_add, git_commit, git_log and git_branch.
Warning
shell_execute has safety checks. Review changes with git_diff, and start from a clean git state so you can revert.05Guidelines the agent receives
The session's system prompt asks the agent to:
- Read files before editing them.
- Use code_edit for precise changes instead of rewriting files.
- Use glob and grep to find code before changing it.
- Check each change with git_diff.
- Make small, focused edits.
06Agents and providers
Set up the agents and providers the session will use. These commands are in the CLI reference.
sea provider add
sea agent create
sea model list -p ollama
sea model pull codellama -p ollama
sea agent run coder "Summarize the TODO comments in this project"07Chat
sea chat starts a chat session. It accepts --agent, --stream and --format (text, markdown or html).
sea chat --agent coder --stream --format markdown