codegraph icon indicating copy to clipboard operation
codegraph copied to clipboard

Feature Proposal: Security/Sensitive Data Node Tagging for AI Agents

Open ashp15205 opened this issue 5 months ago • 0 comments

Hi @colbymchenry,

I really love the direction of Codegraph - reducing token overhead and tool calls for local AI agents is exactly what the ecosystem needs.

I maintain a repository called scankii , which uses Tree-sitter AST parsing to prevent AI agents from accidentally leaking credentials or sensitive data via prompt injection.

While looking at Codegraph, I realized there is a massive opportunity to embed security directly into the knowledge graph. When Codegraph indexes a codebase, what if it tagged specific nodes (like API keys, database connection strings, or password variables) as sensitive: true?

This way, when an agent (like Cursor or Claude) queries the graph for context, the graph can explicitly warn the agent: "This node contains sensitive data, do not expose it in stdout or network calls."

Since I already have experience building AST-based credential tracking, I'd love to submit a Pull Request to help build an experimental "Security Tagger" module into Codegraph.

Would you be open to a PR exploring this?

ashp15205 avatar Jun 28 '26 07:06 ashp15205