Skip to content

feat: add customTools to AgentConfig#109

Merged
JackChen-me merged 3 commits intomainfrom
feat/custom-tools
Apr 15, 2026
Merged

feat: add customTools to AgentConfig#109
JackChen-me merged 3 commits intomainfrom
feat/custom-tools

Conversation

@JackChen-me
Copy link
Copy Markdown
Owner

Summary

  • Add customTools field to AgentConfig so users can inject custom ToolDefinition objects through the orchestrator API (runAgent/runTeam/runTasks)
  • Custom tools are registered with runtimeAdded: true, bypassing tools allowlist and toolPreset filtering (can still be blocked by disallowedTools)
  • Previously users had to hack tool/built-in/index.ts or bypass the orchestrator entirely

Test plan

  • New test: custom tool name appears in LLM chat options via runAgent()
  • New test: custom tool survives toolPreset: 'readonly' filtering
  • Full suite passes (557 tests)

Ref #108

…ool injection

Users can now pass custom ToolDefinition objects via AgentConfig.customTools,
which are registered alongside built-in tools in all orchestrator paths
(runAgent, runTeam, runTasks). Custom tools bypass allowlist/preset filtering
but can still be blocked by disallowedTools.

Ref #108
Previously runtime-added tools bypassed all filtering including
disallowedTools, contradicting the documented behavior. Now custom
tools still bypass preset/allowlist but respect the denylist.
Repository owner deleted a comment from chatgpt-codex-connector bot Apr 15, 2026
@JackChen-me JackChen-me merged commit 0170e43 into main Apr 15, 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