Hacker
Pavan M
@pav101
Projects
Toolsmith
Flagsmith Experimentation HackathonNov 2026
Toolsmith a small Python tool that puts every AI agent tool behind a self-hosted Flagsmith feature flag. The flag says yes or no, and its value carries the limits, like a maximum refund amount or "needs human approval." It solves the problem that an AI agent can act before anyone approves it — recent incidents show agents deleting production data, escaping test sandboxes, and downloading real customer records. Toolsmith adds a check at the exact moment the agent tries to use a tool, so the model can propose anything but cannot act until a flag agrees. Teams that ship agents with tools that change things — support bots issuing refunds, IT bots resetting passwords, finance bots sending invoices, coding bots pushing code — would use it. You wrap each tool with one decorator; before the tool runs, Toolsmith reads the Flagsmith flag for that user (segments give beta and free users different rules). If allowed and within limits, the tool runs. If a guardrail spots abuse, like two refunds in a minute, it flips the flag off through the Flagsmith Admin API and the next call is refused before the tool runs. Every decision is written to an audit log you can replay. No deploy, no restart — the rule lives in Flagsmith, not in code.