Skip to content

feat(agent-core-v2): allow read-only tools in /btw side questions - #3613

Merged
wbxl2000 merged 3 commits into
mainfrom
feat/btw-readonly-tools
Sep 8, 2026
Merged

feat(agent-core-v2): allow read-only tools in /btw side questions#3613
wbxl2000 merged 3 commits into
mainfrom
feat/btw-readonly-tools

Conversation

@liukx0205

Copy link
Copy Markdown
Collaborator

Problem

The /btw side-question child agent vetoed every tool call, so it could only answer questions from conversation history — it could not answer questions that require looking at files ("where is that function", "what does this config mean").

What changed

  • The btw child agent now allows the read-only tools Read, Grep, and Glob; all other tool calls (Write, Edit, Bash, etc.) stay vetoed. Read/Grep/Glob are already auto-approved by the default-tool-approve policy, so this introduces no approval friction.
  • Updated the side-question system reminder and deny message to match the new behavior.
  • Updated the server-api docs (en/zh) for the :btw session action.
  • Tests: the btw service test now covers both paths — Read/Grep/Glob pass through, Bash/Write/Edit are vetoed.

The btw child agent previously vetoed every tool call. Allow the
read-only tools Read, Grep, and Glob so side questions about the
codebase can be answered from current file contents; write and
execute tools stay disabled.
@changeset-bot

changeset-bot Bot commented Sep 7, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 275a264

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@moonshot-ai/kimi-code Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new

pkg-pr-new Bot commented Sep 7, 2026

Copy link
Copy Markdown
pnpm dlx https://pkg.pr.new/@moonshot-ai/kimi-code@275a264
npx https://pkg.pr.new/@moonshot-ai/kimi-code@275a264

commit: 275a264

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9cc43332ba

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread .changeset/btw-readonly-tools.md Outdated
Comment thread docs/en/reference/server-api.md Outdated
@liukx0205

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ef918b3da8

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread .changeset/btw-readonly-tools.md Outdated
@wbxl2000
wbxl2000 merged commit d4d20d2 into main Sep 8, 2026
15 checks passed
@wbxl2000
wbxl2000 deleted the feat/btw-readonly-tools branch September 8, 2026 06:50
@github-actions github-actions Bot mentioned this pull request Sep 8, 2026
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