# Risk-Classified Agent Tools

> Build or audit the safety layer for AI agents that act in the real world: four risk classes, a fail-closed policy pipeline, single-use confirmations, anti-prompt-injection intent rules, audit logging and an emergency stop.

Risk-Classified Agent Tools is a paid AI agent skill on Agensi by Hassan Karungwa, in Security. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $3 (one-time purchase)
- Creator: [Hassan Karungwa](https://www.agensi.io/creators/hassan-karungwa)
- Category: [Security](https://www.agensi.io/skills/security)
- Version: 1.0
- Last updated: 2026-11-21
- Security: scan passed (2026-11-21); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/risk-classified-agent-tools
- Tags: agents-orchestration, security

## About this skill

### Give your AI agent real-world abilities without trusting the model to behave

Agents that can run commands, send email, delete files, or drive a desktop need more than a "be careful" line in the system prompt. This skill teaches your coding agent a proven safety architecture and helps it  design, build, or audit  that layer in your project.

The model's output is treated as an untrusted *proposal*. Plain code, which never consults the model, decides whether an action runs, needs a human yes, or is refused. A malicious web page, email, file name, or line of screen text can't talk its way past a check that lives in code.

It is distilled from the tool-safety design of Automata, a voice-first Windows assistant with a registry of 46 typed tools.

#### What your agent will know how to do

- **Classify every tool** into four risk classes (read-only, local write, outward or destructive, forbidden) by the worst thing it can do with the inputs it accepts, with default rate limits per class.
- **Declare safety metadata per tool**: permissions, data classification, reversibility, timeout, audit level, postcondition.
- **Build a fail-closed policy pipeline** of twelve ordered gates, each returning a machine-readable denial reason.
- **Stop prompt injection at the source** with intent provenance: only the owner's own typed or spoken command can authorize an action; anything the agent merely reads (web, email, files, filenames, screen text, notifications, audio) never can.
- **Gate on the environment and target**: deny on a locked session, secure desktop, or failed security probe, and refuse password managers, OS security prompts, and banking or payment windows.
- **Implement confirmations properly**: bound to the exact tool, version and canonical input; single use; short-lived; read-back for voice; explicit yes for first-time recipients, attachments, links, money, or long content.
- **Execute safely**: timeouts that abort child work, output validation, postconditions so the agent never claims success it didn't observe, and audit records for every outcome including denials.
- **Add an emergency stop** that aborts in-flight actions and clears pending confirmations.
- **Keep learning from raising privileges**: recipes and self-improvement can never change risk classes, permissions, or confirmation rules.
- **Review an existing agent** and report findings by severity with a concrete fix for each.

#### Also included in the skill

A step-by-step workflow for applying the pattern, a test checklist (injection corpus, replay, mismatch, locked session, rate limits, emergency stop, secret canary), and a list of common mistakes.

#### Who it's for

Developers building desktop assistants, browser or computer-use agents, MCP servers with write access, voice assistants, or any agent that can touch files, shell, messaging, or money.

## Requires

Nothing beyond your AI agent.

## Known limitations

This is a guidance skill, not a code library or a drop-in package: your agent writes the implementation in your language and framework. It does not replace a security review, a threat model for your own deployment, or platform-specific hardening. The confirmation experience (voice, UI, timing) is left to the implementer.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Risk-Classified Agent Tools skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### Is this a library I install?

No. It is instructions for your AI agent. The agent uses them to design, write, or audit the safety layer in your own codebase, in whatever language you use.

### Does it only work for desktop or Windows agents?

No. It was distilled from a Windows desktop assistant, but the pattern (risk classes, fail-closed policy pipeline, intent provenance, confirmations, emergency stop) applies to browser agents, MCP servers, voice assistants, and any tool-calling agent.

### Will it stop prompt injection completely?

It removes the most important path: content the agent reads can never grant intent, and that rule is enforced in code, not in the prompt. No design is a guarantee, so the skill also includes an injection test corpus and a review checklist.

### Can it review an agent I've already built?

Yes. Ask for an audit and it walks the policy pipeline against your code, then reports findings grouped by severity with a concrete fix for each.

### Which languages does it support?

The code sketches use TypeScript, but the agent can apply the same design in Python, Go, Rust, C#, or any other language.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
