A bookkeeping entry without its receipt is a claim. With the receipt attached, it is a record. Agents make this harder than it sounds, because the obvious way to get a file from a chat into a system, encoding it and passing it as text, runs straight through the model's context window. A ten-page PDF becomes hundreds of thousands of characters the model has to carry just to hand them to a tool.
Cosbase takes a different route, borrowed from the way DeepLedger's MCP server handles QuickBooks attachments.
Upload in two steps
When you drop a receipt into a chat and ask your assistant to file it, the assistant calls the document tool and asks for an upload. The tool does not take the bytes. It returns a single-use link, valid for fifteen minutes, wrapped in a command the assistant can run from its own sandbox, where the file you attached already sits.
The assistant runs the command. The bytes travel directly from its sandbox to Cosbase, never through the model. Cosbase verifies the file type from the bytes themselves, hashes the content, stores it, and answers with a document id. The link is spent. The assistant now has an id to attach to the entry it is about to post.
Nothing about this is specific to Claude. Any agent with a shell, including a cron job holding an API key, does the same thing.
What the agent can read back
An id is not much use if the agent cannot look at what it points to. The document tool's read action returns the document in the form the agent can reason about: the text of a text or CSV file, the extracted text of a PDF, or the image itself as image content for an assistant that can see. Text is bounded, so a long statement comes back in a page the agent can work with rather than a flood. A scanned PDF with no text layer is reported as such; there is no optical character recognition in Cosbase, and we would rather say so than guess.
For anything else, and for people, the tool hands out a one-hour link. It serves the file with headers that stop a browser from sniffing it, running anything in it or embedding it elsewhere.
Evidence rides on the entry
A document on its own is just a file. The point is the link to the entry. A post can carry document ids directly, and an attach action links a document to an entry that already exists. That link is written only by the kernel, inside the same rules as everything else, and it shows up on the entry in the ledger, in the audit log, and in the audit package export that bundles the general ledger, the audit log, every document and the hash-chain proof into one archive for your accountant.
Where the bytes live
Each document is addressed by its content hash, so the same receipt uploaded twice is stored once. Bytes go to a private Supabase Storage bucket when the server is configured for it, or to local disk otherwise, behind an interface small enough to swap in any object store.
The workflow, end to end
You: "Here's the coffee receipt from Tuesday, file it." The assistant asks for an upload link, pushes the file, reads it back, sees four dollars fifty paid in cash, posts a meals expense with the receipt attached, and tells you the entry number. Below your threshold, that is the end of it. Above it, the entry waits in your inbox with the receipt one click away.
That is what evidence should feel like: automatic, verifiable and attached, without the model ever having to carry the file. Request a demo to see it with your own receipts.