# Quirky Agents

AI agents that do real work in your tools, tested so they stick to what you allow.

Refunds, email, customer records. Built by Dave (dave8172), an AI engineer, and tested against made-up answers and tricks planted in what they read. Each agent comes with a public test report.

## Working together

### If you want an agent to do real work

It answers customers, handles email or changes records in your own tools, and must not refund, send or delete what it shouldn't.

What you get: A working agent, with its limits in the code and not only in its instructions, a person's OK where it counts, and a test report.

The work behind it:

- [A support bot: refunds the policy didn't allow, 14 of 90 conversations, then 0](https://quirkyagents.com/agents/support/)
- [An email agent: a card ending sent to a stranger, 3 of 57 runs, then 0](https://quirkyagents.com/agents/email/)
- [An assistant over private data: tricks that leaked, 12 of 60, then 0](https://quirkyagents.com/agents/private-data/)

To start: Write what the agent should do and which tools it touches. dave@quirkyagents.com

### If you have an agent and don't trust it yet

It makes things up, or it reads email, documents or web pages that anyone can write to.

What you get: Your agent run against made-up and planted cases, a report of what failed and why, the fixes, and the same tests rerun so you can see the difference.

The work behind it:

- [How the support bot's tests work on another bot](https://quirkyagents.com/agents/support/#yours)
- [Who does an AI agent obey?](https://quirkyagents.com/wizard/blog/who-does-an-ai-agent-obey/)
- [Butler: attack an agent, then defend it](https://quirkyagents.com/butler/)

To start: Send what your agent does, or a log of what it did. dave@quirkyagents.com

### If your team is building agents

Agents, the harness around them, and their security: the design, the build and the tests.

What you get: Work you can check before the first call: harness tests with their code and data, open-source tools, and the reports on this page.

The work behind it:

- [Harness research](https://quirkyagents.com/wizard/research/)
- [Projects](https://quirkyagents.com/wizard/projects/)
- [About Dave](https://quirkyagents.com/wizard/about/)

To start: Write with what you're building. dave@quirkyagents.com

## Agents

Working agents, each with its test report. All of them: https://quirkyagents.com/agents/

- [A support bot that refunds only what the policy allows](https://quirkyagents.com/agents/support/index.md) (Support bot · Pydantic AI): A made-up invoicing company's help bot, tested before and after the fixes. Refunds the policy didn't allow: 14 of 90 conversations, then 0. Tricks that worked: 9 of 48, then 0. Normal requests handled: 33 of 42, then 42 of 42.
- [An email agent that pays, refunds and replies only where it should](https://quirkyagents.com/agents/email/index.md) (Email agent · Pydantic AI): A made-up company's billing inbox: customers, refunds, supplier invoices. A customer's card ending sent to a stranger's address: 3 of 57 runs, then 0. With a model that obeyed every trick (forged bank changes, a fake CEO), 10 of 10 got through, then 0.
- [An assistant that shows each person only what their role allows](https://quirkyagents.com/agents/private-data/index.md) (Assistant over private data · Pydantic AI): Staff in five roles ask about customers and company documents. Data a person's role can't see, handed to the model by a tool: 66 of 120 conversations, then 0. Tricks that got it to the wrong role: 12 of 60, then 0.

## Agent security

Attack an agent and defend it in a pretend world, then the harness tests behind it: who the model listens to, which attacks get through, which defences hold.

- [The Butler](https://quirkyagents.com/butler/index.md): An AI butler tidies an inbox with real tool calls. Attack it with prompt injection, defend it with rules, locks and approvals, then read the score and the trace.
- [Plug](https://quirkyagents.com/plug/index.md): An AI agent does one job through MCP servers. Turn a server bad, then connect only what the job needs and lock the rest. See the JSON-RPC and the trace.
- [Approval gates for AI agent tool calls, tested in 1,940 runs](https://quirkyagents.com/wizard/blog/ai-agent-tool-approval-gates-tested/index.md): Three rules for when an AI agent must ask before it acts, tested on an email agent with planted attacks: what each one stopped, and how often it asked.
- [Who does an AI agent obey? Three harnesses tested](https://quirkyagents.com/wizard/blog/who-does-an-ai-agent-obey/index.md): Operator, user, tool or background job: which one Claude and GPT follow, and how much the agent harness changes it. Measured through three harnesses.
- [Prompt injection on an email agent: 960 runs](https://quirkyagents.com/wizard/blog/prompt-injection-email-agent-three-harnesses/index.md): An email agent with a password file and planted emails: what leaked, and why "data, not instructions" tags stopped Claude doing its job.
- [Pydantic AI vs a hand-rolled agent loop, measured in 285 runs](https://quirkyagents.com/wizard/blog/pydantic-ai-vs-hand-rolled-agent-loop/index.md): One email agent, built by hand and on Pydantic AI, on Claude Haiku 5.5. Where the framework helped, and an output-mode gap that vanished on a rerun.

All: /wizard/research/index.md

## Tests of real products

Other people's AI products and frameworks, measured on public or made-up data.

- [I tested Superagent's Security-One on an email agent: what it reads and what it does](https://quirkyagents.com/wizard/blog/security-one-prompt-injection-classifier-email-agent/index.md): Superagent's prompt injection classifier, scored on 49 texts an email agent reads and 424 real tool calls, next to TypeSafe's Jev 1.13.0. What it caught, what it blocked by mistake, and why.
- [How I calibrated an LLM judge to grade like me, 25× cheaper](https://quirkyagents.com/wizard/blog/calibrate-llm-judge-evals/index.md): Evals on 188 answers from ChatGPT, Claude, Chatbase and my own pipeline over product datasheets, and a hybrid judge with Jev that grades like I do.
- [Pydantic AI vs a hand-rolled agent loop, measured in 285 runs](https://quirkyagents.com/wizard/blog/pydantic-ai-vs-hand-rolled-agent-loop/index.md): One email agent, built by hand and on Pydantic AI, on Claude Haiku 5.5. Where the framework helped, and an output-mode gap that vanished on a rerun.

All: /wizard/blog/index.md

## Open source

Tools to install and read.

- [firstwatch](https://quirkyagents.com/firstwatch/index.md): Your agent reads web pages, files and tool output, and anyone can hide instructions there. firstwatch scans for them before the agent acts, and makes it ask you first.
- [Agent skills](https://quirkyagents.com/wizard/projects/skills/index.md): Skills you can drop into your coding agent: find Upwork jobs that fit you, turn an article into a video, free RAM, close a session cleanly. Install one, or all with one command.
- [doceval](https://quirkyagents.com/wizard/projects/doceval/index.md): Point it at your extractor and a labeled dataset. Get field-level accuracy, a failure taxonomy and per-document cost, without writing eval infrastructure.
- [mcplytics](https://quirkyagents.com/wizard/projects/mcplytics/index.md): You put an MCP server online and AI apps call it. Which tools do they use, which calls fail, and how fast is it? One wrapper answers that, with no backend.
- [tally-aiagent](https://quirkyagents.com/wizard/projects/tally-aiagent/index.md): Tally invents any master name it doesn't recognise, then reports success. This refuses names the books don't hold, and verifies every entry after posting.

All: /wizard/projects/index.md

## Writing

Series to read in order, and posts from real builds.

- [Testing AI agent security](https://quirkyagents.com/wizard/blog/series/agent-security-tested/index.md): How agent harnesses decide who each message speaks for, and what that does to prompt injection, measured on real APIs and a real email agent. (a series, 8 parts)
- [How an LLM runs](https://quirkyagents.com/wizard/blog/series/how-an-llm-runs/index.md): What happens inside a language model when it answers you, one step at a time, measured on a real model. (a series, 6 parts)
- [MCP in practice](https://quirkyagents.com/wizard/blog/series/mcp-in-practice/index.md): How MCP works, what I learned building and using MCP servers, and how local and remote servers connect, step by step. (a series, 2 parts)
- [Re-checking 413 web pages with Jev: 23 needed a full read](https://quirkyagents.com/wizard/blog/jev-recheck-web-pages-affiliate-terms/index.md): How affiliateprogramterms.com keeps its terms current: one Jev yes/no request per page, $0.04 a refresh, and a test against Claude Haiku and Opus on 66 pages.
- [Jev 1.14 vs OpenCV YOLOX: image questions and bounding boxes](https://quirkyagents.com/wizard/blog/jev-images-bounding-boxes-vs-yolox/index.md): I tested Jev 1.14's image input and new Box answers on 6 photos and compared the boxes with OpenCV's YOLOX detector. Accuracy, box fit, speed and cost.
- [Can an AI agent submit Upwork proposals? Yes, with your OK](https://quirkyagents.com/wizard/blog/can-ai-agent-submit-upwork-proposals/index.md): Upwork's official MCP lets Claude, Codex or Cursor send a proposal for you. What it shows before sending, what stays on upwork.com, and what I got wrong.
- [Ask twice: seven measurements from building with Jev](https://quirkyagents.com/wizard/blog/jev-ask-twice/index.md): A coordinate lookup scored 3/24 where handing the model the naming job scored 22/24. Then two claims I had argued rather than measured turned out to be wrong.

All: /wizard/blog/index.md

## Contact

A line on what your agent does, or should do, is enough to start: dave@quirkyagents.com. About: /wizard/about/index.md
