MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / plan

Method plan

crates/opencode-agent/src/agent.rs:216–236  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

214 }
215
216 pub fn plan() -> Self {
217 Self {
218 name: "plan".to_string(),
219 description: Some("Plan mode. Disallows all edit tools.".to_string()),
220 mode: AgentMode::Primary,
221 model: None,
222 model_preference: None,
223 system_prompt: Some("You are a planning assistant. Analyze the task and create a detailed plan before execution.".to_string()),
224 temperature: Some(0.3),
225 top_p: None,
226 max_tokens: Some(8192),
227 max_steps: Some(50),
228 allowed_tools: Vec::new(),
229 options: HashMap::new(),
230 permission: build_agent_ruleset("plan", &[]),
231 hidden: false,
232 native: true,
233 variant: None,
234 color: None,
235 }
236 }
237
238 pub fn general() -> Self {
239 Self {

Callers

nothing calls this directly

Calls 2

newFunction · 0.85
build_agent_rulesetFunction · 0.85

Tested by

no test coverage detected