From tool calling to a Reality SDK
Exploring code as a structured interface for agent observation, decision-making, action and verification.

Tool calling isn’t how intelligent systems should interact with the world.
Most of the recent progress in LLMs shows up in one place especially well: software development.
This makes sense, since programming is a strong expression of problem-solving skills:
clear intent, constraints, control flow, verifiable outcomes.
But it’s still a language model, tuned for general-purpose “prompt completion”.
So when we ask models to act in the real world, we resort to a “hack”: a special type of completion called “tool calling” and loop it until a final response, creating “the agent”.
As the number of tools grows, accuracy drops, loops appear, we introduce orchestrator-executor sub-agents and the model loses a coherent view of what it’s actually doing.
This is why approaches like CodeAct are interesting in practice.
Instead of “pick a tool → call it → react → repeat”, the model describes its decision as code.
Actions become part of a small program, not isolated calls, which results in
- more precise actions,
- fewer retries and loops,
- less token waste,
- faster convergence on multi-step tasks.
And it works — you can already see hints of this direction in some agents, like Cursor or Manus.
But here’s the extension that feels underexplored.
What if code becomes not just how models act — but the main interface to reality?
Not only: “do A” → call with result → “do B”
but also:
fetch these memory events → filter by keyword → sort by priority → select brief info about actor and event
create tables with given content → calculate metrics by this formula and put in extra column → export to file → email it to a person → update user memory with preference of specific risk metric.
👆All in one response.
A kind of contextual program, initiated by the model itself — instead of heuristically stuffing context into prompts.
Now add another property: if decisions are expressed as code, we can analyze them. Statically, before execution.
Guardrails, interpretability, consistency stop being purely linguistic problems and become engineering problems instead.
Linting intentions. Simulating plans. Enforcing invariants.
And next step in this direction might look like:
- a different class of models, optimized less for conversations and more for decision-making expressed in code,
- RL-tuned for “clean code”-like best practices to ensure alignment of generated programs,
- with a universal yet customizable interface to the world (similar in spirit to computer-use models with their “Computer” abstraction).
At that point, this stops looking like “tool calling”, and starts looking like a Reality SDK.
I believe we already have more model capability than we know how to instrument.
So before we get a reliable approach to express model actions beyond its textual output,
the next jump may not come only from scaling models, but from giving them a clearer, more structured way to observe, decide, act, and verify —
with less ambiguity about what the model considers to be “reality”.