refactor: 优化系统提示词体系——工作流程、错误处理与语言对齐#5256
Open
menghuanshiguang wants to merge 2 commits into
Open
Conversation
- DefaultSystemPrompt: add error recovery guidance, thinking format hint, structured Core workflow; remove redundant plan-mode instructions - DefaultPlannerPrompt: add skip-research shortcut, require file path+line refs, add review-before-execute rule for audit/improvement tasks - DefaultTaskSystemPrompt: add failure contract (what was attempted / went wrong / parent alternative) with retry limit - summarySystemPrompt: add user-intent priority to Pending section - boot order: move Memory before policies for coherence, policies appended last - boot_test.go: update stripLanguagePolicy comment for new assembly order Cache-impact: medium — system prompt text changed, prefix cache flushed.
|
提示词可以使用一些训练优化方法,建议直接固定增加一个纪律监督子代理常驻监督任务,耗费不了多少流量,模型实在是无法约束住,只能直接实时监督。 |
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.
Summary
优化 Reasonix 三层 Agent 架构中全部五个系统提示词,将隐式行为显式化,减少模型猜测。
改动文件:
internal/config/config.gointernal/agent/coordinator.gointernal/agent/task.gointernal/agent/compact.gointernal/boot/boot.goVerification
go build ./...— 编译通过go test ./internal/config/ ./internal/agent/ ./internal/boot/ ./internal/memory/ ./internal/control/ -count=1— 全量测试通过Cache impact
Cache-impact: medium — 系统提示词文本变更,前缀缓存会在首次会话时刷新
Cache-guard:
TestCacheHit*和 boot 测试已更新为新的提示词文本System-prompt-review: 已按缓存影响规范审查,所有改动涉及 provider-visible system prompt