> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tenetlabs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Using these docs with an AI agent

> How Claude Code, Cursor and other agents read these docs — llms.txt, Markdown page variants, the docs MCP server — plus one master prompt that takes an agent from zero to a verified PII Engine deployment.

**These docs are written for agents as well as people.** Every task page has a `<Prompt>` you can copy into Claude Code, Cursor or any coding agent: it names the inputs the agent must ask you for, the exact commands, how to verify, and where it must stop and ask before doing something irreversible.

## When to use it

Use the per-page prompts for one task (deploy, upgrade, rotate a key). Use the master prompt below to go from nothing to a verified deployment in one session. Either way, the agent runs commands with **your** credentials in **your** account — review what it proposes before you approve it.

## How agents read this site

| What | Where | Notes |
| - | - | - |
| Page index | `/llms.txt` | Every page's title and `description`, with links to Markdown versions. |
| Full text | `/llms-full.txt` | All pages in one file. Large. |
| One page as Markdown | Append `.md` to any URL, e.g. `/pii-engine/quickstart.md`, or send `Accept: text/markdown` | Cleaner than HTML for a model. |
| Search + read tools (MCP) | `https://docs.tenetlabs.com/mcp` | Search the docs and read pages from inside your agent. |
| Page menu | Top of every page: copy the page as Markdown, view it as Markdown, open it in Claude, ChatGPT, Perplexity or Cursor, and MCP connection options | The fastest way to hand one page to a chat model. |

Connect the docs MCP server in Claude Code:

```bash theme={null}
claude mcp add --transport http tenet-docs https://docs.tenetlabs.com/mcp
```

In Cursor, VS Code and other clients, use the MCP options in the page menu, or add `https://docs.tenetlabs.com/mcp` as an HTTP MCP server.

## Master prompt: zero to a verified deployment

The whole journey — subscription check, prerequisites, deploy, verification — with stops before every irreversible step.

