So lots of buzz about decision models, so I decide...
# proj-agent
a
So lots of buzz about decision models, so I decided to a quick experiment with the SDK’s new `DecisionModel`: ask structured questions, get probabilities back, and use them to guide the workflow. I used it to narrow 50 GitHub tools to 3 for inspecting a failed CI job. Both runs got the answer right; the selected-tools run used 47% fewer tokens and finished 22% faster, including selector overhead. It’s a simple comparison, but a promising example of using decisions to control an agent’s tool menu. Thanks to @curved-angle-80449 for adding this to the SDK! (I think we will see folks trying to use them in varied ways with coding agents)
🙌 3
l
That’s cool! How did you implement the tool selection?
a
I grouped the 50 GitHub tools into 10 families, like Actions, issues, and repository contents. Before starting the agent, we passed the task to the SDK’s
DecisionModel
and asked whether each family was needed. It returned probabilities. Our harness kept families scoring ≥0.5, with a fallback to all tools for uncertain or invalid results. For this task, it chose only Actions, which contains 3 tools
(I might post this on social media later if I get the time, haha)
I used the openai decision model, wasn’t sure if we had one in openhands cloud
l
I’m just wondering how you implemented this, directly through the SDK code? Did you use MCP?
a
Both: the SDK selected the tools, and MCP provided them. 1. The Python script called the SDK’s DecisionModel with the task and questions about each tool family. 2. The harness converted the returned probabilities into a list of tool names. 3. I started the official GitHub MCP server with --tools=selected names, loaded through an OpenHands plugin.The agent then called those tools through MCP as usual. I didn’t modify the SDK or GitHub MCP server; the custom code connected the decision result to the server’s tool filter.
c
When I added decision model support to SDK, I also thought about creating an SDK tool so that agent could call decision models but didn’t primarily because I figured once the LLM is involved, it’s not going to save much to have it call a decision model. I was thinking of decision model as being something that gates use of LLM calls rather than reverse. So helpful in automation loop for example or as part of our agent harness itself for skill selection, etc. But Raj if you have seen cases where it makes sense for agent driven by LLM to delegate to a decision model, I am happy to write the tool for it.
l
Ahhh, got it. So you controlled it on MCP server startup, clever. It probably won’t be very easy to do operationally though because you need to know the task before you start the MCP, which may not be easy in our current codebase
a
(I just saw the Cloudflare talk yesterday and was inspired - lots of example of using decision models, including with coding agents
Screenshot 2026-11-12 at 7.04.30 AM.png
c
@limited-student-10747 We might be able to replicate something like this in SDK where we mediate mcp tool selection through another component that has read the tool definitions. It could be lower cost llm or decision model. That component could also have configuration that would allow it to cache an MCP catalog and could allow for more lazy loading of MCPs.
This could be useful in high volume instances where you have a large catalog of whitelisted components as AMD has done.
l
Agreed, in fact we might have an issue open for this already. @fresh-machine-37269 do we have an issue open on OpenHands/software-agent-sdk for selective use of MCP tools?
👀 1
f
🤖 On it! View progress here: oss-agent-canvas.ngrok.dev/conversations/…
✅ Done! Yes! Issue #376 covers exactly this: MCP Tool Integration: Selective tool registration and filtering (open, labeled
enhancement
, created Sept 2025). It's framed around the same problem you two just discussed — MCP servers exposing too many tools — and specifically calls out the limits of the current
filter_tools_regex
approach: it's client-side only (tools still get loaded/initialized), regex is crude, and there's no selective registration at startup. The proposed direction is to filter/choose tools during MCP initialization rather than after loading, which lines up nicely with the mediated-catalog/decision-model idea from earlier in this thread.
c
@fresh-machine-37269 Would you add a comment to the issue suggesting use of DecisionModel for this an citing the experiment Raj did? Also if there are other aspects of the design we discussed here be sure the comment includes those suggestions as well.
f
You are not authorized to use this OpenHands bot (sender is not on the allow list).
😢 1