Files
marqdo/tests/ext/agent-plan-live.mq.md
T
cflmyandCursor bd5555afaa Unify bare-identifier semantics in *…* / **…** (Python namespace)
Inside italic/bold code segments every bare word is a variable — including
call arguments and method-call receivers — so text literals must be quoted
and receivers no longer need backticks. A bare dotted callee `a.b` resolves
as a method call when `a` is a local variable, otherwise as a library path
(Python-style unified namespace), in both the tree-walk and bytecode backends.

Migrate ~70 tests plus ext/web, ext/quantum, ext/ai and the example projects
to the new idiom; update SKILL.md and the design docs; fix the web/quantum
example data model (db/index.mq.md). Unit and gold suites pass; only the 3
network-live tests fail offline.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-18 11:20:46 +08:00

44 lines
1.2 KiB
Markdown

---
title: ext/agent plan live (DeepSeek)
description: Full plan loop — spawn workbook, inspect, secondary plan; 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
> 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."*
*out = > `助手`.plan goal="Reply with exactly the word pong and nothing else." max_rounds=3 writeback=False*
*st = > json.get value=`out` key="status"*
> print text=`st`
*sum = > json.get value=`out` key="summary"*
1. `sum`
> print text=`sum`
2. *
> print text=no-summary
*cache = > json.get value=`out` key="cache"*
> print text=`cache`
*path = > json.get value=`out` key="workbook"*
*ex = > fs.exists path=`path`*
1. `ex`
> print text=workbook-ok
2. *
> print text=workbook-missing
*out2 = > `助手`.plan goal="Reply with exactly the word pong and nothing else." max_rounds=3 writeback=False*
*st2 = > json.get value=`out2` key="status"*
> print text=`st2`
*cache2 = > json.get value=`out2` key="cache"*
> print text=`cache2`