Skip to main content

SerenWorkbench

The tool surface an LLM reaches through.

One process on port 7425 serving an MCP endpoint, an operator dashboard and a small HTTP API. It is the one place a model connects: the standard Seren components — Memory, Loci, the Corpus Callosum, the Hippocampus and Lodestar — are passed through, so the Workbench offers each one's own tools exactly as that service defines them, with a switch per component (components: in the config, GET /components to see what each is offering). Builtins cover web search, time and the cluster. On top of those, you can add your own tools as YAML files — no Python, no restart.

Part of the Seren stack, but it doesn't require the rest of it. Point it at whichever services you actually run.


Install

pip install seren-workbench
python -m seren_workbench

That's a working server with the builtin tools and an empty tool directory. Configuration is optional — copy seren-workbench.yaml.sample to seren-workbench.yaml when you want to change ports, service URLs or which tools start enabled.

python -m seren_workbench --config /etc/seren/workbench.yaml --port 7425

Connect a client

The MCP endpoint is at /mcp/ (trailing slash — a bare /mcp gets a 307).

{
  "mcpServers": {
    "seren-workbench": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "http://127.0.0.1:7425/mcp/",
               "--transport", "http-only"]
    }
  }
}

Set a bearer token in the config (or SEREN_WORKBENCH_BEARER_TOKEN) before this leaves localhost - a bind beyond loopback with no token refuses to start and prints the ways out.

If Memory or Lodestar were installed with a token, tell the builtins what to present:

services:
  bearer_token_env: SEREN_CLUSTER_TOKEN        # one token for memory / lodestar / scheduler
  # memory_bearer_token_env: SEREN_MEMORY_TOKEN  # or per service

A body

A SerenSoma robot is part of the system, so its tools are builtins: soma_status, soma_pose, soma_say, soma_settings, soma_lights, soma_head, soma_touches, soma_heard and soma_talk (the toolbox "Body"), through seren_sinew.soma. They're on by default; a Workbench with no body says enabled: false and they aren't listed at all. There is no camera tool: a photo is taken only when the person in the room says so. For the same reason no tool opens the microphone: soma_heard reads what was heard while the person had it open, and soma_talk can end back and forth but not start it.

soma:
  enabled: true
  robot_url: http://192.0.2.21:8080   # no robot_url: the tools aren't listed
  robot_token_file: ~/seren-soma/state/control_token
  voice_url: http://127.0.0.1:7480
  voice_token_file: ~/seren-soma/state/token

Each side's token takes _token_file, _token_env (an env var's name), _token_keyring or, as the escape hatch, _token inline. SEREN_WORKBENCH_SOMA_ENABLED, _SOMA_ROBOT_URL and _SOMA_VOICE_URL override the yaml.

A kitchen

A SerenKitchen is the board the people of a house and the model leave each other notes on: a fridge per app, sheets on the doors. Its tools are builtins too: kitchen_wall, kitchen_fridge, kitchen_sheet, kitchen_leave, kitchen_reply, kitchen_tick, kitchen_magnet and kitchen_stick (the toolbox "Kitchen"). With no url they aren't listed; enabled: false takes them away. Everything they leave is signed with one name, author (blank: whatever the kitchen's house calls its partner), and no tool takes an author, so a call can never sign as the person.

kitchen:
  enabled: true
  url: http://127.0.0.1:7431          # no url: the tools aren't listed
  author: ada                         # blank: the house's partner
  bearer_token_file: ~/seren-kitchen/token

The token takes bearer_token_file, bearer_token_env, bearer_token_keyring or, as the escape hatch, bearer_token inline. SEREN_WORKBENCH_KITCHEN_ENABLED, _KITCHEN_URL and _KITCHEN_AUTHOR override the yaml.

A tool manifest that says local_config: <name> gets its address and token from <tool_config_dir>/<name>.yaml on this box, read per call (so no restart when it changes): dashboard.tool_config_dir, default customToolConfig beside tools_dir. See docs/TOOL-MANIFESTS.md.

The pages at the door

