feat: 引入 Todo 任务规划及上下文管理优化#47
Merged
minorcell merged 12 commits into1024XEngineer:mainfrom Mar 25, 2026
Merged
Conversation
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
minorcell
reviewed
Mar 24, 2026
Collaborator
minorcell
left a comment
There was a problem hiding this comment.
整体方向不错——Todo 任务规划、Token 剪枝优化、配置集中化都是有价值的改动,测试也补得比较扎实。以下是几处值得关注的 bug 和架构问题,请评估修复。
minorcell
reviewed
Mar 24, 2026
Collaborator
There was a problem hiding this comment.
这里看上去写的更像是markdown?而不是 txt ?
| import ( | ||
| "context" | ||
| "fmt" | ||
| "go-llm-demo/internal/server/domain" |
Collaborator
Author
There was a problem hiding this comment.
模块名字,之前刚开始初始化的时候用了这个名字
# Conflicts: # internal/tui/core/model.go # internal/tui/core/msg.go # internal/tui/core/update.go # internal/tui/core/update_test.go # internal/tui/core/view.go
# Conflicts: # configs/persona.txt # internal/server/service/security_service.go
Collaborator
|
中文编码、path问题就其他的PR解决吧。这个我先merge了 |
phantom5099
added a commit
that referenced
this pull request
Apr 22, 2026
refactor(runtime): hard-cut lifecycle/completion/facts semantics
pionxe
pushed a commit
to pionxe/neo-code
that referenced
this pull request
May 2, 2026
…7608084 test(gateway): 补充 runtime snapshot/todo 分支覆盖
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
类型 (Type of change):
描述 (Description)
本次 PR 旨在解决 Agent 在处理复杂、多步骤任务时因“单 JSON 捕获”机制导致的 状态丢失 和 决策鲁棒性不足 的核心痛点。通过引入一个 显式的任务清单 (Todo List) ,我们将 Agent 从一个简单的“指令执行单元”升级为了一个具备初步 规划、执行、反思 能力的“任务处理单元”。
同时,为了支撑更长周期的任务,我们对上下文 Token 剪枝策略进行了深度优化,使其在保留关键信息和节省 Token 之间取得了更好的平衡。
主要变更 (Key Changes)
✨ 1. 功能: 显式任务规划 (Todo List)
🚀 2. 优化: 智能 Token 剪枝
🛠️ 3. 维护与重构
测试验证 (How Has This Been Tested?)