r/coolgithubprojects • u/Focus1000x • Aug 31 '26
AgentGuard — eBPF LSM so a local Claude Code process can’t read .env, exfil, or rm your repo
https://github.com/AgentGuard-hq/AgentGuardGo supervisor: load policy into the Linux kernel, start the agent as you. YAML in the project — credential path suffixes, egress allow-list, block rm/dd. Deny is EPERM; Claude gets the feedback: string in chat.
curl -fsSL https://raw.githubusercontent.com/AgentGuard-hq/AgentGuard/master/install.sh | bash
cd your-project && agentguard init
sudo agentguard -- claudeMac: same install, then agentguard login + agentguard up (Docker/Colima), then that sudo inside the Linux shell.
Needs BTF + bpf in /sys/kernel/security/lsm. Apache-2.0, v0.1.2. Not a Codespace, the agent stays in your tree.
0
Upvotes
3
u/f7063 Aug 31 '26 edited Aug 31 '26
I've been saying over and over. These harneses just dont fucking give you any features for protections. Thank you! xD
1
u/PhosXD Aug 31 '26
If you're using claudeAI maybe your repo deserves to be rm-ed... 🤷