Skip to content

fix(headless): disable agent tools by default - #1488

Merged
Astro-Han merged 4 commits into
mainfrom
fix/headless-disable-agent-tools
Jul 26, 2026
Merged

Astro-Han merged 4 commits into
mainfrom
fix/headless-disable-agent-tools

Conversation

@Astro-Han

Copy link
Copy Markdown
Contributor

Summary

  • keep the default Headless provider surface to the six isolated Bash/file tools by leaving the entire Agent group unbound
  • add one explicit opt-in contract: Config.agentTools and MAKA_AGENT_TOOLS=true|false
  • provision child-session tools only when the same switch is enabled, and attest the effective value in Harbor execution identity
  • retain deferred load_tools activation when Agent tools are explicitly enabled

Verification

  • npm run lint
  • npm run format:check
  • npm run typecheck --workspace=@maka/headless
  • node --test dist/__tests__/runner.test.js (18 passed)
  • node --test dist/__tests__/tools.test.js dist/__tests__/task-agent-controller.test.js dist/__tests__/cell-output.test.js dist/__tests__/harbor-cli-connection-defaults.test.js dist/__tests__/cli.test.js (153 passed)
  • node --test dist/__tests__/harbor-adapter.test.js dist/__tests__/harbor-cell.test.js (175 passed, 1 skipped)

Review focus

This intentionally changes the Headless default. Callers that want parent Agent tools and child sessions must now set agentTools: true; Harbor callers use MAKA_AGENT_TOOLS=true. Heavy-task and task-ledger tools keep their existing explicit, default-off policies.

@Astro-Han
Astro-Han merged commit 18b65df into main Jul 26, 2026
3 checks passed
@Astro-Han
Astro-Han deleted the fix/headless-disable-agent-tools branch July 26, 2026 01:20
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