Skip to content

feat(agent-tools): let agents call other agents by default - #4672

Merged
devswha merged 3 commits into
mainfrom
feat/delegation-defaults-on
Nov 25, 2026
Merged

devswha merged 3 commits into
mainfrom
feat/delegation-defaults-on

Conversation

@devswha

@devswha devswha commented Nov 25, 2026

Copy link
Copy Markdown
Owner

What

"Let agents call other agents" now defaults to start on a PC that never set it, and "Agents they may call" defaults to every harness Ovis has an ACP launch for (claude, codex, copilot, opencode, agy, gjc). The chip list stays so each can be turned off, and an explicitly saved view/off is kept across restarts. Settings description shortened to "On this PC only. Only you can approve requests."

Part A of the owner-approved delegation convenience package (2026-11-25). Which children actually start is unchanged here (still the verified launches); later PRs in the package relax that.

Tests

  • server/agent-tools/hub.test.ts: default after an unrelated preference save is start with all harnesses; a saved view still refuses after reload (replaces the old "default is view" test, since the default changed on purpose).
  • src/components/AgentCallsRows.test.tsx: starts on with eligible agents selected; unticking and turning off write the grant (old "off by default" tests updated to the new default).

Validation

  • bun run check fast: typecheck, build, generated files ok; unit 27770 pass, 2 fail: server/ssh-account-add.test.ts (local forwarding socket path too long under this machine's long TMPDIR) and scripts/plugin-tui.test.ts (.env HOME fallback); both are environment failures unrelated to this diff. CI runs them on its own runner.
  • Focused: bun test src/components/AgentCallsRows.test.tsx server/agent-tools src/lib/i18n 96 pass, 0 fail.

No new Settings control; only the default and one description line change.

@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Explain Change →

Important

Review skipped

Auto incremental reviews are disabled on this repository.

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

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

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • New Features
    • Agent delegation on this PC is now enabled by default for eligible installed agents, allowing them to start and send work to one another.
    • You can choose which agents are callable, switch to view-only access, or turn delegation off. Existing choices are preserved.
    • Starts on another machine still require your approval each time.

The default agent harness policy now enables local delegation for ACP-launch harnesses. Preference API responses and machine events expose the effective policy without changing stored preferences. The Settings UI and supporting documentation reflect the updated default and agent-selection rules.

Changes: Local delegation policy

Layer / File(s) Summary
Default policy and preference responses
shared/harness-tool.ts, server/preferences.ts, server/machine-events.ts, server/agent-tools/hub.test.ts, server/api.contract.test.ts, server/preferences.test.ts
The default policy enables start for ACP-launch harnesses. Preference API responses and machine events expose the effective policy. Tests cover defaults, saved preferences, and legacy preference files.
Agent selection and delegation documentation
src/components/AgentCallsRows.tsx, src/components/AgentCallsRows.test.tsx, src/lib/preferencesSync.test.ts, changelog.d/*delegation*.md, changelog.d/acp-agent-settings.md, docs/harness-*.md, src/lib/i18n/setup.*.ts
The Settings UI offers installed agents with ACP launches and reflects the default selection. Tests cover selection, saved policies, and preference synchronization. Documentation and translations describe the updated delegation behavior.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Feature

Possibly related PRs

  • devswha/ovis#4624: Changes the default agentHarnessTool level and related chip-list behavior, which this PR also updates.
Merge Risk: Minimal · previous review fbc77

This change makes agents on a PC able to call other installed ACP-capable agents by default, while saved view-only or off choices are kept. Launch checks and human approval still apply, and tests cover the changed defaults and saved preferences. No concrete merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: agents can call other agents by default. The changeset sets the default delegation policy to start for the ACP-launch harnesses, which matches the title's scope.
Description check Passed The description covers What (behavior change, defaults, saved view/off kept, description shortened), Tests (updated hub and AgentCallsRows tests), and Validation (check fast results with two environme…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description covers What (behavior change, defaults, saved view/off kept, description shortened), Tests (updated hub and AgentCallsRows tests), and Validation (check fast results with two environment failures explained, focused test run). It follows the template's Change and Validation sections. It does not link an issue, which the template asks for on features, and the template's contract-test coverage note for HTTP changes is only partly addressed, since the API contract test changes are not mentioned.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
Fix failing CI checks

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 09ae118 and fbc7764.

Files selected for processing: 16

  • changelog.d/acp-agent-settings.md
  • changelog.d/delegation-defaults-on.md
  • docs/harness-contract.md
  • docs/harness-tool.md
  • server/agent-tools/hub.test.ts
  • server/api.contract.test.ts
  • server/machine-events.ts
  • server/preferences.test.ts
  • server/preferences.ts
  • shared/harness-tool.ts
  • src/components/AgentCallsRows.test.tsx
  • src/components/AgentCallsRows.tsx
  • src/lib/i18n/setup.ja.ts
  • src/lib/i18n/setup.ko.ts
  • src/lib/i18n/setup.zh.ts
  • src/lib/preferencesSync.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 2 remain after this review.

@devswha
devswha merged commit 4149427 into main Nov 25, 2026
22 checks passed
@devswha

devswha commented Nov 25, 2026

Copy link
Copy Markdown
Owner Author

Merged through pr-merge at head a9095b823. Seen before the merge was asked for: required checks green, no unresolved thread, no conflict, no hold, main not red, no release in progress. CodeRabbit said it did not review (a limit or a skip) since this head.

Owner approved the convenience package (2026-11-25). CodeRabbit did not review this head (limit). Reviews: omo gate reviewer (BLOCK: stale browser default HIGH, GJC chip MEDIUM, changelog LOW) and Codex gpt-6.2-sol-fast xhigh adversarial review (BLOCK: same HIGH, contract doc LOW); all fixed in fbc7764, plus the browser regression expectation in a9095b8. Pre-existing items left: stop after grant shrink (fixed by #4673), start/view race LOW.

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