Skip to content

优化 NeoCode system prompt 运行与验收指引#482

Merged
phantom5099 merged 2 commits into1024XEngineer:mainfrom
Yumiue:codex/system-prompt-optimization
Apr 27, 2026
Merged

优化 NeoCode system prompt 运行与验收指引#482
phantom5099 merged 2 commits into1024XEngineer:mainfrom
Yumiue:codex/system-prompt-optimization

Conversation

@Yumiue
Copy link
Copy Markdown
Collaborator

@Yumiue Yumiue commented Apr 27, 2026

背景

本次调整优化 NeoCode 主会话 system prompt,使模型行为提示与现有 runtime 验收、工具执行和上下文管理机制保持一致。

当前修改

  • 在核心 prompt 中补充指令优先级、工作区事实优先、UTF-8 安全和用户已有改动保护。
  • 强化任务完成语义,明确 final 只是完成候选,真实完成需经过 completion gate、verification gate 与 acceptance decision。
  • 优化工具使用提示,覆盖动态 MCP 工具、todo 收敛、bash verification intent、子代理结果合并与模型可见 tool result 投影字段。
  • 补充 promptasset/context 测试,锁定关键 operational guidance,避免后续模板回退。

验证

  • go test ./internal/context ./internal/promptasset
  • git diff --check up/main...HEAD

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

Copy link
Copy Markdown

@fennoai fennoai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已完成四轮审查(代码质量、性能、安全、文档准确性)。本次变更范围内未发现需要修改的实质性问题。

- Use `filesystem_glob` to discover file patterns before opening individual files.
- Use `filesystem_grep` to locate symbols or keywords across the codebase efficiently.
- Read tool results carefully before acting. Treat `status`, `ok`, `truncated`, `tool_call_id`, `meta.*`, and `content` as the authoritative outcome of that call.
- Use `filesystem_grep` to locate symbols, strings, and relevant code paths efficiently.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已在代码质量、性能、安全与文档准确性四个维度审阅该改动点,未发现需要修正的问题。

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@phantom5099
Copy link
Copy Markdown
Collaborator

目前这些修改我看不出有什么问题,具体还要看使用效果。还有要修改的吗

@Yumiue
Copy link
Copy Markdown
Collaborator Author

Yumiue commented Apr 27, 2026

目前这些修改我看不出有什么问题,具体还要看使用效果。还有要修改的吗

这样子吧,我测试一下再说

@phantom5099 phantom5099 merged commit d766e59 into 1024XEngineer:main Apr 27, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants