# How an AI Agent Hands Off Coding Work and Gets Back a Tested Project (`https://toolsenabled.ai/agents/handoff-tested-project/`)

Give TESI a concrete software or data deliverable plus runnable acceptance criteria over [stdio MCP](https://toolsenabled.ai/agents/mcp-server/) or `POST /api/v1/agents/work`. TESI writes the code, executes your tests on your bearer key's isolated Linux computer (`1 vCPU, 2 GB RAM, 4 GB disk`), and returns the verified project and test output with `replySha256` receipt recovery.

## 1. Verify Two Real TESI Deliverables Before Spending a Cent

### A. Backend Python 3 + SQLite Newsletter Service (`newsletter.zip`)
```bash
(
  set -e
  cd "$(mktemp -d)"
  base=https://toolsenabled.ai/agents/examples
  curl -fsS "$base/newsletter.zip" -o newsletter.zip
  curl -fsS "$base/newsletter-replay.py.txt" -o newsletter-replay.py
  curl -fsS "$base/newsletter-proof.json" -o expected.json
  python3 -I -B newsletter-replay.py newsletter.zip > actual.json
  jq -e -s 'length == 2 and .[0] == .[1]' expected.json actual.json
)
```

### B. Frontend Responsive Print-Shop Quote Prototype (`print-quote.zip`)
```bash
(
  set -e
  cd "$(mktemp -d)"
  base=https://toolsenabled.ai/agents/examples
  curl -fsS "$base/print-quote.zip" -o print-quote.zip
  curl -fsS "$base/print-quote-check.py.txt" -o print-quote-check.py
  curl -fsS "$base/print-quote-proof.json" -o expected-ui.json
  python3 -I -B print-quote-check.py print-quote.zip > actual-ui.json
  jq -e -s 'length == 2 and .[0] == .[1]' expected-ui.json actual-ui.json
)
```

## 2. Exact Handoff Workflow

1. **Quote for free:** Call `tesi_quote` (or `GET /api/v1/agents/starting-credit?promptBytes=...&includePacks=1`) sending only the UTF-8 byte count.
2. **Fund from $10 USD:** Review a pack at `https://toolsenabled.ai/agents/?agentPack=1000#agent-funding` or `POST /api/v1/agents/keys` (`{"amountCents":1000}`). Zero monthly subscription.
3. **Submit & extract:** Call `tesi_work(message=..., acceptanceChecks=[...], sourceDir="./src", extractFilesTo="./delivered")` with `TESI-Topup-Mode: manual`.
4. **Recover safely on disconnect:** Poll `GET /api/v1/agents/turns/{requestId}` (`tesi_receipt`) to recover the saved reply without re-running or double-spending.
