# ContextGuard

- **Event:** [The Persistent Context Sprint Hackathon | Live at MongoDB .Local Build Fest](https://cerebralvalley.ai/e/persistent-context-sprint-hackathon)
- **When:** Thu, Aug 13 at 12:30 – 8:00 PM (PDT)
- **Where:** Pier 48, San Francisco, CA
- **Team:** [Yugav Bhatia](https://cerebralvalley.ai/u/Yugav)
- **GitHub:** https://github.com/ybhatia10088/ContextGuard
- **Demo video:** https://youtu.be/slyBLcT7HLQ
- **Gallery:** https://cerebralvalley.ai/e/persistent-context-sprint-hackathon/hackathon/gallery
- **Page:** https://cerebralvalley.ai/e/persistent-context-sprint-hackathon/hackathon/gallery/28

ContextGuard is a self-healing memory layer for AI agents that prevents conflicting, stale, or untrusted persistent context from influencing future actions. In our demo, a live Fireworks-powered deployment agent retrieves long-term policy memory from MongoDB before calling tools. When new context conflicts with a verified policy, ContextGuard quarantines it, explains the conflict through a Memory Court-style adjudication, and blocks the agent’s action until the trusted memory state is explicitly verified. Once the policy is updated, the same agent can safely act on the new memory, with all state persisting across sessions.

## More from The Persistent Context Sprint Hackathon | Live at MongoDB .Local Build Fest

- [Margaret_Dementia Caretaker](https://cerebralvalley.ai/e/persistent-context-sprint-hackathon/hackathon/gallery/25)
- [Rocket Agent](https://cerebralvalley.ai/e/persistent-context-sprint-hackathon/hackathon/gallery/26)
- [Will Big Tech eat your startup?](https://cerebralvalley.ai/e/persistent-context-sprint-hackathon/hackathon/gallery/27)
- [Guinea Pig](https://cerebralvalley.ai/e/persistent-context-sprint-hackathon/hackathon/gallery/29)
- [ReadIt](https://cerebralvalley.ai/e/persistent-context-sprint-hackathon/hackathon/gallery/30)
- [Muster](https://cerebralvalley.ai/e/persistent-context-sprint-hackathon/hackathon/gallery/31)

---

Markdown version of https://cerebralvalley.ai/e/persistent-context-sprint-hackathon/hackathon/gallery/28. Site index for agents: https://cerebralvalley.ai/llms.txt · full text: https://cerebralvalley.ai/llms-full.txt
