Ogni categoria, ma read, memory e task è respinta total — il callback non è consultat, dal momento che non c'è nulla a decidere. Il renega nomes il modo e dice l'usuario lo commuta per executare.
// What the model receives when it tries to write in plan mode
"Refused: plan mode is read-only. Present the plan; the user will switch mode to execute it."# What the model receives when it tries to write in plan mode
"Refused: plan mode is read-only. Present the plan; the user will switch mode to execute it."La instruzion è la reala caratteristica
Il prompt del sistema dice l'agente, in modo plan, a investigare e poi a presentar un plan chiaro con todo_write. Quindi il passs lect e ragionare in lugar di scoprire un renie a la volta.
Cee che ancora pot face
- Legga, list, globe e grep l'intero spazio di lavoro.
- Cercare la web e aprire le pagìnes.
- Legga i storages connessos con
query_storage. - Legîs le note a lungo termine e cercate sessioni precedenti con
recall. - Delegare investigazion a subagents —
taskè permissiu, e i suoi figli sono in modo planeo troppo. - Scrive un plan con
todo_write.
Il patron bifase
const agent = api.agents.create({
runtime: "local", machine: pc, model: "gemini-3.5-flash",
memory: true, // so the plan survives into the second phase
mode: "plan",
});
const plan = await agent.run({ inputs: "Migrate the date handling to UTC everywhere." });
console.log(plan.text, plan.todos);
// The person reads it and agrees
agent.setMode("auto");
await agent.run({ inputs: "Do it." });agent = api.agents.create(
runtime="local", machine=pc, model="gemini-3.5-flash",
memory=True, # so the plan survives into the second phase
mode="plan",
)
plan = agent.run(inputs="Migrate the date handling to UTC everywhere.")
print(plan["text"], plan["todos"])
# The person reads it and agrees
agent.set_mode("auto")
agent.run(inputs="Do it.")Con memory: true la seconda run ya tiene tutto il primo let, quindi il piano è executat senza re-investigare.
Nada s'espase al di là dels vira
money è rifiutat come il resto, quindi un plan-mode run non può comprar spazio. Pagat lee — una ricerca, una captura de paginas — sono read e ancora accade, quindi un planning run non è gratuito.