feat: rebuild neocode as a local coding agent MVP#66
Merged
minorcell merged 7 commits into1024XEngineer:mainfrom Mar 27, 2026
Merged
feat: rebuild neocode as a local coding agent MVP#66minorcell merged 7 commits into1024XEngineer:mainfrom
minorcell merged 7 commits into1024XEngineer:mainfrom
Conversation
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
minorcell
reviewed
Mar 26, 2026
- docs: 文件名统一使用 kebab-case,正文全面中文化,并严格按官方规范重写 agents.md。 - refactor(tui): 拆分臃肿的 app.go (分为 app, update, view, commands),将所有交互统一收敛至 slash command (/)。 - feat(tools): 文件系统新增 grep, glob 和 edit 工具,其中 edit 包含严格的防歧义替换拦截机制。 - test: 为 config, registry 和 openai 补充表驱动测试(引入 httptest 模拟 SSE 流),核心模块覆盖率达 80%+。 - chore: 清除全局硬编码配置,并移除 Markdown 文档中无意义的空行。
phantom5099
added a commit
that referenced
this pull request
May 3, 2026
test(rules): improve coverage for rule loading
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.
概要
本次 PR 将 NeoCode 重构为一个基于 Go + Bubble Tea 的本地化 Coding Agent MVP。
它用“本地优先”的 Agent 架构替代了此前偏服务端的结构,并打通了完整的 MVP 闭环:
用户输入 → Provider 对话 → 工具调用 → 工具执行 → 持续推理 → TUI 渲染
变更内容
围绕
cmd/neocode重建了应用启动流程与 CLI 入口新增配置模块,包含:
RWMutex保护的ConfigManagergodotenv加载.env新增 Provider 防腐层(anti-corruption layer),包含:
新增运行时核心模块,包含:
~/.neocode/sessions)新增工具层,包含:
filesystem_read_filefilesystem_write_filebashwebfetch将 TUI 重构为更沉浸式的瀑布流编码代理界面,包含:
体验改进
/set url <url>/set key <key>/model交互式选择器/set model <model>破坏性 / 结构性变更
internal/server/...目录结构验证方式
go test ./...说明