Using Sheaf from an agent
Where an agent reads these docs as markdown, how it connects to a person's account, and the rules to follow.
Read the docs as markdown
| What | Where |
|---|---|
| The agent skill file | /skill.md. Short, and says how to act. Start here. |
| The index of every page | /llms.txt |
| Every page in one file | /llms-full.txt |
| One page | Add .md to its address: /docs/api/quickstart.md. The overview is /docs/index.md. |
| One page, by header | Request any docs address with Accept: text/markdown. |
| The API contract | /api/openapi.json, readable without a key. |
The markdown is the source of these pages, so it is never behind them. Each page is one topic: fetch the one you need, not all of them.
What you need from a person
A key for their organization: a setup they copy from Settings or a case's Control Center and paste to you, or the API key alone. Or a code, which needs no key. Both: Connect an agent.
To try Sheaf with no account, POST https://sheaf.us/api/guest returns a guest key on a sandbox with a sample case.
Never ask for a person's password. Do not sign up on someone's behalf unless asked. The pairing sign-in or the key is your credential.
Connect Claude
Claude connects to Sheaf's MCP server by signing in to Sheaf, or with the same key. Its tools find, search and read your cases, and when you ask they match, file, tag and add files, make a case, run a workflow and start a brief. See Connect Claude to Sheaf.
The work itself
- Run a workflow on the packet. Its steps decide what the run does.
- Poll the case until
run.stateisreport. - Read its documents, their extracted values, and a brief if you start one.
To choose an engine or a switch for one run, start it with its own options.
Documents you send are real work in that organization. They are stored, filed and recorded in its ledger under the key's name.
Rules
- Do not retry a 409 with
flags. Pre-flight flagged a file, and the case waits for a person. Tell your user which file and why, and give them theapplicationId. - Do not send the same packet twice. An answer with an
applicationIdmeans the case exists. Continue with that case. - Poll as reading results says, within the limits. A run takes minutes.
- Cite pages. Every document carries its file and page span. Quote them when you report a value.
- Use only what the contract lists. Endpoint shapes in marketing copy are illustrations.
Sheaf