/supervaizer-integration:supervaizer-integrationfrom supervaizer-integration
Connects a Python agent to Supervaize Studio using the Supervaizer SDK. Guides developers through agent registration, parameters, secrets, human-in-the-loop, guardrails, cost reporting, and deployment.
Ships in supervaizer-integration. 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; scripts run unread.
Connect an existing Python agent to Supervaize Studio with the Supervaizer SDK.
Your job has two halves. First, make the developer decide what a mission, a job, a case and a step are for this agent: you ask, they decide. Second, build what they decided from the references: you read, you do not invent.
Guides are at https://docs.runwaize.com/docs/supervaizer-controller/<page>. Hello World is at https://github.com/runwaize/supervaize_hello_world.
| Topic | Guide page | Pattern to copy in Hello World |
|---|---|---|
| Missions, jobs, cases, steps | core-concepts | agent_v2.py |
| Registration, start form, field definitions, job state | controller-setup | agent_v2.py, supervaizer_control.py |
| Parameters and secrets | parameters | supervaizer_control.py |
| Shared resources | resources | agent_data_resource.py, agent_v2.py |
| Cost reporting | cost-reporting | agent_v2.py |
| Human in the loop | human-in-the-loop | agent_v2.py, tests/test_hitl.py |
| Guardrail controls (rule checkpoints) | rule-checkpoints | agent_rules.py, tests/test_rule_checkpoints.py |
| Configure screen | job-configurator | agent_configurator.py, tests/test_configurator.py |
| Analytics dashboards | job-analytics | agent_dashboard.py |
| First run and Studio credentials | quickstart | README.md |
| Cloud deployment | deploy | - |
| Public address for a local controller | tunneling-setup | - |
| Network rules between Studio and the controller | network-security | - |
| Errors at start or at registration | troubleshooting | - |
The Studio account guide is at https://docs.runwaize.com/docs/supervaize-fleet/developer-account.
Other references:
supervaizer scaffold.This skill lives in the SDK repository, in skills/supervaizer-integration/. Inside a checkout of the SDK, the docs are in ../../docs/ and the examples in ../../src/supervaizer/examples/. If the project has a local checkout of the SDK or of Hello World, read that copy.
The helper script is in this skill's folder, not in the developer's project. Claude Code replaces ${CLAUDE_SKILL_DIR} in the commands below with that folder. In another coding agent, replace it yourself with the absolute path of the folder that holds this SKILL.md.
Interview the developer until every decision below is made. Treat the design as a tree: each decision opens the decisions that depend on it.
How to ask
run_batch() loops over leads, so I recommend one case per lead").How to push
During the build
The interview does not end when the code starts. When the code shows a point that nobody decided, stop and ask a new round. Typical points: what a refusal does, what a retry of the same start does, what happens to the other cases when one fails, what survives a restart, which workspace owns a row.
job.start answers, or does it continue for minutes, hours or days?For each activity of a case that an operator must see:
Push back on steps that are internal function calls. A step is worth showing when it can fail, wait, cost money or produce an output.
Ask the questions of every topic that the first three rounds opened. Ask them together.
| Topic | Bring it up when | Ask |
|---|---|---|
| Start form fields | Always | What must the operator give to start a job? For each value: type, required or not, default, allowed choices, and which field appears only for some values of another? |
| Parameters and secrets | The code reads API keys, model names or other settings | Which settings are the same for all jobs of a workspace? Which are secrets? Which belong to the deployment and not to a workspace? |
| Cost reporting | Always | What costs money in each step (model calls, paid tools)? Where does the code know the real amount? Is an estimate needed before the start? |
| Human in the loop | A step has an effect that cannot be undone, can be unsure, or needs information that only a person has | Which step waits? What must the person see to decide? What do they answer? What does a refusal do? |
| Guardrail controls | A step has an effect outside the agent. Recommend it for each such step | Which facts of the step must a mission rule be able to judge (recipient, amount, operation)? Before the effect, after it, or both? |
| Shared resources | Several jobs use the same data, or operators must see or correct it | Which data? Who shares it: the workspace, a mission, a job? What may Studio do: list, create, update, delete, import? Which form must offer it as a choice? |
| Configure screen | Round 1 said that the job needs setup, or settings change while the job runs | Which sections? What is editable before launch, while it runs, after it ends? What must be true before launch? What is the main button? |
| Analytics | The agent has numbers that an operator follows. Offer a job dashboard by default | Which three numbers tell the operator that the job goes well? Which chart? Per job, per mission, or both? Which filter? |
| Artifacts | A step produces something to open or export | Which outputs? Who must open each one? Read the "Artifact" section of the v2 guide for the types, then ask which type each output has. |
| Scheduled start | Round 1 said that a schedule starts the job | Which values does a scheduled run use for the start form? What happens when the previous run is not finished? |
| Billing catalog | Other workspaces will pay to use the agent | What is the unit of sale? Which price does the owner set? Read the "Billing catalog" section of the v2 guide before you ask. |
| Hosting | Always | Where does the controller run: the developer's computer with a tunnel, or a cloud service? Who has the cloud account? Which address does Studio call? |
| Studio account | Always | Does the developer have a Studio account with Developer access? Which workspace receives the agent? Who is the admin that accepts the agent's workspace authorization? |
Introduce human in the loop and guardrail controls yourself when the answers of round 3 call for them. Do not wait for the developer to ask.
Summarize the whole design in one message: mission, job, cases, steps, and each topic. Ask the developer to confirm it. Build only after they confirm.
Install the SDK in the project's environment as the quickstart guide says. Do this first: the helper script and the supervaizer command need it. Then check the installed version against the SDK changelog.
supervaizer --version
Before the first question, read:
supervaizer_control.py (then extend it; do not overwrite it)python "${CLAUDE_SKILL_DIR}/scripts/supervaize_cli_helper.py" analyze-agent --project-root /path/to/agent --pretty
Follow "The Interview" above.
Write the confirmed design to a spec file, so the developer can review it and so the next session can read it:
python "${CLAUDE_SKILL_DIR}/scripts/supervaize_cli_helper.py" spec-template --output-file integration_spec.json --pretty
Fill every section of the spec from the interview. Put a decision that has no slot under notes. The command refuses to replace an existing spec file. Use --force only when the developer wants a blank one.
python "${CLAUDE_SKILL_DIR}/scripts/supervaize_cli_helper.py" scaffold-integration \
--spec-file integration_spec.json --output-dir /path/to/agent --pretty
The helper runs the SDK's supervaizer scaffold and prints a checklist built from the spec. Each item names its guide and its Hello World pattern.
Build in this order. For each topic: read its guide, copy the Hello World pattern, adapt it, write a test, run it.
controller-setup)parameters)cost-reporting)human-in-the-loop)rule-checkpoints)resources)job-configurator)job-analytics)Skip a topic only when the developer decided against it in the interview. Say which topics you skipped and why.
Run the controller in local mode and call it, as controller-setup shows. Local mode needs no Studio account.
supervaizer start --local
python "${CLAUDE_SKILL_DIR}/scripts/supervaize_cli_helper.py" load-surface --help
python "${CLAUDE_SKILL_DIR}/scripts/supervaize_cli_helper.py" invoke-action --help
Both commands fail when the controller answers with a JSON-RPC error. Give --job-id, --case-id or --step-id only for a surface or an action of that scope. For a mission-scoped action, give none.
Write tests that post the same requests to the server app. Copy the helpers from the Hello World tests/ folder.
Do this part with the developer. The account and the key are theirs.
The short way: supervaizer login
Use this way first. It works for a developer with no Studio account and for a developer who has one. The CLI guide of the SDK (docs/2025_08_CLI.md, section login) is the reference.
Run the command in the project folder:
supervaizer login
The command prints an approval page and a short code. Give both to the developer. The developer opens the page, signs in or signs up (Google works), checks that the page shows the same code, chooses the workspace and approves. You do not open the page, and you do not approve.
Wait. The command ends when the developer approves. It writes the Studio credentials and the workspace authorization settings to .env. It prints the names of the variables, never a value.
Check that git ignores .env. Add the file to .gitignore if it is not there.
Start the controller with that file, at the public address from the Hosting question:
supervaizer start --env-file .env --public-url https://<public address>
Read the start log. It shows the Studio page of each registered agent. Give these links to the developer. This is the first time that the developer needs Studio.
On that page, the developer (an admin of the workspace) sets the agent's workspace reference and accepts the workspace authorization. This is the only step in Studio. The Workspace agent grants doc says what Studio and the controller refuse until then.
Ask the developer to start one job from Studio. Read the controller log with them.
If the command says that this Studio does not support the login, use the manual way.
The manual way: what only the developer does
These steps need a person in a browser. Give the developer the list, then wait. The screens are in the Studio account guide.
quickstart guide names each variable..env or .envrc). Make sure that git ignores this file.What you never do, in both ways
The manual way: what you do
Check that the variables are present. This command prints names only, never values:
python "${CLAUDE_SKILL_DIR}/scripts/supervaize_cli_helper.py" env-status --pretty
Check that the control script reads these variables and gives them to the account object, as the scaffold does. The SDK server does not read them by itself.
Give the controller a public address. Studio must be able to call it. Use the answer of the Hosting question: a tunnel for a local controller (tunneling-setup), or a cloud service (deploy).
Start the controller with supervaizer start. Read the log: the registration event must succeed, and the agent must be updated from Studio.
Tell the developer to open the agent in the Agents list of their workspace. On the agent page, a workspace admin must accept the agent's workspace authorization. The Workspace agent grants doc says what Studio and the controller refuse until then.
Ask the developer to start one job from Studio. Read the controller log with them.
Tell the developer that a workspace admin must accept the workspace authorization again each time the registration gains a surface or an action.
When Studio refuses the registration
Read the troubleshooting guide first. The usual causes of a refusal with status 403 are:
Report the status code and the request id of the log. Never report a header or a key.
When the developer chose a cloud service, follow the deploy guide. Run supervaizer deploy plan before supervaizer deploy up, and show the plan to the developer. The deployed controller registers itself with Studio at its start, with the same variables.
After a deployment, do the checks of step 8 again: the registration in the log, the workspace authorization, one job from Studio.
Check each point against its guide:
When you finish, report:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub supervaize/supervaizer --plugin supervaizer-integrationOther plugins' skills for the same job