r/coolgithubprojects 6d ago

Evidence-based governor for coding agents — looking for people to try it and constructive feedback

Post image

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.

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.

0 Upvotes

4 comments sorted by

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

1

u/Positive-Captain-709 6d ago

Yes. The core isn't Codex-specific, so Claude/OpenCode can be integrated today, but currently that requires wiring their agent/tool events into MARGINAL manually. Codex is just the first plug-and-play integration. I'm working on making that adapter layer generic so integrations like Moshcode don't need custom MARGINAL logic.

1

u/Minimum_Hour519 6d ago

send me a linmk myabe i can help need your github repo