cflmy
fb135ae2f8
refactor(plugins): 抽出 marqdo-plugin-sdk — ABI 前言从 5 份变 1 份
...
新增工作区成员 crates/marqdo-plugin-sdk:ABI 类型、HOST_* 静态回调、
host_strdup/set_out/set_err/parse_args/reply/host_query_json(_with)/
take_host_string/init_plugin,以及生成四个 #[no_mangle] 导出的
marqdo_plugin! 宏。ABI 常量、符号名、结构体布局一律未变。
5 个插件改为依赖 SDK + 一行宏调用:
agent 1237 → 929 (-308)
quantum 1045 → 835 (-210)
linalg 688 → 524 (-164)
llm 405 → 278 (-127)
demo 170 → 73 (-97)
SDK 新增 232 行 → 净减约 674 行
迁移中发现并修正三次"编译通过但语义已变":
1. 注册项抽取漏 11 项 —— 正则 [a-z_0-9]+ 匹配不到 mcp_server::agent_mcp_serve、
sandbox::* 这类路径限定函数名;改为允许 :: 后重抽。
已用脚本逐项比对 (名称, 参数串, 函数) 三元组:agent 63/63、quantum 41/41、
linalg 31/31、llm 2/2、demo 2/2,全部 0 差异。
2. mcp_client 被误判死模块(删 327 行后才发现 agent_mcp_client 正注册它)→ 恢复。
3. 量子插件两个"未使用"函数删除时连带吃掉 density_from_amps/flat_to_nested
→ 恢复原文件并改为 #[allow(dead_code)]。
验证:cargo build --release(含 5 个插件)零警告;
cargo test --release 609 passed / 0 failed;
量子金样实跑 p00-ok / p11-ok / ping-ok。
文档:doc/design/change-plugin-sdk.md
2026-10-22 15:49:13 +08:00
cflmy and Cursor
8353ba38fe
Add Streamable HTTP MCP and harden web /v1 invoke auth.
...
agent_mcp_serve gains http transport; invoke injects Bearer/X-Api-Key and maps
unauthorized to 401; openai/agent field access prefers json.get over footnotes.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-10-16 17:33:24 +08:00
cflmy and Cursor
d489f7c088
fix(ext/ai): cold agent.run EFI — self.preflight and resolve llm_free
...
Miss resolve omitted llm_free and run called bare preflight, which crashed
qdagent on empty OKF. Align miss fields, use self.preflight + json.get, add
regression gold and research note.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-10-16 12:54:00 +08:00
cflmy and Cursor
0f72173d08
feat(ext/ai): land Agent/LLM optimize waves O1–O5
...
Wire opt-in sandbox trial into agent, require sandbox proof before OKF
promote, add step_route/EFI/cost surfaces, style lint + quarantine, and
offline policy optimize script—keeping GFM tables over json glue.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-10-16 11:47:28 +08:00
cflmy and Cursor
63bcb882a6
feat(ext/ai): add CoW sandbox for Marqdo-only agent trials
...
Give agents a capability-capped run path that stages workspace edits until commit, so generated .mq.md can be verified without polluting the real tree.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-10-16 11:11:54 +08:00
cflmy and Cursor
56ab52356f
feat(knowledge): land Engineering Knowledge Compiler (EKC) from 008
...
Give agents Engineering First Information before codegen: L0–L4 catalog,
reuse/preflight (REUSE→ADAPT→CREATE), graph, and CLI surfaces so large
repos stop reinventing existing capabilities.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-28 16:44:39 +08:00
cflmy and Cursor
c29d48f38c
feat(agent): MCP stdio client, resume checkpoints, small-llm router alias
...
Add agent_mcp_client and agent_resume_* plugin APIs. Treat jev as a
compat alias of small-llm; auto cascade no longer probes MARQDO_JEV.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-24 20:26:55 +08:00
cflmy and Cursor
d8d435fead
feat(ai-stack): metrics, named handles, prompt docs, backends, zero-LLM
...
Finish ai-stack steps 1–5: model_turn usage, fast/reasoning, type:prompt
load, openai/ollama split, and agent-zero-llm gold. Fix compiled-skill
Marqdo syntax so llm_free await no longer falls through to plan+HTTP.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-24 19:30:25 +08:00
cflmy and Cursor
a9ee858f53
feat(agent): Skill Compilation + Adaptive Routing (v2/P4)
...
Episode → maybe_learn → llm_free skills, plus abstract router backends
(marqdo/small-llm/jev?/llm/auto) via plugins/agent; no core host changes.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-24 13:28:50 +08:00
cflmy and Cursor
fc543f1ca5
feat(web,agent): hosting H1–H4 — proxy, invoke, MCP stdio, cross-module db
...
Close GAP-01–05 with ext/web streaming reverse proxy and HTTP→## invoke,
transitive object method lookup, corpus_search plugin ensure, and agent MCP
server stdio so downstream apps can drop Python side relays.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-07 22:14:51 +08:00
cflmy and Cursor
9a8545b725
feat(agent): A4 corpus search and MCP fixture evidence tools
...
Add local keyword corpus_search and offline MCP fixture adapters as parent CALL tools; keep authority on workbook .mq.md.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-28 17:47:59 +08:00
cflmy and Cursor
07ab7d52c6
feat(agent): A1 OKF reuse flywheel — list_tasks curation and plan match
...
Enrich list_tasks for soft_match curation; expose match/score on plan hits; add offline plan-hit gold.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-28 16:53:27 +08:00
cflmy and Cursor
d0b184939f
fix(agent): harden workbook patches against whole-file rewrites
...
Reject large whole-file FIND spans, narrow soft=True to miss-only, check
decompose CONTINUE patch counts, and unit-test workbook_solidify.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-28 16:22:39 +08:00
cflmy and Cursor
ab8ea8438f
Add local n-gram near match for OKF agent-kb reuse.
...
Sparse bigram cosine closes near-duplicate goal fragmentation; soft_match parents now judge ranked scored candidates instead of a flat task list.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-11 10:07:03 +08:00
cflmy and Cursor
ff84c43c10
Add OKF soft match, CALL tool streaming, and lib whitelist dispatch.
...
Canonicalize/alias lookup and optional soft_match parent REUSE cut kb
fragmentation; stream tool_start/end for Plan-and-Move visibility; allow
safe CALL:lib.* without FC.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-11 09:26:59 +08:00
cflmy and Cursor
2a9fceb51c
Land OKF aliases, view SSE, workbook nav, and explicit parent ctor.
...
Complete the core agent roadmap: soft KB hits via Task aliases, EventBus-backed view streaming, D4 writeback/workbook navigation, and I3 explicit-super without implicit auto-super.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-10 11:58:26 +08:00
cflmy and Cursor
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
cflmy and Cursor
1f23e2ed93
Add module namespaces and harden L1/agent after the import redesign.
...
Bind imports to library names with bare path calls (and use), forward optional host args through mq wrappers, stabilize writeback replacement newlines, and document the M1/M2 decisions.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-07 13:28:32 +08:00
cflmy and Cursor
c4ffb9473f
Extend ext/agent with skill match/assign and multi-column tables.
...
Compose ext/llm, add ABI match_skill/bump_load, map-valued GFM tables, and agent-assign gold coverage.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-06 13:46:34 +08:00
cflmy and Cursor
3a7e11c995
Add ext/agent layout framework, ext CLI, and docs catch-up.
...
Ship ABI agent plugin helpers, marqdo ext list/add/remove, and document the agent development roadmap (compose LLM, match/assign).
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-06 13:31:25 +08:00