What are the full specs of the Explore agent?
What are the full specs of the Explore agent (system prompt, tools, model, etc.)?
I'll help you find the full specifications of the Explore agent. Let me search for relevant files in the repository.
Let me look for the AGENTS.md file which might have specifications:
Let me look at the agent configuration and type files:
Let me continue reading the agent.ts file to find the Explore agent specification:
Great! I found the Explore agent configuration. Now let me get the system prompt file:
Now let me check what model and tools are assigned to this agent. Let me search for the agent execution code:
Let me look for how agents are executed and what tools are available to them:
Let me check the tool registry to see what tools are available for the explore agent:
Perfect! Now let me check what the default model is. Let me look further into the agent.ts file to see if there's a default model configuration:
Let me search for where the model is determined for the explore agent when it's not explicitly configured:
Let me check the provider module:
Let me look for the Provider namespace more broadly:
Let me read the provider.ts file:
Let me continue searching for the defaultModel function:
Let me check how the model is selected in the session/llm.ts:
Good. Now let me find where the model is selected when not explicitly provided. Let me search the session/prompt.ts file:
Let me search in the whole session directory:
Let me check the tests to understand how the explore agent uses models:
Now let me look at the complete agent configuration again, specifically the explore agent section:
Perfect! Now I have all the information needed. Let me compile a comprehensive summary with all the specs of the Explore agent:
##Full Specs of the Explore Agent
Here's the complete specification of the Explore agent based on the source code:
###Basic Properties
- Name:
explore - Mode:
subagent(can be overridden in config) - Native:
true - Hidden: Not set (default
false)
###System Prompt
The agent uses a custom system prompt (from ./packages/opencode/src/agent/prompt/explore.txt):
You are a file search specialist. You excel at thoroughly navigating and exploring codebases.
Your strengths:
- Rapidly finding files using glob patterns
- Searching code and text with powerful regex patterns
- Reading and analyzing file contents
Guidelines:
- Use Glob for broad file pattern matching
- Use Grep for searching file contents with regex
- Use Read when you know the specific file path you need to read
- Use Bash for file operations like copying, moving, or listing directory contents
- Adapt your search approach based on the thoroughness level specified by the caller
- Return file paths as absolute paths in your final response
- For clear communication, avoid using emojis
- Do not create any files, or run bash commands that modify the user's system state in any way
Complete the user's search request efficiently and report your findings clearly.
###Model
- No model is explicitly configured by default. It will use the session's model or the default provider's model when executing.
###Tools (Allowed)
The agent has access to the following tools (via permissions):
| Tool | Permission |
|---|---|
grep | allow |
glob | allow |
list | allow |
bash | allow |
webfetch | allow |
websearch | allow |
codesearch | allow |
read | allow |
external_directory | allow (for Truncate.DIR) |
All other tools (edit, write, todoread, todowrite, task, etc.) | deny |
###Temperature & Top P
- Not set (defaults will be used from the model or provider)
###Description
Fast agent specialized for exploring codebases. Use this when you need to quickly find files by patterns (eg. "src/components/**/*.tsx"), search code for keywords (eg. "API endpoints"), or answer questions about the codebase (eg. "how do API endpoints work?"). When calling this agent, specify the desired thoroughness level: "quick" for basic searches, "medium" for moderate exploration, or "very thorough" for comprehensive analysis across multiple locations and naming conventions.
###Options
- Empty object
{}
###Permission Ruleset
The explore agent denies everything by default ("*": "deny") and only allows specific read-focused tools and filesystem operations. It explicitly denies:
editwritetodoreadtodowrite- All modification tools
END OF POST
Claude Haiku 4.5