Repository navigation
v0.4.0
本版把「多智能体」补成 Closure 的一条主线:对话中的 AI 可以把任务交给后台子代理并行执行,主对话零中断、随时可看可停。配套地,材料库可以直接在线导入(wiki 词条、批评文章),用量台账补齐全调用面并新增月度预算,模型网关获得熔断保护与整组预设。
新功能 / New Features
- Agent 面板:后台子代理——对话中把调查/长任务派给后台子代理并行执行(每项目至多 3 个),主对话不中断;「后台任务」条实时显示状态与耗时,可取消、可点开只读检视子会话完整过程
- Agent 面板:子代理结果三通道——完成时弹通知、自动唤醒主对话汇报、或静默记账,派发时任选;应用重启后未完成的任务如实标注「已中断」
- 材料库:在线导入——URL 直贴或关键词搜索(萌娘百科等 wiki 词条、批评文章页),自动抽取正文、按来源(社区/原作/批评)预填出处,同链接重复导入幂等
- 手艺卡:讲法来源徽章——蒸馏产出的讲法在人审页标注来自社区 wiki、原作还是批评文章
- 用量面板:全调用面计量——嵌入/重排/生图调用入账并按任务标签分账(知识库检索/索引/生图等),生图行显示张数;Antigravity CLI 重试与降级逐次尝试记账,不漏不重
- 用量面板:月度预算——设置软/硬双线(¥),面板显示月度进度与状态色,过线一次性提醒;触及硬线时新调用被拦并如实入账
- 模型配置:任务档多套预设——整组模型指派一键保存/切换/删除,当前状态显示预设名或「自定义」
- 模型网关:熔断保护——同一模型短时间内连续失败自动进入冷却跳过,回退链不再反复撞死端点;冷却结束自动探针恢复
- Antigravity CLI:桥车道工具能力对等——桥会话内可调用 Closure 的本地写作工具(读文件、检索、写章等),工具失败如实呈现
修复 / Fixed
- Agent 页:CLI 模型徽标与桥授权状态矛盾修正——授权后显示「CLI · 工具经 MCP 桥」
- 桥会话:隔离假宿不再复制 CLI 历史日志(防体积膨胀与隐私泄漏)
- 设置:对话框打开期间的校验提示不再被遮罩盖住
- Agent 面板:桥警示条随回合结局收敛——被纠正续跑救回的成功回合不再挂着「离开写作工具族」警示
- 版本管理:并发提交串行化保护——多任务同时提交版本不再互相孤儿化
- 用量面板:保留窗不足一个月时,月度累计如实标注「仅覆盖近 N 天」
已知限制 / Known Issues
- 后台子代理、在线导入、月度预算已过全量自动化测试,完整真机验收进行中;遇到问题请提 issue
This release rounds multi-agent support into a mainline of Closure: the AI in your conversation can now hand tasks to background sub-agents running in parallel — the main dialog never blocks, and you can watch or stop them anytime. Alongside it, the materials library gains online import (wiki entries, critique articles), the usage ledger now meters every call type and adds a monthly budget, and the model gateway gains circuit-breaker protection and assignment presets.
New Features
- Agent panel: Background sub-agents — dispatch research or long-running tasks to background sub-agents from the conversation (up to 3 per project) without interrupting the dialog; the "Background Tasks" bar shows live status and elapsed time, with cancel and a read-only drill-in view of the sub-agent's full session
- Agent panel: Three delivery channels for sub-agent results — toast notification, auto-wake the dialog to report, or silent ledger, chosen at dispatch time; unfinished tasks are honestly marked "interrupted" after an app restart
- Materials library: Online import — paste a URL or search by keyword (wiki entries such as Moegirl, critique articles); body text is extracted automatically, provenance pre-filled by source tier (community / original / criticism), and re-importing the same link is idempotent
- Craft cards: Teaching source badges — distilled teachings are badged on the human-review page as coming from a community wiki, the original work, or criticism
- Usage panel: Full-call-surface metering — embedding / rerank / image-generation calls are now metered and broken down by task label (KB retrieval, indexing, image gen, etc.), with image rows showing counts; Antigravity CLI retries and degradations are metered per attempt, neither missed nor double-counted
- Usage panel: Monthly budget — set soft/hard caps (CNY); the panel shows monthly progress with status colors and one-time over-line reminders; new calls are blocked and honestly metered once the hard cap is hit
- Model config: Task-model presets — save / switch / delete whole model assignment sets in one click; the current state shows the preset name or "Custom"
- Model gateway: Circuit breaker — a model failing repeatedly within a short window enters an automatic cooldown and gets skipped, so fallback chains stop hammering a dead endpoint; a probe restores it after cooldown
- Antigravity CLI: Bridge-lane tool parity — bridge sessions can call Closure's local writing tools (file reading, search, chapter writing, etc.), with tool failures reported faithfully
Fixed
- Agent panel: CLI model badge vs. bridge authorization contradiction fixed — shows "CLI · tools via MCP bridge" once authorized
- Bridge sessions: The isolated fake home no longer copies CLI history logs (size bloat and privacy)
- Settings: Validation toasts are no longer hidden behind the dialog overlay
- Agent panel: Bridge warning strips now settle with the turn's outcome — a successful turn rescued by correction no longer keeps a "left the writing toolset" warning
- Versioning: Concurrent commits are serialized — simultaneous version commits no longer orphan each other
- Usage panel: When the retention window is shorter than a month, the monthly total honestly notes "covers only the last N days"
Known Issues
- Background sub-agents, online import, and the monthly budget have passed the full automated test suite; complete real-machine verification is in progress — please file issues if you hit anything.