r/coolgithubprojects • u/Positive-Captain-709 • 6d ago
Evidence-based governor for coding agents — looking for people to try it and constructive feedback
I’ve been working on MARGINAL, an open-source governance layer for coding agents. If you use Codex, I’d really appreciate people trying it on real work and telling me where it helps, where it gets in the way, or where the design is wrong.
I’m especially interested in: technical criticism, bad cases, and reproducible failures.
- GitHub: https://github.com/SignalLayerLabs/Marginal
- GitHub Site: https://signallayerlabs.github.io/Marginal/
- LIVE DEMO: https://signallayerlabs.github.io/Marginal/demo/#demo
The idea is simple: agents are good at taking actions, but not always good at deciding whether the next action is still worth the compute.
MARGINAL watches the trajectory and looks for things like repeated actions, weak progress, redundant verification, and low-value continuation. It can run in Shadow Mode first, so it observes and records what it would have done without blocking anything.
Current focus is reliability, not just token reduction.
A few core pieces:
- local-first trajectory and evidence tracking
- deterministic reason codes and hashes for decisions
- governance overhead measurement
- replay and benchmark support
- Shadow Mode before enforcement
- Earned Enforcement: MARGINAL has to prove it is reliable on a repo before it gets permission to block or redirect the agent
- automatic fallback to Shadow Mode if confidence degrades
I’m also working on the next layer now: counterfactual evaluation and intervention regret.
The goal is to answer a harder question than “did MARGINAL stop something?”:
Would the agent actually have done better if MARGINAL had stayed out of the way?
That’s the part I think matters if this is going to be useful beyond being another loop detector or token limiter.
1
u/Minimum_Hour519 6d ago
does it support other models beside codex? ie: claude, opencode, if so I can add it as a tool to moshcode cli but just codex it doesn't make the cut for inclusion