Concepts
Hewn holds your own small tools, with their own data, for every agent you use. Instead of each chat or coding agent keeping its own notes, the things you track live in Hewn, and any agent you connect can use them.
Tools
A tool is one small piece of software of your own: a Running Log, a Reading List, a weather app. Hewn's contracts and agents call it a capability.
- It has operations with typed inputs and outputs (
record_run,list_runs), each markedread,writeordestructive. - It has its own private database. Nothing else can read it: other tools, agents and Hewn itself have to go through the tool's operations.
- It can have its own screen (UI), which the web client opens, and widgets for Home and for agents' chats.
Tools are versioned. Each change is a new version, tested before it becomes active. Your data stays and is migrated forward, and you can go back to an earlier version. Operation contracts are versioned too (list_runs@1): a breaking change adds list_runs@2 next to it, so whatever relied on @1 keeps working.
Agents
Agents are the AI assistants you use: Claude Code, Codex, claude.ai, ChatGPT, or any MCP client. They connect to Hewn over MCP.
- Approval: they sign in with OAuth, and you approve each one in Hewn.
- Scopes: they get only what you approve: see your tools, use them, make new ones, change existing ones. Optionally, only some tools.
- Owner-only actions: agents can't approve anything for themselves: grants, secrets, schedules, other agents.
- Destructive operations wait for your confirmation in Hewn.
See Connecting agents.
Hewn's three jobs
Hewn uses AI itself, for three jobs (Settings › AI):
- Writes the spec: the intake talks a request through with you and proposes a spec of what to build.
- Builds tools: the builder writes the tool from the spec, in a sandbox.
Both run Claude Code or Codex on your machine, on however it's signed in: a subscription, an API key, or a cloud provider such as Amazon Bedrock or Google Vertex AI. Hewn adds no fees of its own.
- Thinks inside tools: tools that need a model call one through Hewn, with your API key and a monthly budget. See Models.
One agent can do the first two jobs and also use your tools as an MCP client.
Builds
When you (or an agent) ask for a new tool or a change, the builder writes it. Hewn then:
- checks the manifest and the contracts
- runs the tool's tests, and its database migrations on a copy of your data
- renders its screen
- makes it live if all of that passes
What you ask for goes live right after the checks. A change an agent asks for that adds operations, or touches a connection, waits for you to approve it first (the Inbox, or hewn review). Either way, a tool can't reach anything new until you approve its grants.
If it fails, you see why, and you can ask the builder to fix it. See Building tools.
Grants
Tools are isolated by default: no network, no keys, no model. A tool reaches outside only through what it declares and you grant:
- hosts: e.g.
api.met.no, for the weather - keys: an API token, held only by a connection (below)
- other tools' operations: e.g. a Weekly Review reading
running-log/list_runs@1 - a model: at a tier you choose
A tool is not ready until you've granted what it needs. You can revoke any grant at any time.
Connections
A connection is a tool that wraps one service you have an account with (Todoist, GitHub, your bank). It's the only kind of tool that holds credentials. Other tools use the service through its operations. See Connections.
Schedules
You can run an operation on a timetable, e.g. "daily 07:00", in your time zone. Agents can only propose a schedule; nothing runs until you enable it. Read and write operations only. A schedule pauses itself after three failures in a row.
The Inbox and Activity
The Inbox holds what needs you: grants, agents waiting, schedule proposals, failed builds, connections to sign in again, model spend. Activity holds everything that happened: calls, builds, and access changes (agents connected or disconnected, scopes, secrets, destructive calls allowed or stopped), with who did it and when. See The web client.
Where it runs
On your machine. The tools run in workerd, Cloudflare's open-source Workers runtime: each one in its own isolate, behind an egress filter. Hewn's supervisor runs workerd inside the OS sandbox (Seatbelt on macOS, bubblewrap on Linux), and runs the builder, the intake and backups. See the threat model for what that protects.