Files
marqdo/public/stdlib/subtask.mq.md
T
cflmyandCursor d1b33c78c6 Make file subtasks return #main value and expose it as plan.result.
Quiet spawn still hides child stdout; workbooks solidify to **returns**, agent-kb lives in the plugin, and multi-step follows OKF file relay rather than print-based answers.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-07 17:53:14 +08:00

697 B


title: lib/subtask — concurrent tasks description: Spawn file, function, or foreign code in parallel

lib/subtask.mq.md


main

spawn picks one mode (others default to None):

Argument Runs wait returns
path= marqdo run child process exit code
fn= + optional args= function in a thread (entry module) return value
code= foreign fence subprocess stdout text
lang= + source= foreign source subprocess stdout text

File children are silent unless quiet=False. Also: poll id=, kill id=, wait_all. Parent exit kills file/foreign children.

print text=subtask overview ok