Manual›Reference›Toolkits
How do I build, host and share my own toolkit?
Type /make-tool and describe what you want. Irene works out what the tool should be (and tells you if you don't need one), writes it as a small Python toolkit on your computer, tests it, and makes it available to any chat or agent. You can give it its own card, host it on its own server so other apps can use it, or share it with a tk:// link.
What makes it different
| what it does | the primitive behind it | what that buys you |
|---|---|---|
| Built with the tools Irene already has | Irene writes the toolkit with its file tools and tests it with the shell. The toolsmith toolkit only turns the folder into live tools and lists what exists |
No separate developer kit, and nothing to install |
| Can tell you "you don't need a tool" | /make-tool reads the designing-a-tool skill first, and an existing tool, a line in a prompt or a document is a valid answer |
You don't build the wrong thing |
| Costs nothing until you use it | A toolkit you build registers as custom_<name> and loads only when attached to a chat or an agent |
Its description isn't re-sent on turns that don't need it |
| Can't see your secrets | Each call runs in a separate process with almost every environment variable removed. Your API keys pass in only when you name them | A toolkit, even one someone shared, can't read Irene's keys |
| Knows its own output shape | The loader reads the keys of every return {…} in your code and writes the output shape into the tool's description |
Cards and other agents know what comes back without calling it |
| Every tool says what it does | Every tool must declare a Kind: line (reads, writes on this device, sends online, deletes) or the build fails |
Auto mode knows how careful to be with it |
| Sharing hosts nothing | Publishing stores the toolkit's source behind a link. Whoever attaches it gets their own copy, running under their own account | Your toolkit never runs on your account for someone else |
A worked walk-through
"/make-tool — get live stock quotes for a list of tickers"
- Design. Irene asks at most four questions: what it does in one sentence, what it returns and who reads it, what can go wrong, and whether it only reads or also changes things. Then it proposes:
NAME: get_quotes
DOES: latest price and change for a list of tickers
RETURNS: {as_of, quotes[], succeeded, failed}; empty list if none found
PARAMETERS: tickers: list of symbols
FAILS: {error} naming the ticker that failed
SAFETY: read-only
WHERE: an Irene toolkit
- Write. It creates
~/.irene/toolkits/market_quotes/toolkit.py. Each exposed function is marked@tool, has a docstring with aKind: readsline, and returns a dictionary. Helpers starting with_stay private. - Test before building. It runs the file directly from the shell, with a test block at the bottom, using Irene's Python environment.
- Build.
toolsmith(action="build", name="market_quotes"):- registers
custom_market_quotes - imports it once in the sandbox, so typos and missing packages fail now, not on first use
- writes the dependencies (
yfinance) torequirements.txt
- registers
- Use. Attach it to this chat (
@market_quotes) or to an agent (toolsmith(action="attach", agent_id=…)). - Give it a card (optional):
sample→ write an HTML card →view. → Tool UI
That's a real toolkit on this machine: market_quotes has three tools (quotes, history, market snapshot), each with its own card, and it's been deployed.
How it works
A toolkit folder
~/.irene/toolkits/<name>/
toolkit.py your @tool functions
requirements.txt packages (written for you on build)
views/<view>/ optional cards: index.html + view.json
manifest.json written on build: tools, output shapes, lint
- Names: lowercase letters, digits,
-and_. It's registered ascustom_<name>, so a folder calledfilecan't replace Irene's ownfiletoolkit. - Dependencies: your
requirements.txtwins. Otherwise imports are scanned and mapped to packages (cv2→opencv-python,PIL→pillow). They're installed into Irene's environment on first use, and skipped entirely for a toolkit that needs nothing extra. - Lint for transparency: risky constructs (subprocess, sockets, eval and the like) are flagged in the manifest. Mark a justified one with
# JUSTIFY:. Lint shows you what's there; it never blocks.
Running a tool
Each call runs your function in a fresh process with Irene's Python environment. Only basics like PATH, HOME and language settings are passed through. Keys you've chosen to give it travel with the call, not in the environment. Calls time out after 60 seconds. Pressing Stop kills the process.
Why a separate, stripped process: a toolkit can import pandas, but it can't read the keys of the app running it. This is the same boundary Irene's reflexes use, so there's one boundary to keep safe.
The toolsmith actions
| action | does |
|---|---|
build |
load or reload a toolkit folder as live tools |
list |
the toolkits you've built |
sample |
call any tool once and see its real output, trimmed to its shape |
view |
attach an HTML card to any tool |
errors |
read the errors a card reported |
attach |
give a toolkit to an agent, by name or by tk:// link |
publish |
share it and get a tk:// link; publishing again keeps the same link |
share |
show the link of a toolkit already published |
unpublish |
stop sharing; copies people already have keep working |
Hosting a toolkit on its own server
Ask the Agent Builder to deploy it. It's not a toolsmith action:
- deploy(kind="toolkit", action="up") puts the toolkit on its own cloud server as an MCP service at https://<name>.tools.mycelen.com/mcp. Other apps that speak MCP can then use it.
- The first deploy asks which apps will use it, because that decides how they connect:
| door | who can connect |
|---|---|
key |
apps that can send a key |
users |
people who sign in |
open |
anyone |
Claude's and ChatGPT's connector boxes take only an address and can't send a key, so they can't use the key door.
- After deploying, it checks the server is healthy and speaks MCP, connects it to your own Irene, and gives you the exact steps to connect each app.
deploy(action="down", confirm=True)takes it down and removes its data.- A hosted toolkit can also charge for use. A charging toolkit stays on the sign-in door.
You can also attach a toolkit to an agent you deploy, and it travels inside that agent's server, with its cards.
Sharing
publishstores the folder's text files (at most 256 KB each, 512 KB total) behind atk://link.- Whoever has the link attaches it with
toolsmith(action="attach", link="tk://…"). The files land in their~/.irene/toolkits/and run under their account, so anything the toolkit stores is theirs. - Pulling an unchanged link changes nothing.
unpublishstops the link from working, but copies already pulled keep working.
Approvals
- Every custom tool asks on its first call in a chat, whatever it declares. Trust it for the chat after that.
- In auto mode:
- runs:
list,errors - judged:
sample, since it calls a real tool - treated as sending:
publish,share - treated as deleting:
unpublish - never allowed in auto mode:
buildandview(they write into Irene's settings folder)
- runs:
- Your tool's own
Kind:line decides how auto mode treats each call to it. - Taking down a hosted toolkit needs an explicit confirm.
Where you see it
- Capabilities → Tools shows your toolkits as "your own tool".
- Workforce lists them with everything else you've built.
- In the chat,
@attaches one to the current chat. - Built-in skills Irene reads for this: designing-a-tool, building-tools, giving-a-tool-a-ui, sharing-a-toolkit, what-a-tool-surface-costs (Capabilities → Skills).
Limits
- 60 seconds per tool call.
- Sharing: text files only, 256 KB per file, 512 KB in total.
- No delete button for a local toolkit yet. Remove the folder from
~/.irene/toolkits/yourself. - Every tool needs a
Kind:line to build.
What it costs
- Running a toolkit uses no model usage. It's your Python, on your computer.
- Writing it is normal chat usage for the turns Irene spends building it.
- While attached, its tool descriptions are part of each turn. Detach it when you're done.
- A hosted toolkit runs on its own cloud server, which starts when called and sleeps when idle.
Related
- Tool UI: give any tool its own card
- equip & connectors: use ready-made app tools and MCP servers instead
- Agent Builder · Deploy to the cloud
[Ask Irene about this]
Updated