The dedication (the model's own page) and the preface (the room page) are read at every session start from a piton: plain files on the box the harness runs on (SerenCarabiners, PITON.md). The Workbench is usually not on that box, so it never writes one. set_dedication / set_preface keep the newest version here, numbered, in .pages.json beside the switches (a snapshot carries it), and each box's carabiner pulls it at its next session start with GET /pages/<page>?after=<the number it last took>. The number is this Workbench's own count, so no two clocks have to agree. Whether a box TAKES a page - who writes it there - is the piton's call, not this one's.

These four names (set_dedication, set_preface, dedication, preface) are the Workbench's own: Margin's tools of the same names are held back from the surface, so there is one door to each page. While Margin still offers its writers (pages: margin, its default), a write here is handed to Margin too, so a box on an older carabiner, reading its bookmark from Margin, sees it. When Margin stops offering them (pages: piton), that stops by itself.


Adding your own tools

Drop a YAML file in tools_dir (default ~/seren-workbench/tools):

schema_version: 1
tools:
  - name: disk_free
    description: >
      Report free space on the Seren data volume. Use when someone asks
      whether there's room for another model.
    invoke:
      kind: process
      argv: ["df", "-h", "--", "{mount_point}"]
    parameters:
      - name: mount_point
        type: string
        required: true
        pattern: "/[A-Za-z0-9._/-]*"

Then reload — the tool is live immediately, no restart:

curl -X POST localhost:7425/tools/manifests/reload

Tools can run a process or make a web call. Parameters are typed, defaulted, range-checked and — for strings — matched against a pattern or an enum, with the rules published into the JSON schema so the model reads them rather than discovering them by being corrected.

→ docs/TOOL-MANIFESTS.md is the full reference. examples/tools/example-tool.yaml is an annotated file you can copy; the test suite loads it, so it can't quietly stop being true.

Tools the model asks for

A model can propose a tool for itself with propose_tool. The manifest lands in a staging directory that nothing loads — it's inert text until you read it and approve, at which point it moves into tools/ and goes live.

Open /viewer → Proposals; the tab shows a count when something's waiting. Or from the shell:

curl -s localhost:7425/proposals                     # what's waiting
curl -s localhost:7425/proposals/prop_a1b2c3d4e5     # the manifest + what it would run
curl -X POST localhost:7425/proposals/prop_a1b2c3d4e5/approve
curl -X POST localhost:7425/proposals/prop_a1b2c3d4e5/reject \
     -d '{"critique":"argv shells out to a script I cannot read"}'

Approving installs it switched off. The tool appears in your list, disabled; you turn it on separately from the Tool State tab. Two decisions — "this isn't malicious" and "I want it live now" — kept apart on purpose.

The model can propose and read its proposals. It cannot approve — there's no MCP tool behind any approval route, and a test asserts there never is. Reject requires a critique, which the proposer reads and can revise against; same loop as the memory consolidator's draft gate.

Turn it off with dashboard.proposals_enabled: false, which removes the tools entirely rather than leaving them to fail.

A model can ask for a whole MCP server the same way, with propose_plugin: an address and a reason. Nothing is dialled until you approve; then the server is plugged in and every tool it offers arrives switched off, for you to turn on one at a time. A proposal never carries a token — it can only name where one is kept on this box, and the review says in so many words that approving sends it.

→ docs/TOOL-PROPOSALS.md — what to look at when reviewing one.

A model can also propose a project: a piece of work with a rendered plan, the one directory it may touch, an explicit list of sites it may fetch from, and the tools it will need, each of which is its own proposal under it. Approving a project agrees to the plan and the limits and turns nothing on; a revision of an agreed project is its own proposal, shown as a diff.

→ docs/PROJECT-PROPOSALS.md — projects and revisions.

What reload won't do

It reads files that are already on disk. It cannot author a tool, it refuses a manifest that would shadow a builtin, it won't re-enable something you switched off, and it treats a missing tools directory as "something's wrong" rather than "delete everything." A tool exists because a person put it somewhere.

Neither does a restart re-enable anything: toggles are remembered in <tools_dir>/.tool-state.json. A remote from: import may only hand you kind: web tools, and no tool may point back at the Workbench itself.


What a connected model can count on

  • The list it has is the list there is. The Workbench tells connected clients when its tools change (notifications/tools/list_changed): a component that came up late, a switch you flipped, a proposal you approved. A tool that is switched off is not offered at all, and appears the moment it is switched on.
  • A failure is an error. A builtin that could not do what was asked comes back as an MCP error, not as a successful result whose text is bad news.
  • It can read its own record. list_my_tool_calls is the audit log from the caller's side: which tools, when, whether they worked. Names and outcomes only — never an argument or a result.
  • A service it asks for stays up while it is using it. ensure_service_running takes a lease with Lodestar and release_service gives it back; the service is stopped when its last holder lets go. A hold a session forgot is let go by the Workbench (tools.ensure_service_running. hold_minutes, and at shutdown). GET /components shows what is held.

Snapshots

The tools folder — manifests, approved plugins, proposals, and the switches — is what a Workbench keeps, and it is snapshotted like the rest of the Seren family: daily by default, into backups/ beside the tools folder.

curl -s localhost:7425/stores                                  # what is kept, and the snapshots
curl -X POST localhost:7425/stores/snapshot -d '{"reason":"before I tidy up"}'
curl -X POST localhost:7425/stores/snapshots/<id>/rehearse     # a restore's dry run

Putting one back is two config keys and a restart, into an empty tools folder only — there is no route and no tool that restores:

backup:
  restore_from: /path/to/backups/seren-workbench/20261006-151256
  restore_reason: "moving to the new box"

Endpoints

GET / service info, tool counts and update status
GET /health liveness
GET /tools every tool with its schema
GET/POST /tools/state enable and disable, per tool or per action
GET /tools/manifests what loaded, what was skipped, and why
POST /tools/manifests/reload re-read the directory, apply it live
GET /components each component and plugin: on or off, reachable or why not; what is held
POST /components/state switch a component or plugin on or off
GET /pages the pages at the door this Workbench holds: number, when, size
GET /pages/{page}?after=N the newest version if it is past N, else 204 (a carabiner pulling)
GET /proposals tools and plugins the model has asked for
GET /proposals/{id} one, with the full manifest and what it would run
POST /proposals/{id}/approve install it, switched off
POST /proposals/{id}/reject refuse it, with a critique
GET /config resolved config, secrets masked
GET /logs recent server logs
GET /stores what the Workbench keeps, and its snapshots
POST /stores/snapshot take a snapshot now
POST /stores/snapshots/{id}/rehearse prove one can be put back, without putting it back
/mcp/ the MCP streamable-HTTP transport
/viewer the operator dashboard

Update checking

GET / reports whether a newer seren-workbench has been published, alongside the tool counts:

{
  "service": "SerenWorkbench",
  "version": "1.2.0",
  "tools_count": 26,
  "updates": {
    "status": "ok",
    "installed": "1.2.0",
    "latest": "1.3.0",
    "update_available": true
  }
}

On by default: update checking is part of the core install (it lives in seren-meninges). A box that never leaves the LAN has no business calling PyPI; set enabled: false there. The knobs:

updates:
  enabled: true
  check_interval_hours: 6      # cached; never checked per-request
  allow_prerelease: false

The result is cached and the check never happens in the request path, so / stays fast. updates.status is always one of ok, disabled, unavailable (a broken install: the checker's dependencies are missing) or error — never absent, and never a silent "you're fine" when it couldn't actually check. SEREN_WORKBENCH_UPDATES_ENABLED=false turns it off without editing config.

The Workbench never upgrades itself. Applying an update is pip install -U seren-workbench and a restart — your service supervisor's job, not this process's. A running process can't reliably swap its own code out from under itself, so it doesn't pretend to.

Development

pip install -e ".[dev]"
pytest -q

License

AGPL-3.0-or-later.

Metadata

Release files for seren-workbench 5.11.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for seren-workbench 5.11.0
File Size Uploaded Provenance Actions
seren_workbench-5.11.0.tar.gz 597.8 kB With provenance Details for seren_workbench-5.11.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for seren-workbench 5.11.0
File Interpreter ABI Platform Actions
seren_workbench-5.11.0-py3-none-any.whl Python 3 none any Details for seren_workbench-5.11.0-py3-none-any.whl

Total release size: 821.0 kB

Release files / seren_workbench-5.11.0.tar.gz

Download URL seren_workbench-5.11.0.tar.gz
Size 597.8 kB
Tags Source
SHA-256 checksum
How to use checksums
6ce53c51786a01800126a500ba13a6b95c940062c7c8aa661c2300dac3f1c507
BLAKE2b-256 checksum
How to use checksums
0978aa9db42e8a982bf99380e4fd41c9e69c4a684078f66eece623f2627bf0a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

Release files / seren_workbench-5.11.0-py3-none-any.whl

Download URL seren_workbench-5.11.0-py3-none-any.whl
Size 223.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
56c5d10a1f0f66afc66ecdc835349a7d4bae16c668cb7d5b8c215eb5da32ff82
BLAKE2b-256 checksum
How to use checksums
f8f70894efb1e59943b439ec6af36aa0ed5380d5e4390f27abed2b71865466ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

Security for seren-workbench 5.11.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for seren_workbench-5.11.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page