# Trellvix Trellvix is the office a company's AI agents work in. Every agent has a desk, every piece of work it handles has a place and a stage, and anything that spends, sends or cannot be undone waits for a person. The agents keep running where they run (n8n, Python, JavaScript, an MCP client, anything that makes a web request); Trellvix is what the company sees and what the agents call before they act. It works only for the company that runs it: a person approves, a rule a person wrote allows, or the request is refused. ## The API, in brief Engine: https://platform.trellvix.com. Every call carries the agent's key: Authorization: Bearer . - ask POST /v1/actions { tool, actionClass, summary, consequence, amount?, recipients?, said?, callbackUrl?, idempotencyKey? } Answers allowed (go ahead), waiting (a person decides; check status), or refused (do not). - status GET /v1/actions/:id The request as it stands: allowed, approved, waiting, rejected, refused, stopped, done, failed. - report POST /v1/actions/:id/result { outcome: "done" | "failed", note? } Say what happened, so the log holds it. - work POST /v1/work { kind, id, title, stage, note?, amount?, href? } The item the agent is handling, at its stage. GET /v1/work?kind=&stage=&agent=&limit= { work: [...] }, newest moved first: what is on the floor. DELETE /v1/work/:kind/:id Take an item off the floor. - handoff POST /v1/handoffs { summary, reason, kind?, id?, href?, callbackUrl? } Hand a matter to a person. It asks no permission and is never a go-ahead. - stopped GET /v1/agents/:id/stopped { stopped, by, why, at } Whether the company has switched this agent off. - office GET /v1/office { template, level, name, departments: [{ id, name }], places: [{ kind, name, stages }] } The places and the stages an item may be at. An unknown kind is refused with the places that exist. The three answers to ask: allowed means go ahead now; waiting means a person has it, check status until they decide; refused means do not, and do not try another way. ## What each call takes - ask: tool, one of the tools above. actionClass, the kind of request: the tool, or the tool and more words after a dot, like sms.send.reminder; the company writes its rules on the kind. summary. consequence, which is one of read, reversible or irreversible. Add amount when money is involved and recipients, the number of people a send reaches: thresholds and the caps on rules are judged on them, and a send that names no number is treated as over any cap on people. Add said, the exact words that will be sent to a person, so whoever approves reads them. - callbackUrl, on ask: an https address Trellvix posts to the moment a person decides. The post is a nudge and never the decision: check status before acting. - stopped(): whether the company has switched this agent off. Call it before a long step and between the steps of a long task, and stop when it says so. - handoff(): when a matter is not the agent's to do (a clinical or legal question, a threat, someone angry), hand it to a person with a summary and a reason. It asks for no permission, and its answer is never a go-ahead. ## Clients - JavaScript: https://platform.trellvix.com/sdk/trellvix.mjs (one file, no dependencies; Node 18+, Deno, Bun, Workers) - Python: https://platform.trellvix.com/sdk/trellvix.py (one file, standard library only) - MCP: the package trellvix-mcp (npx -y trellvix-mcp) for Claude Code, Claude Desktop, Cursor and any MCP client; it reads TRELLVIX_KEY from its environment, and TRELLVIX_ORIGIN only when the engine is not https://platform.trellvix.com - n8n: the community node n8n-nodes-trellvix (Ask before acting, Check status, Report result) - HTTP: the routes above, from any language ## The rule Never act on refused, stopped, rejected or waiting. No answer counts as no. ## The setup prompt (paste into a coding agent; the key comes from Bring an agent in Trellvix) Set up Trellvix for this agent. Trellvix is the office this agent works in: it asks a person before anything that sends, spends or cannot be undone, reports what it did afterwards, and shows the work it handles on the floor, by place and stage. Engine: https://platform.trellvix.com Agent key: the key shown once under Bring an agent in Trellvix. Keep the key as TRELLVIX_KEY and the engine as TRELLVIX_ORIGIN in the agent's environment. Never put the key in a repo, a log or a message. Client: one file with no dependencies, https://platform.trellvix.com/sdk/trellvix.mjs for JavaScript or https://platform.trellvix.com/sdk/trellvix.py for Python. An MCP client (Claude Code, Claude Desktop, Cursor) uses the package trellvix-mcp instead: npx trellvix-mcp with TRELLVIX_KEY in its environment, and TRELLVIX_ORIGIN only when the engine is not the default. This agent may ask only for the kinds of request it was given when it was brought in. Anything else is refused. Places it may report work in: the office's places, from GET /v1/office. Do this: 1. Put ask before any step that sends, spends or cannot be undone: the tool, a summary a person can read, and the consequence. If the answer is waiting, check status until a person decides. 2. Put report after the step, with the request id and whether it was done or failed. 3. Put work wherever the agent handles an item of a known place: the kind, the company's own id for the item, a title, and the stage it is at now. 4. Never act on refused, stopped, rejected or waiting. No answer counts as no. Read https://trellvix.com/llms.txt first. ## Addresses - The product: https://trellvix.com - Bring an agent: https://trellvix.com/faq#guides - This file: https://trellvix.com/llms.txt