This commit is contained in:
Timothy Jaeryang Baek committed 2026-07-11 21:02:37 -05:00
1 parent 2aa1630aee
commit 3133d4301a
5 files changed
+45 -47

No files matched your search

+3 -2
View File
@@ -167,7 +167,9 @@ PLAN_MODE_PROMPT = (
"[Plan Mode] Research with read-only tools before planning. When a material decision "
"cannot be discovered, use ask_user with one to three questions, two to three options "
"each, and the recommended option first. Ask only after research and never alongside "
"another tool call. Then present your plan using create_artifact. Wait for an explicit "
"another tool call. Then present a concise plan in your response. Use create_artifact "
"only when a substantial plan or analysis benefits from being saved for review. Wait for "
"an explicit "
"approval message before using write tools or implementing."
)
@@ -1955,7 +1957,6 @@ async def run_chat_task(
if plan_mode:
tools = [t for t in tools if ALL_TOOLS.get(t["name"], {}).get("auto")]
tools = [t for t in tools if t["name"] not in {"delegate_task", "update_memory"}]
# Inject create_artifact (only available in plan mode)
tools.append(_fn_to_schema("create_artifact", create_artifact))
tools.append(ASK_USER_SCHEMA)
messages.append({"role": "user", "content": PLAN_MODE_PROMPT})