I'm 16 and I built an open-source guard for agent tool calls. Need critics.
I'm Aditya, 16, and AegisKernel is my project: a deterministic guard between an AI agent and its tools. It looks at the actual arguments and refuses the call before the tool body runs - path escapes outside an allowlist, .env reads, shell chaining like cat x | bash, destructive commands. No LLM in the loop, so the same input always gives the same verdict.
What's working: the block path is cheap (1-73us, measured by the suite in the repo), and 53 checks pass - split rm flags, base64 pipes, inline python payloads, symlink attempts.
What isn't: my landing page. Two people on HN told me they had to read the README to understand what it does. Also my README claimed microseconds that only held for block paths; allow paths cost 160-300us. Both are getting fixed this week.
What I need: 3 teams running coding agents with shell or file tools who will actively try to break this. Not a customer - a critic. I'll fix what you break, publicly.







Comments5
is it helpful or no
well, that's a common idea. i'd say, if we assume that agent can run any code, we a priori cannot protect system with a deterministic algorithm from reading exact files or running exact commands
so I'd say it's a good idea until we don't want complete protection from it. if agent does
cat .env— yea, it's easy to effectively detect and prevent. but technically agent still can run smth likeconsole.log(readFile(['v','n','e','.'].reverse()))and read logs later that's impossible to prevent if we assume that app can read .env to just workactually your agent just should not have any access to your production secrets. and yea, storing real secrets like tokens in
.envis an antipattern, idk why do agents keep tryin to store them there. use docker secrets or any convenient secret managerGreat instinct, Aditya. A deterministic guard between the agent and its tools is the kind of check agents need before they touch real money or real data. I will give the repo a proper read this week.
5 comments
is it helpful or no
well, that's a common idea. i'd say, if we assume that agent can run any code, we a priori cannot protect system with a deterministic algorithm from reading exact files or running exact commands
so I'd say it's a good idea until we don't want complete protection from it. if agent does
cat .env— yea, it's easy to effectively detect and prevent. but technically agent still can run smth likeconsole.log(readFile(['v','n','e','.'].reverse()))and read logs later that's impossible to prevent if we assume that app can read .env to just workactually your agent just should not have any access to your production secrets. and yea, storing real secrets like tokens in
.envis an antipattern, idk why do agents keep tryin to store them there. use docker secrets or any convenient secret managerGreat instinct, Aditya. A deterministic guard between the agent and its tools is the kind of check agents need before they touch real money or real data. I will give the repo a proper read this week.