More screenshots

    Works with the AI Agents you already use

    Test Agent Systems Without a Real Model

    by Mohamed Mostafa Metawea

    1

    Test agent tool-calling, budgets, and retries using local HTTP mock servers without API costs or network latency.

    $9.99

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Test Agent Systems Without a Real Model

    Test Agent Systems Without a Real Model

    Example session with this skill installed

    How do I write automated tests for my agent app when I do not want to call a real model or pay for tokens?

    • Read your context and instructions
    • Compiled the test agent systems

    Summary

    Illustrative outline of one test. This is a sample, not captured output from a live model.

    1. Start the fake model server with a script: first reply calls a tool, second reply gives the final answer.
    2. Create a fresh temporary database and seed the roster.
    3. Run the agent against the fake server's URL.
    4. Assert the tool ran, the final status is ok, and the recorded request has the headers and body you expect.
    5. Add a second test where the script returns 429 twice, then success, to check retries.

    Next steps

    1. Add a test where the script runs out, to see the loud failure.
    2. Run one real-model health check before a demo.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Test a tool-calling agent system with no API key and nothing spent. It uses stand-in local HTTP servers that return scripted model responses, a fresh temporary database for every test, and a checklist of behaviours worth testing. It comes from a small Python reference app (AI Office v1.4) and its test suite, and was checked against that code.

    What it does

    • A fake model server on a local port that returns scripted (status, JSON) pairs in order, fails loudly with 400 when the script runs out, and records every request for assertions.
    • A helper to build model replies with text, tool calls and token counts.
    • A fresh world per test: temporary database, data folder and skills folder.
    • A list of what the reference tests cover: budgets, permissions, worker failure, approvals, injection, retries, rate limiting, free-model fallback, restart cleanup, token-limit flags, HTTP auth, SSE replay, and a browser UI test.

    How it works

    The skill explains each piece and what to assert.

    Frameworks & tools

    Python standard library (http.server, unittest). The browser UI test in the reference app uses Playwright as a dev-only dependency.

    Use cases

    • Testing agent loops and error handling without paying for model calls.
    • Checking exactly what your app sends to a provider.

    Known limitations

    Scripted replies prove your plumbing, not real model behavior. Keep a separate health check against a real model. A fake server only matches the provider behavior you wrote into it.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Frequently Asked Questions

    This skill allows you to verify your agentic logic, including tool calling, permission boundaries, and retry strategies, without incurring API costs or waiting for network responses from real LLM providers.

    The skill provides a framework for building a local HTTP mock server that stands in for providers like Anthropic or OpenRouter, along with a helper function to script specific model replies and tool calls.

    You should have a Python environment ready, as the skill includes a reference application and tests written in Python that demonstrate how to implement the mocking architecture.

    These scripted replies only prove that your code plumbing and logic work as intended; they cannot predict how a real model will respond to specific prompts or account for unannounced changes in a provider's API.

    The skill focuses on verifying critical system behaviors such as token and step budget enforcement, rate limit backoff, task state transitions after crashes, and ensuring that injected HTML is properly escaped.

    Ask your agent to use this skill to help you design a local mock server and a test suite that asserts against recorded request logs to verify your tool calling and budget logic.

    New in Testing & Debugging

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Testing & Debugging.