Skip to content

feat: 落地编码基本工具与 plan_* - #22

Merged
SATA260 merged 4 commits into
feat/agent-planesfrom
feat/coding-tools
Sep 13, 2026
Merged

feat: 落地编码基本工具与 plan_*#22
SATA260 merged 4 commits into
feat/agent-planesfrom
feat/coding-tools

Conversation

@SATA260

@SATA260 SATA260 commented Sep 12, 2026

Copy link
Copy Markdown
Owner

改了什么 / What changed

  • 注册 read / write / edit / ls / grep / find / bash / powershellplan_*;工具定义留在 internal/agent/tools,初始化只注入 Execute 用的 Ports。
  • 路径走 jail:会话 workspace_id 优先,目录外 Inspect 失败;工作区内 .cursor/*.md 的 write 可跳过审批。
  • 时间线增加计划预览。Git 用户操作仍走 HTTP + pkg/git,不进 Agent Tool。

怎么验证 / How to verify

  • cd server && go test ./...
  • pnpm test:client
  • fake 模型调用 read / ls 能读到会话工作目录;writeask_for_approval 下开审批,auto_approve / yolo 直接写
  • 写会话目录外路径应失败,不能当成功
  • plan_write 只落在 .cursor/*.md,时间线出现计划预览

相关 Issue / Related issue:#19

把 read/write/edit/ls/grep/find/bash/powershell 和 plan_* 接到 Ports,Inspect 拦目录外路径;工作区写入 Current working directory。

Co-authored-by: Cursor <cursoragent@cursor.com>
@coderabbitai

coderabbitai Bot commented Sep 12, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 56d4dfdb-b764-46f9-b73b-24732c0c2712

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

SATA260 and others added 3 commits September 12, 2026 22:58
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@SATA260 SATA260 changed the title feat: 注册编码八工具与 plan_* feat: 落地编码基本工具与 plan_* Sep 13, 2026
@SATA260
SATA260 merged commit de786a9 into feat/agent-planes Sep 13, 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.

1 participant