I'd like to share an updated methodology for building agents.[P]
Mirrored from r/MachineLearning for archival readability. Support the source by reading on the original site.
Hi guys, been exploring here for a while, wanted to share something we've been working on. It's called Spice, an open-source decision layer above agents.
We have tons of great execution agents now — Claude Code, Codex, hermes, etc. They're good at doing stuff. But they're terrible at deciding WHAT to do and WHEN to do it.
Right now the "decision" layer is basically you typing a prompt. The agent doesn't know your context, your priorities, your constraints. It just does whatever you tell it.
What Spice does: It's a lightweight runtime that acts as a "brain" above your agents. Instead of you deciding what to delegate, Spice observes your context, detects conflicts, simulates options, and dispatches tasks to the right agent.
The core loop: perception → state model → simulation → decision → execution → reflection
It allows AI systems to:
understand context (Decision relevant state) reason about possible futures (simulation) make structured decisions (decision) delegate actions to agents (execution) learn from outcomes (Decision Evolution) Spice does not replace agents like Claude Code, Codex, Hermes, or OpenClaw. It gives them an auditable, traceable, and evolving decision layer before execution.
Github: https://github.com/Dyalwayshappy/Spice
Feel free to fork, star the repo, or share any feedback and ideas. Would love to build this together with the community.
[link] [comments]
More from r/MachineLearning
-
STOP racist posts about Chinese researchers [D]
Jun 8
-
Université Paris Saclay or TU Delft for Applied Mathematics Masters [R]
Jun 8
-
Why I stopped using semantic embeddings for tool selection and switched back to BM25 [D]
Jun 8
-
where can i find Maven AI Evals for Engineers & PMs and End-to-End AI Engineering Bootcamp[D]
Jun 8
Discussion (0)
Sign in to join the discussion. Free account, 30 seconds — email code or GitHub.
Sign in →No comments yet. Sign in and be the first to say something.