- Home
- Skills
- Agents & Orchestration
- Apprentice: Self-Improving Verifiable AI Employee
More screenshots
Works with the AI Agents you already use
Apprentice: Self-Improving Verifiable AI Employee
by Deepika Sahu
Most agents re-think every task from scratch and ask you to trust them when they say they finished.
$17
Apprentice: Self-Improving Verifiable AI Employee
Example session with this skill installed
Set up Apprentice and walk me through the demo. Then run "Schedule Orbit Supplies's approved invoice" and tell me what the verifier found and what I need to approve.
- Read your context and instructions
- Compiled the apprentice
Summary
Apprentice is installed and running at http://localhost:8000. After the first three demo steps it has learned one skill, pay_vendor_invoice, and the Orbit Supplies run completed correctly but is
waiting for your approval before it can be merged.
Run ledger
| # | Task | Mode | Model calls | Verified |
|---|---|---|---|---|
| 1 | Schedule Acme's approved invoice | agent | 6 | yes |
| 2 | Schedule Zenith Corp's approved invoice | replay | 0 | yes |
| 3 | Schedule Kestrel Labs's approved invoice (UI redesigned) | repair | 1 | yes |
| 4 | Schedule Orbit Supplies's approved invoice | replay | 0 | needs approval |
Independent verification (Orbit Supplies)
| Check | Result |
|---|---|
| No duplicate payments | pass |
| Only approved invoices paid | pass |
| Vendor bank details unchanged | pass |
| Within budget | pass (INR 170,500 of 500,000) |
| Goal: approved invoice paid | pass |
| No payment above INR 50,000 without explicit approval | needs human approval |
Proposed state diff
- update
invoices3: statusapproved->scheduled - insert
payments4: invoice 3, amount 72,000, statusscheduled
Next steps
- Review the diff in the dashboard. The payment is INR 72,000, above the INR 50,000 limit.
- Tick "I explicitly approve" and press Merge, or press Reject. Live data does not change until you do.
- Try "Urgent inbox email" to watch a hidden bank-change instruction get blocked.
Connects securely to your tools. The creator never sees your data.
About this skill
Stop trusting "done". Start verifying it.
Most agents re-think every task from scratch and ask you to trust them when they say they finished. Apprentice is a complete, working AI employee that proves its work, learns from it, and keeps a human in control of consequences.
What happens when you run it
| Moment | What you see |
|---|---|
| First task | The agent has never seen the workflow. It reads policy, drives a real Chromium browser and completes it (about 6 model calls). |
| Independent verification | A separate verifier reads the database, not the agent's words: no duplicates, only approved items, protected fields untouched, within budget, goal actually met. |
| Skill learned | The verified run is compiled into a readable JSON skill with parameters and an assertion per step. |
| Same task, new vendor | The skill replays with 0 model calls. |
| The software changes | Replay detects the broken step and repairs only that step (1 call). The old target stays as a fallback. |
| Payment over the limit | The work is done, but the merge button stays locked until a human approves. |
| Malicious email | Hidden instructions are treated as data. A code-level gate blocks the change even if the model were fooled. |
Everything happens on a sandbox branch. You review a red and green state diff, then merge or reject. After a merge, the verifier re-checks live data and reverts automatically on failure.
What you get
- Full source: Python, FastAPI, Playwright, SQLite, single-file dashboard (about 1,700 lines of Python)
- 19 passing tests, runnable offline without an API key
- Governed AI employees: passports with permissions and approval limits, delegation, audit trail, control plane
- Company memory: policy notes, taught facts, recorded outcomes
- A SKILL.md so your own AI agent can install it, run the demo, explain it and extend it
- Guides: architecture map and "add a new workflow, check or employee"
Who it is for
Developers building AI agents who want a concrete, readable reference for verification, sandboxed execution, skill learning and agent governance, and teams who want to adapt the pattern to their own system.
What it is not
A hosted product. It runs on your machine against a simulated company. Parameter inference is literal string matching, goal checks are written by hand per task kind, repair handles renamed or moved elements only, and branching is SQLite and row-level. The limits are listed honestly in the README.
Requirements
Python 3.10+, Chromium (installed by Playwright), and one model API key: a free Gemini key or an Anthropic key.
Also by this creator: Verified Task Runner, Trace-to-Skill Compiler, and Agent Guardrails and Passports, the same ideas as lightweight skills.
String-match parameter inference. Hand-written goal checks required. Row-level SQLite branching. Single-threaded execution only.
How to use
- 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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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.
Trust & safety
Security scan
Security scan passed 3 days ago
- Accounts
Google Account
Google AI
Gemini API key (free from aistudio.google.com)orAnthropic API key
- Software
Python 3.10+ChromiumPlaywright
- Optional
- anthropic Python package (only if you use an Anthropic key)
Runs locally against a simulated company. Set your API key in your own terminal; the skill never writes it to a file. About 300 MB disk for Chromium. No key needed to run the offline test suite.
Permissions
Allowed Hosts
File Scopes
Terminal: installs dependencies and starts two local servers on 127.0.0.1 (ports 8000 and 8100). Files: writes a local SQLite database, run logs and learned skill JSON under app/data and app/skills. Browser: drives a local headless Chromium against the simulated company app only. Network and environment variables: sends model requests to the provider the buyer chooses, using one API key read from the buyer's own environment. Reviewer note: company/seed.py and agent/mock_llm.py contain a deliberate fake phishing email used to prove the code-level gate blocks bank-detail changes. It is test data, not an instruction to the agent.
What's inside
Frequently Asked Questions
New in Agents & Orchestration
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.