Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

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

Open
#128 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
30/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
rust

Research direction

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.

Written by the indexing model from the issue text.

Description

场景 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 段、工具清单为核心子集。
Dominant language
Rust
Stars
4
Forks
0
Avg merge
5h 32m
Merged PRs (30d)
7

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from jeffkit/recursive

All issues in jeffkit/recursive

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.