feat(runtime): 极简模式(minimal preset)——单行提示词 + 核心工具子集 + 跳过 memory/skills/env 注入与压缩
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 30/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- rust
调研方向
First review the preset abstraction in dependency #127, then read the injection points in src/config.rs, src/skills.rs, and src/runtime/context_management.rs. Compare the minimal preset requirements with the standard session behavior and run the benchmark task set referenced by the issue. Done means minimal sessions omit the specified injections and compaction, expose only core tools, and have evidence for the token-size and success-rate acceptance checks.
由索引模型根据 Issue 内容生成。
描述
场景 gap 单(okguitar 提报)· 优先级 P1 · 依赖:depends-on: #127 · 来源:DSH minimal preset 借鉴(jeffkit 拍板跟进)
基线 HEAD = 4e1aee98。
Summary
- 现状:所有会话无条件注入——6 层 memory(
src/config.rs:575-629:user / project / memory-summary / scratchpad / facts / episodic-recall)、skills reminder(src/skills.rs:1164-1170)、项目上下文(AGENTS.md/CLAUDE.md,16KB 截断,src/config.rs:848,900-908)、env 段;compactor 也一律挂(src/runtime/context_management.rs:35-81)。简单会话(纯聊天 / 单文件改动 / 单命令执行)也在付这份固定 token。 - 参照 DSH minimal preset(
packages/bundle/web-app/presets/minimal.patch.yml):persona 一句 "You are a helpful software engineer assistant."(complete: true独占整份 system prompt、includeRuntimeContext: false)+ 单一持久 shell + 不挂压缩/plan/subagent/todo;官方定位(packages/client/ui-agent-preset/src/client/locales.ts):"Agent 仅使用终端工具完成任务,适合测试和对比其基础表现"。
影响
C 端高密度低开销的核心杠杆:每步请求的 system 部分从「默认词 ~2.3KB + 6 层 memory + skills catalog + 项目上下文 + env 段」降到几行——首 token 延迟与单 turn 成本同降;同时它天然是升级增益量化的基线档(配套 benchmark 单)。
建议
- minimal preset(依赖 #127 的 preset 抽象):a) 提示词短档(允许
complete式覆盖整份组装);b) 工具 = read/write/edit/Bash 核心子集;c) 跳过 memory/skills/项目上下文/env 注入与 compaction/reinject(或全部改为 opt-in); - 会话创建参数可选档位(默认 standard 不变);
- 每档记录 per-request system token 体量(供 #113/#114 成本面观测)。
验收
- minimal 档 vs standard 档的 system 部分 token 差 ≥1 个数量级(实测留证据);
- 简单任务集(读-改-跑 / 搜索 / 多步)在 minimal 档成功率不劣化(跑 benchmark 单的任务集);
- 断言:minimal 会话首条 system 无 memory/skills/env 段、工具清单为核心子集。
- 主要语言
- Rust
- 星标
- 4
- 派生
- 0
- 平均合并
- 5 小时 32 分钟
- 30 天内合并 PR
- 7
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
jeffkit/recursive 的其他 Issue
-
fix(pipeline): preflight kill-stale 在 v2 console/worker 路径把并发兄弟 run 当孤儿杀——同仓并发 run 互杀成链(今日 4 例实证)未关闭
难度 4/5 3-5 天 新手友好度 35/100
jeffkit/recursive#148 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 38/100
jeffkit/recursive#147 · 14 条评论 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 25/100
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 35/100
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 20/100
jeffkit/recursive#134 · 6 条评论 ·
维护者通常 1 天内回复
查看 jeffkit/recursive 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 75/100
element-hq/lk-jwt-service#248 ·
维护者通常 1 天内回复
-
agent:triaged bug bughunt pm:pipenv priority:p1
难度 2/5 1-3 小时 新手友好度 72/100
SocketDev/socket-patch#1219 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
pact-foundation/pact-cli#154 ·
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
antithesishq/bombadil#361 ·
维护者通常 1 天内回复