Mods
Panels you or your agents make as a web page: a pull request queue, CI status, an agent usage meter, anything Sikemux or your connectors know.
A mod is a panel you make yourself, as a web page, that opens in a tab on an agent’s desk. It can show what Sikemux knows, such as your agents, the project’s tasks, your processes and Git, and what your signed-in connectors read, such as pull requests, CI runs, Jira issues or logs. Mods live on your host, outside the app, so they cost the download nothing.
Making one
The easiest way is to ask an agent. Click New mod on the Mods page of the tab rail, or pick Make a mod with an agent in Open mod…, and say what it should show, such as “my open pull requests with their CI status”. An agent starts in the project in front, writes the mod and opens it.
To change a mod, right-click it in the rail and pick Edit with an agent.
Opening one
Mods is the tab rail’s last page, after Artifacts (⌘⌥9, or Ctrl+Alt+9 on Linux and Windows). It lists the mods that show in every project, then those only in the one in front, with a search. Each row has the mod’s icon, its name and a few words it may show beside them, such as “3 failing”. Click a row to open the mod on the desk. The desk’s +, Open mod… in the command palette and New… list mods too, and an agent can put one on its own desk with ui_open.
A mod has one live page. A second desk in sight with the same mod says it is on the desk beside it, and Show it here moves it.
Right-click a mod’s row to:
- Show only in the project in front. A mod shows in every project until you do; Show in every project brings it back.
- Edit with an agent.
- Remove it, which moves its folder to the Trash, on every host of your account.
Settings → Connectors → Mods lists every mod with what it reads, what it may change and the sites it reaches, and opens, turns off or removes each.
From GitHub
A link such as sikemux://install-mod?repo=owner/name, or ?url=https://github.com/owner/name, installs a mod from a GitHub repository. Sikemux reads the repository’s mod.json at its newest commit and shows what the mod reads, what it may change and the sites it reaches, with Read code, Cancel and Install. Nothing downloads until Install; then the mod opens and shows under Mods. Installing it again updates it and sends the earlier copy to the Trash; a mod you made yourself is never replaced. Writes and the sites it reaches still ask when it opens.
On every host
When you’re signed in, a mod follows your account to every host: its folder, pictures included, and its data. Change a mod on one host, yourself or with an agent, and your other hosts have the new version a few seconds after its files stop changing. A folder still being written, without a readable mod.json and index.html, waits until it is whole. Sikemux’s server keeps the folder sealed under your account vault’s key, so it can’t read the files or their names. Files starting with a dot, such as .git, and symbolic links stay on the host they’re on. A mod can hold up to 512 files and 64 MB, at most 25 MB a file; one that holds more stays on its own host, and Settings → Connectors → Mods says why.
If two hosts change the same mod while apart, the one changed last wins on both, and the other copy goes to that host’s Trash, where you can get it back. Settings → Connectors → Mods says so under the mod on that host.
What you allow a mod to change and the sites it may reach are asked once on each host, so a mod arriving from another host asks before it writes. Turning a mod off and showing it only in one project stay on the host where you chose them. A mod’s folder deleted by hand comes back from your account; Remove it to remove it everywhere.
A mod follows the account it first synced with. Sign in to another account and it stays on this host and keeps working, but Settings → Connectors → Mods says it isn’t syncing, and it syncs again when you sign back in; if the other account has a mod with the same name, that account’s copy takes its place and yours goes to the Trash. A mod you make while signed out joins the first account you sign in to.
Examples
Sikemux ships Pull requests, which shows the project’s open pull requests with their checks and its latest CI runs on GitHub, GitLab, Bitbucket or Forgejo, and re-runs a failed one. Add it from Settings → Connectors → Mods or Open mod…: it is copied into your mods folder, where you or an agent can change it.
What a mod may do
A mod reads only what its mod.json names, and never sees your sign-ins: Sikemux asks the service and hands the mod the answer.
A mod that changes something, such as messaging an agent, adding a task to the board or re-running a CI run, names that in its mod.json as well. The first time it tries, Sikemux lists everything it may change and asks you once. Allow holds until its mod.json asks for more. Take back approval in Settings → Connectors → Mods withdraws it.
A mod’s page is closed to the internet. It cannot fetch, post a form, open a frame or load a picture or font from anywhere, so what it reads goes nowhere else. A mod that needs a site names it in connect, and Sikemux asks you when you open it, listing those sites with everything it may change. Until you allow it, the page stays closed, and the approval lapses whenever its connect or its writes change. A link opens in your browser only when you click it.
A mod keeps its own data with no declaration and no asking, since it can reach only its own (see Keeping data). Your agents can read and change any mod’s data too, with no asking, and every change keeps who made it so you can undo it. Removing a mod forgets its data too.
A mod whose tab is out of sight stops reading and its timers pause, so a mod left open does not slow your agents.
Writing one by hand
Each mod is a folder in ~/.config/sikemux/mods/, named with lowercase letters, digits and dashes, holding two files. Sikemux follows the folder: a new mod shows in the rail at once, and an open mod shows your changes as you save.
mod.json says what it is:
{
"name": "Pull requests",
"icon": "pull-request",
"description": "Open pull requests and their CI.",
"reads": ["repo", "github"],
"writes": ["github.rerun"],
"connect": ["https://avatars.githubusercontent.com"]
}icon is one of Sikemux’s icon names, such as dashboard, pull-request, agents, board, gauge or jira.
connect lists the sites the page may fetch from, open a WebSocket to and show pictures from, each as an origin: https:// or wss://, a host, and maybe a port, such as https://api.example.com:8443. https://*.example.com covers every host under example.com, though not example.com itself. Anything else, such as a path or http://, keeps the mod from showing, and Settings → Connectors → Mods says why. Leave it out and the page reaches nothing.
index.html is the page. Keep it one file, with its scripts and styles inline: pictures and fonts beside it are folded in, other files are not, and nothing loads from the internet but what connect names. It wears your theme through CSS variables such as --foreground, --muted-foreground, --border, --accent, --success, --warning and --destructive, and links open in your browser.
The page reaches Sikemux through window.sikemux:
| Call | What it does |
|---|---|
sikemux.read(name, params) | Reads name once and resolves with the answer. |
sikemux.watch(name, params, callback, { every }) | Calls callback(value, error) now and whenever the answer changes, only while the mod shows. Sikemux’s own data is read again when it changes; a connector is read again every every milliseconds, a minute unless set. Returns a function that stops it. |
sikemux.write(name, params) | Makes a change, asking you first as above. |
sikemux.badge(text) | Shows a few words beside the mod’s name in the rail, or none with null. The badge is kept with the mod’s data, so it stays after Sikemux restarts. |
sikemux.every(ms, run) | Runs run every ms milliseconds while the mod shows. |
sikemux.on("shown" | "hidden", listener) | Hears the mod’s tab come forward or go out of sight. |
sikemux.view.get() | The value the page last kept with view.set, or null. |
sikemux.view.set(value) | Keeps a small JSON value, at most 16 KiB, such as the tab or filter chosen, until the mod’s tab closes. |
A mod out of sight for five minutes may be closed to save memory, unless it is one of the last three you put out of sight. Its tab stays where it is, and when you come back to it the page opens again from the start: it reads and watches what it needs again, and finds what it kept with sikemux.view and the place it was scrolled to. Keep anything that should last longer, or reach other windows and agents, in sikemux.data.
What a mod reads, each named in reads:
| Name | Answer |
|---|---|
agents | The project’s agents as agents’ own agent_list gives them; { all: true } for every project. |
tasks | The project’s tasks, as in its Tasks view. |
processes, runs | The project’s processes, and their runs. |
questions, inbox | What agents ask you, and what waits on you. |
usage | How much of their plans your agent accounts have used. |
repo | The code host the project’s origin is on: connector, owner, name, account. |
git.status, git.log, git.branches… | The project’s repository, as the Git pane reads it. Declare git. |
github.pulls, gitlab.runs, jira_search… | A connector you are signed in to, by its method or by its agent tool’s full name. Declare the connector, such as github or jira. |
What a mod may change, each named in writes: agents.send ({ agent, text }, as if you wrote it), tasks.add, tasks.update, and a connector’s own changes, such as github.rerun or jira_comment.
Keeping data
A mod keeps its own documents on your host, apart from its folder, so they stay when the page changes and an edit to the page never loses them. Each document is a JSON object, named by a collection and an id, such as ("posts", "2026-11-13").
When you’re signed in, a mod’s data follows your account to every host. A change saves on the host where it was made at once and reaches your other hosts a few seconds later. It’s sealed under your account vault’s key, so Sikemux’s server can’t read it, and it never learns your collection names or document ids. Two hosts that changed the same document while apart keep both changes when they’re different fields. When both changed the same field, the later change wins and the other is kept in the document’s history. A host that is offline works on its own copy and catches up when it’s back. Removing a mod on one host removes its data on all of them. Each account’s data is kept apart: signing in to another account shows that account’s data, and what you had under the first comes back when you sign in to it again. What you make while signed out goes to the next account you sign in to. If your account runs out of room for mod data, the mod gets an amber dot in the rail and Settings → Connectors → Mods says it isn’t syncing; it keeps working on this host.
| Call | What it does |
|---|---|
sikemux.data.get(collection, id) | Resolves with the document, or null. |
sikemux.data.list(collection) | Resolves with the collection’s documents as [{ id, doc, by, name, at }], ordered by id. by is "person" or the id of the agent that changed it last, name that agent’s name, and at when, in milliseconds. |
sikemux.data.set(collection, id, doc) | Replaces the document whole, and resolves with it. |
sikemux.data.patch(collection, id, patch) | Changes some of its fields as a JSON Merge Patch: a field set to null goes. Makes the document if it has none. Resolves with the document after. |
sikemux.data.remove(collection, id) | Removes the document. |
sikemux.data.history(collection, id) | Resolves with the changes kept for the document, or for the whole collection without id, newest first, as [{ version, id, by, name, at, was, existed }]. was holds the fields the change touched as they were before it, null for one that was not there. |
sikemux.data.undo(collection, id, version) | Puts back the fields change version touched as they were before it, or removes the document again if that change made it. The undo is a change of its own, so it can be undone too. |
sikemux.watch("data", { collection }, callback) | Calls callback(documents) now and whenever the collection changes, as list gives it, from any pane or window. |
Collections and ids are 1 to 64 letters, digits, dashes, underscores or dots, not starting with a dot. Sikemux keeps a record of when each field of a document last changed, and of fields taken out, and that record counts toward its size: a document holds at most 60 KiB with it, and a mod at most 10,000 documents and 16 MiB. Setting a document whole drops the record of fields taken out before. A document with no fields left is removed.
Sikemux keeps the last 200 changes of each mod for 30 days, with who made each one.
Collections and schemas
mod.json may describe its collections, each with a JSON Schema its documents must match:
{
"name": "Posts",
"collections": {
"posts": {
"description": "One draft a day, by date.",
"schema": {
"type": "object",
"required": ["text"],
"properties": {
"text": { "type": "string", "maxLength": 280 },
"posted": { "type": "boolean" },
"channel": { "enum": ["x", "discord"] }
}
}
}
}
}Every write is checked against its collection’s schema, from the page and from agents alike, and one that does not match is refused with the field and the reason, such as posts/3: field posted must be boolean, not string. A schema may use type, properties, required, enum, items, additionalProperties, minimum, maximum and maxLength, with description and title as notes; a mod whose schema uses anything else does not open, and Settings says which word it used. A collection with no schema takes any object.
Agents
Agents read a mod’s data with mod_read: with only the mod’s id it gives the mod’s collections, their schemas and how many documents each holds, and with a collection or an id it gives the documents. They change it with mod_write, a list of writes made all together or not at all, each checked against the schema as the page’s are.
When an agent changed a mod’s data last, the mod’s tab says so above the page, as “Changed by @Ada · 3 documents · 2m ago”. Undo takes back everything that mod_write changed at once; × hides the bar until an agent changes the mod again.
A page asks for work by writing a document, not by messaging an agent. An agent can set a trigger on a collection, such as posts/drafts, maybe only for documents whose fields hold given values, such as status set to requested. When you, the page or another agent add or change such a document, the agent is woken with which documents changed and who changed each, and reads them with mod_read; its own writes never wake it. Changes that come close together arrive as one prompt. Given to the project instead, the trigger adds a task to its board. Removing the mod removes its triggers.