I have been working on ContextDuty, an open-source project focused on preventing sensitive information from leaking into AI tools.
The motivation was simple - developers are increasingly using AI coding assistants, agents, MCP servers and LLM APIs that interact with local repositories, configuration files, credentials and proprietary data.
Scanning Git repositories alone isn't enough. A secret can reach an AI model before it ever gets committed.
ContextDuty currently provides:
- Local PII and secret detection using Microsoft Presidio and deterministic detectors.
- IDE protection through AI-tool-specific ignore files.
- Git pre-commit scanning.
- A local HTTPS proxy for supported AI API traffic.
- An MCP server that sanitizes tool results before they enter model context.
- Policy-based blocking, warning and redaction.
- CI/CD scanning.
The project is MIT-licensed, and the core scanning and enforcement run locally.
GitHub: https://github.com/SHUBHAGYTA24/contextduty
I would particularly appreciate feedback from people working on AI infrastructure, MCP, agent frameworks, DevSecOps and enterprise security.
What security gaps are you seeing in your own agentic workflows? What would make a tool like this useful enough to deploy across an engineering organization?
Contributions, issues and technical criticism are welcome!