Files
marqdo/man-test/ext/agent-plan.mq.md
T
cflmyandCursor b5c07385e9 feat(markup): finish v0.3 stock migration and green gold
Migrate remaining .mq.md (tests/ext/public/examples), stop elevating local assigns to params, inject form_target in Go libweb, and skip live LLM gold without a real key.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-13 23:43:44 +08:00

852 B


title: ext/agent plan live (DeepSeek) description: Full plan loop — spawn workbook, inspect; simple pong goal. import llm:ext/ai/llm.mq.md import agent:ext/ai/agent.mq.md import json:lib/json.mq.md import fs:lib/fs.mq.md

main

goal=> input "你想完成什么任务?"

llm.load_env path=.env

**model = > llm.llm ** **tools = > json.parse text=[] ** **助手 = > agent.agent model=model tools=tools standing=You are a Marqdo agent-development master. Prefer DONE when the workbook already satisfies the goal. **

流式开在 plan 上:非命中先 plan:decompose(父分解增量),再 plan:await(子 quiet),然后父修订轮。

**out = > 助手.plan goal=goal max_rounds=3 writeback=False stream=True echo=True force=True **

**result = > json.get value=out key=result **

print text=result