/confident-eval-setup:confident-agent-handlerfrom Confident AI Eval Setup
Connect an AI app that has no HTTP endpoint to Confident AI with the Confident Agent's handler mode: write a handler function that calls the app's pipeline in-process, run the agent beside it, and create and verify an Agent Handler AI connection. TRIGGER when the user wants Confident AI to evaluate or red-team an internal script, notebook, library, or pipeline with no API in front of it, mentions handler mode, the Confident Agent handler, `confident-agent --handler`, or an Agent Handler AI connection, or has a handler connection whose ping fails. DO NOT TRIGGER when the app already has an HTTP or WebSocket endpoint, public or behind a firewall (use the `confident-eval-setup` skill), to upload a dataset (use the `confident-eval-setup` skill), to instrument an app or send traces (use the `confident-tracing` or `confident-otel` skill), or to manage organizations, projects, members, or API keys (use the `confident-client` skill).
Trending skills
7-day visitors to each skill page
Ships in Confident AI Eval Setup. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use this skill to make an AI app with no HTTP endpoint evaluable from the
Confident AI platform. Instead of pointing an AI connection at a URL, the user
runs the Confident Agent in their own environment with a small handler
function. The agent dials out to Confident AI, receives each input over that
outbound tunnel, calls the handler, and relays the output back. Nothing is
inbound, and the app's code never leaves the user's network.
This skill writes the handler, gives the user the command to run the agent, creates the Agent Handler AI connection, and proves it works with a ping.
If the app already has an HTTP endpoint, handler mode is not needed. Use the
confident-eval-setup skill instead; for an endpoint behind a firewall it
connects through the Confident Agent's default forwarding mode.
CONFIDENT_API_KEY. The agent
connects to the project the key belongs to, so the connection must be
created in that same project.list_projects, create_ai_connection, ...) are missing, give the user
the setup for their client from references/mcp-setup.md, or finish with
the dashboard steps in Dashboard Fallback.list_projects. If there is more than one, ask
which to use, and confirm the agent's API key belongs to it.list_ai_connections. If an Agent Handler
connection already exists for this app, fix and ping it (step 7) instead
of creating a duplicate.references/handler-sdks.md. Import the pipeline and
call it directly; the handler is only glue. Map the request fields the
pipeline needs and return a Response with output plus every field the
pipeline can produce. Read references/request-response.md. Keep
expensive setup at module level, because the handler is imported once and
called once per input.confident-agent into the
pipeline's own environment, then give the user the run command with
<your-api-key> as a placeholder. Never read, print, or write the key.
Ask the user to start it and confirm it connected.create_ai_connection with a name and
type: "AGENT_HANDLER". Send no endpoint, payload, or key paths:
Response fields are mapped automatically.ping_ai_connection, with multiturn: true
for a multi-turn app. It sends one sample input through the tunnel, runs
the handler, and returns active. A failed ping is still a successful
call: read error and response, fix the handler or how the agent runs,
restart the agent if the handler changed, and ping again. Repeat until
active is true, or until the problem is one only the user can fix,
then tell them exactly what to change. See the troubleshooting table in
references/request-response.md.Without the MCP server, steps 6 and 7 happen in the dashboard. Tell the user:
active: true. Do not hand off
before that.Tell the user:
confident-eval-setup skill does this), or run a red teaming assessment
against the connection.| Topic | File |
|---|---|
| Connecting the Confident AI MCP server to a coding agent | references/mcp-setup.md |
| Installing the agent and writing the handler in Python, TypeScript, Go, Java, Rust, and other languages | references/handler-sdks.md |
| Request and response fields, multi-turn state, errors, and ping troubleshooting | references/request-response.md |
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub confident-ai/confident-skills --plugin confident-eval-setup2 skills in this plugin