You are deploying Tenet PII Engine (Enterprise) into my AWS account and proving it works. The documentation is at [https://docs.tenetlabs.com/pii-engine/](https://docs.tenetlabs.com/pii-engine/) ; read pages through the tenet-docs MCP server if it is connected, otherwise fetch the Markdown version (append .md to the page URL). Follow the pages exactly; don't invent flags, parameters or values. Never print database passwords, AWS credentials or request text from real data.

Phase 0 — inputs. Ask me, in one message: AWS Region and account; deployment path (EKS + Helm, ECS + CloudFormation, or ECS + Terraform — recommend CloudFormation if I have no EKS cluster); whether this is production or a trial; VPC id and private subnets (one per AZ, ≥ 2); a deployment id (3–63 chars, lowercase letters, digits, hyphens — explain it can never change); the IAM roles I'll use (stack runner/key admin, the caller roles for detect, erasure and rehydrate, audit reader); whether rehydration needs an approval tag; whether I need rehydration at all.

Phase 1 — subscription and image (page: /pii-engine/get-started/marketplace). Confirm I have subscribed — there is no license to configure; the detect service checks the subscription at startup. Download cosign.pub, the release record and its bundle, and the template or Terraform module for my path, from [https://platform.tenetlabs.com/enterprise](https://platform.tenetlabs.com/enterprise) as that page shows. Verify the record with `cosign verify-blob` (it must print Verified OK) and compare its `.image.digest` with what Marketplace serves for the record's `.image.tag`; stop if either fails. Never copy the image: every Region pulls it from the Marketplace registry in us-east-1. Outside us-east-1, confirm the deploying role can create cross-Region VPC endpoints (`vpce:AllowMultiRegion`).

Phase 2 — prerequisites (page: /pii-engine/deploy/prerequisites). Run the read-only audit from that page's prompt and show me the checklist. Stop on any failure I haven't accepted, especially a NAT or internet route on the private subnets, an AZ VPC Lattice doesn't support, or a missing metering-marketplace endpoint.

Phase 3 — deploy (page: /pii-engine/deploy/eks-helm, /pii-engine/deploy/ecs-cloudformation or /pii-engine/deploy/terraform). Build the full command or values file, run the page's validation (helm lint/template, validate-template, terraform plan), show me the result, and STOP for explicit approval before helm install, cloudformation deploy or terraform apply. In production ask twice. For production use Object Lock COMPLIANCE and deletion protection on. Name only IAM role ARNs in the invoker lists.

Phase 4 — verify (page: /pii-engine/quickstart, steps "Authorize the test host and check readiness" onward). Attach the caller identity policy (vpc-lattice-svcs:Invoke) to the caller role and give the caller a network path to VPC Lattice — ask before changing IAM or security groups. Readiness: ECS services at desired count and every Lattice target HEALTHY (ECS), or `tenet-pii-enterprise healthcheck --ready` exits 0 in each pod (EKS); the health probes are not reachable through Lattice. From inside the VPC, as the caller role, one signed /deidentify → /reidentify round trip with synthetic text (the tenet-pii-lattice CLI) restores the original exactly; the newest object under the audit bucket's rehydrate/ prefix has schema tenet.reidentify-audit.v3, outcome "restored", auth\_mode "lattice-iam", a caller ARN for the caller role, and no session\_id or text. A 403 means the role, its identity policy or the network path is missing.

Phase 5 — operate. Offer to create the alarms from /pii-engine/operate/monitoring and to size replicas with /pii-engine/operate/sizing.

If any command fails, look the error up in /pii-engine/troubleshooting before retrying, and tell me which section matched. Finish with a summary: what was created (with ARNs/names), the verification results, and open items.

If you are an agent reading this page as Markdown: the master prompt above is your procedure. Ask the user for every Phase 0 input in one message before running anything. Treat every `STOP` in a prompt as a hard requirement to wait for the user's explicit approval, and never substitute values the user didn't give you for account ids, ARNs, the deployment id or the image digest. Each task page's `<Prompt>` block carries the same structure for one task: inputs, steps, verification, stop conditions.

## Prompts on every task page

| Task | Page |
| - | - |
| First deployment, end to end | [Quickstart](https://docs.tenetlabs.com/pii-engine/quickstart.md) |
| Download and verify the release | [Subscribe and get the image](https://docs.tenetlabs.com/pii-engine/get-started/marketplace.md) |
| Audit the account before deploying | [Prerequisites](https://docs.tenetlabs.com/pii-engine/deploy/prerequisites.md) |
| Install on EKS | [Helm](https://docs.tenetlabs.com/pii-engine/deploy/eks-helm.md) |
| Deploy on ECS | [CloudFormation](https://docs.tenetlabs.com/pii-engine/deploy/ecs-cloudformation.md), [Terraform](https://docs.tenetlabs.com/pii-engine/deploy/terraform.md) |
| Wire de-identify → LLM → re-identify into an app | [Placeholders and sessions](https://docs.tenetlabs.com/pii-engine/concepts/placeholders-and-sessions.md) |
| Verify rehydration controls | [Rehydration and audit](https://docs.tenetlabs.com/pii-engine/concepts/rehydration-and-audit.md) |
| Size replicas | [Sizing](https://docs.tenetlabs.com/pii-engine/operate/sizing.md) |
| Upgrade, rotate keys, rehearse a restore | [Upgrades](https://docs.tenetlabs.com/pii-engine/operate/upgrades.md), [Key rotation](https://docs.tenetlabs.com/pii-engine/operate/key-rotation.md), [Backup and restore](https://docs.tenetlabs.com/pii-engine/operate/backup-restore.md) |
| Alarms | [Monitoring](https://docs.tenetlabs.com/pii-engine/operate/monitoring.md) |
| Emergency access | [Break-glass](https://docs.tenetlabs.com/pii-engine/operate/break-glass.md) |
| Diagnose a failure | [Troubleshooting](https://docs.tenetlabs.com/pii-engine/troubleshooting.md) |
| Drift audit, risk analysis, code review | [Architecture](https://docs.tenetlabs.com/pii-engine/concepts/architecture.md), [Data flow](https://docs.tenetlabs.com/pii-engine/security/data-flow.md), [Attestation](https://docs.tenetlabs.com/pii-engine/security/attestation.md) |

## Gotchas

* **Agents run with your credentials.** Use a role scoped to the deployment, not an administrator session you'd hesitate to hand a colleague.
* **Keep real PHI out of agent sessions.** Verification uses synthetic text. Don't paste production documents, credentials or audit contents into a chat.
* **Prompts link to the live docs.** These pages describe the current release: its image, chart, template and module. If you run an older image, read its release notes in AWS Marketplace and [Upgrades](https://docs.tenetlabs.com/pii-engine/operate/upgrades.md) before applying these steps.

## Links

* [Overview](https://docs.tenetlabs.com/pii-engine/overview.md)
* [Quickstart](https://docs.tenetlabs.com/pii-engine/quickstart.md)
* [Troubleshooting](https://docs.tenetlabs.com/pii-engine/troubleshooting.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.