Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

feat(runtime): 极简模式(minimal preset)——单行提示词 + 核心工具子集 + 跳过 memory/skills/env 注入与压缩

已关闭
#128 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 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 单)。

建议

  1. minimal preset(依赖 #127 的 preset 抽象):a) 提示词短档(允许 complete 式覆盖整份组装);b) 工具 = read/write/edit/Bash 核心子集;c) 跳过 memory/skills/项目上下文/env 注入与 compaction/reinject(或全部改为 opt-in);
  2. 会话创建参数可选档位(默认 standard 不变);
  3. 每档记录 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 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

jeffkit/recursive 的其他 Issue

查看 jeffkit/recursive 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。