Skip to content

Conversation

@rabi
Copy link
Contributor

@rabi rabi commented Jan 14, 2026

Summary

  • Add Code Execution Mode section to system prompt explaining that execute_code must be used to call other tools
  • Add fallback in dispatch to prefix code_execution tools when some smaller models omit it
  • Normalize extension names consistently in add_client and is_extension_enabled
  • Clarify in SYNTAX docs that tool calls return parsed objects (NEVER use JSON.parse)

Type of Change

  • Feature
  • Bug fix
  • Refactor / Code quality
  • Performance improvement
  • Documentation
  • Tests
  • Security fix
  • Build / Release
  • Other (specify below)

AI Assistance

  • This PR was created or reviewed with AI assistance

Testing

Tested locally with Gemini and hybrid models like Nemotron.

- Add Code Execution Mode section to system prompt explaining
  that execute_code must be used to call other tools
- Add fallback in dispatch to prefix code_execution tools when some models omit it
- Normalize extension names consistently in add_client and is_extension_enabled
- Clarify in SYNTAX docs that tool calls return parsed objects (NEVER use JSON.parse)

Signed-off-by: rabi <[email protected]>
@rabi
Copy link
Contributor Author

rabi commented Jan 16, 2026

Hey @alexhancock, PTAL. This makes code_execution work better with smaller hybrid models like Nemotron.

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