/flow-skills:agents-managementfrom flow-skills
Create, read, update, delete, clone, and reset entries in the Fused App agent roster (~/.openfused/app/agents/). Use when managing the Fused agent roster.
Ships in flow-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
The App agent roster exposed as live UDFs. These UDFs are the sole owner
of the file tree ~/.openfused/app/agents/: they own this local roster store,
and an agent drives them over the local execution layer started with
fused dev serve.
Six UDFs over the global roster directory: one read (read — list/get personas)
and five writes (create, update, delete, clone, reset). The managed
entity is the persistent persona — slug, name, title, role, description,
adapter, model, prompt, a reasoning-effort level (a required, non-null enum
low|medium|high|xhigh|max, default high — unlike model, it is never null),
and a builtin provenance flag. Live runs, sessions, and
per-agent cost stats are out of scope (those live in the app's state.json,
covered by the task-management project).
The split is: read via SQL (any query over {{read}}, via the /api/exec/sql
endpoint), write via UDF (any mutation, via the /api/exec/udf endpoint).
Both endpoints are addressed with ?t=<token>&workspace=_core&project=agents-management
— see the access pattern below.
Live reads — never cached. The
readUDF is pinnedcache_max_age = "0s"inopenfused.toml, so every query reflects the current roster rather than a memoized snapshot. Do not override this to a non-zero value — a cached read would serve a stale roster.
Start the local execution layer. fused dev serve binds a loopback server,
prints ONE JSON handshake line, then runs in the foreground:
fused dev serve
{"origin": "http://127.0.0.1:<port>", "port": <port>, "token": "<token>", "pid": <pid>}
# Export the origin + token from that handshake line:
ORIGIN=http://127.0.0.1:<port>
TOKEN=<token>
# Read — POST to the SQL endpoint; {{read}} is backed by the read UDF
curl -s -X POST "$ORIGIN/api/exec/sql?t=$TOKEN&workspace=_core&project=agents-management" \
-d '{"sql": "SELECT slug, name, role, builtin FROM {{read}}"}'
# Write — POST to the UDF endpoint
curl -s -X POST "$ORIGIN/api/exec/udf?t=$TOKEN&workspace=_core&project=agents-management" \
-d '{"udf": "create", "overrides": {"name": "Geo Wizard", "title": "Geospatial Engineer", "role": "engineer", "description": "...", "prompt": "..."}}'
Response shape: {"data": <result>, "error": null} on success;
{"data": null, "error": "<message>"} on failure.
The app directory is resolved per operation, highest precedence first:
app_dir parameter on any operation (e.g. read(app_dir="/path/to/app")) — use this to run the skill standalone against your own store, no environment setup required.$OPENFUSED_APP_DIR_STATE env var when it names an app directory.~/.openfused/app (default).<app_dir>/ # app_dir param, else $OPENFUSED_APP_DIR_STATE, else ~/.openfused/app
├── agents/
│ ├── <slug>/AGENTS.md # --- YAML frontmatter --- + prompt body
│ └── .openfused.yaml # schema: fused/v1; per-slug adapter/model/builtin
└── agents-seed-ledger.json # {"slugs":[...]} — keeps a deleted default deleted
Every operation also accepts an optional seed_file string param: the source of
the default roster seeded on first touch (precedence over $OPENFUSED_AGENTS_SEED_FILE).
When omitted, the built-in five personas in scripts/seed_agents.json are seeded as
today — so existing callers are unaffected. A standalone caller can supply its own
roster JSON (a list of {slug,name,title,role,description, adapter?,model?,prompt?})
via seed_file.
AGENTS.md is the portable agentcompanies/v1 base: frontmatter
schema/name/title/slug/role/description, body = the prompt..openfused.yaml is the Fused vendor sidecar: it carries adapter, model,
and builtin per slug, and is written only for a persona with non-default
fidelity (non-default adapter, a non-null model, or builtin: true). A custom
persona on the adapter default needs no sidecar entry.agent_<sha256(slug)[:12]> — the file
carries no id. createdAt is the AGENTS.md file mtime.These UDFs are the canonical implementation of the on-disk format + the
CRUD/seed semantics; the app's /api/agents* routes now delegate to these
UDFs over its shared dev serve. Last-write-wins is accepted (no in-UDF locking);
the app serializes its own roster writes with a process-side mutex, so the only
residual clobber window is between two concurrent UDF callers.
Five defaults ship in scripts/seed_agents.json — the sole source of truth
for the default personas: architect, project-manager, data-engineer,
data-analyst, data-qa. Every UDF seeds the roster first (idempotent, additive),
exactly like the app's former seedDefaultRoster:
builtin: true.reset restores a default to its seed — and re-creates it if it was deleted
(addressed by slug). Resetting a custom persona is an error.All parameters arrive as strings; empty string is the zero value. A missing
persona returns {"ok": false, "error": "not found"}.
read(slug: str = "") -> list[dict]
Returns persona records (slug-sorted). slug filters to one persona by slug or
derived id; empty returns all. SQL shorthand: SELECT * FROM {{read}}.
create(name, title, role, description, prompt, # all required (non-empty)
model="", effort="", adapter="", slug="") -> dict
Mints a builtin: false persona. slug defaults to deriveSlug(name); model
empty → null; effort empty (or unknown) → high; adapter empty → claude_code.
Rejects an empty required field or a slug collision.
update(id, name="", title="", role="", description="", prompt="",
adapter="", model="", effort="") -> dict
Patches the resolved persona (by slug or id). Empty string = leave unchanged
for every field (an intentional divergence from the app, which rejects an
explicitly-empty required field). Clearing model to null is not expressible —
use reset/clone.
delete(id="") -> dict
Removes agents/<slug>/ + the sidecar entry. Leaves the seed ledger untouched, so
a deleted default does not reappear. Returns {"deleted": true}.
clone(id="", name="") -> dict
Creates a builtin: false copy of any persona under a new name (slug derived from
it) — the edit path for a built-in. Preserves the source's effort level (and
model/adapter) on the copy, rather than resetting to the default.
reset(id="") -> dict
Restores a default to its seed_agents.json seed (builtin: true); re-creates a
deleted default by slug. Rejects a custom persona.
sql-table widgetThe read UDF is enough to render the roster as a table — no app agent store,
no other UI. A saved sql-table widget reads through {{_core.agents-management.read}},
so a single JSON-UI node gives you a sortable / filterable grid over the live
roster.
The config ships inside the wheel as a saved widget of this project, at
agents-management/widgets/agents_table.json. It materializes alongside the UDFs
to ~/.openfused/core/agents-management/widgets/agents_table.json, so it is
available on first run with no authoring step — open it with:
fused widget open ~/.openfused/core/agents-management/widgets/agents_table.json
The shipped config:
{
"type": "sql-table",
"props": {
"title": "Agent roster",
"sql": "SELECT slug, name, title, role, adapter, model, builtin FROM {{_core.agents-management.read}} ORDER BY slug",
"sortable": true,
"filterable": true
}
}
The projection drops the bulky prompt/description columns for readability;
widen or filter the SELECT to taste (SELECT * returns every persona field).
This is a read-only view — the roster's writes (create/update/delete/
clone/reset) have no widget seam, so mutate through the UDF endpoint directly.
Where it resolves. The
{{_core.*}}cross-project ref needs an_coreresolve context, which today means the flow app's dev serve (fused dev serve). The deployed-serve bundle has no_coreresolve context, so a public URL is not supported for this widget.
scripts/
├── pyproject.toml # duckdb/pandas/pyarrow (SQL resolver) + pyyaml (roster format)
├── seed_agents.json # the 5 default personas — read at runtime via the venv anchor
├── read/ {main.py, spec.md}
├── create/ {main.py, spec.md}
├── update/ {main.py, spec.md}
├── delete/ {main.py, spec.md}
├── clone/ {main.py, spec.md}
└── reset/ {main.py, spec.md}
Source lives in the wheel under fused/_core/agents-management/ (read-only).
The local-backend venv materializes at
~/.openfused/core/agents-management/scripts/.venv on first startup.
openfused.* (the exec sandbox shadows the package with a
shim) — the roster format + seed logic is hand-written into each UDF, which
therefore duplicate a self-contained helper block. Only the bulky default
prompts are centralized in seed_agents.json, located at runtime via the
project venv interpreter (<scripts>/.venv/bin/python → <scripts>/seed_agents.json),
the OPENFUSED_PROJECT_ROOT env, or the OPENFUSED_AGENTS_SEED_FILE override.scripts/pyproject.toml, exactly like
duckdb. It round-trips with the app's npm yaml.tmp + os.replace).task-management.openfused.toml (opens in a new tab)scripts/clone/main.py (opens in a new tab)scripts/clone/spec.md (opens in a new tab)scripts/create/main.py (opens in a new tab)scripts/create/spec.md (opens in a new tab)scripts/delete/main.py (opens in a new tab)scripts/delete/spec.md (opens in a new tab)scripts/pyproject.toml (opens in a new tab)scripts/read/main.py (opens in a new tab)scripts/read/spec.md (opens in a new tab)scripts/reset/main.py (opens in a new tab)scripts/reset/spec.md (opens in a new tab)scripts/seed_agents.json (opens in a new tab)scripts/tests/conftest.py (opens in a new tab)scripts/tests/test_main.py (opens in a new tab)scripts/update/main.py (opens in a new tab)scripts/update/spec.md (opens in a new tab)scripts/uv.lock (opens in a new tab)widgets/agents_table.json (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
6 skills in this plugin
/artifact-chat-managementRead and write the durable per-artifact chat store (records + per-chat NDJSON transcripts) in the Fused App store. The cross-agent-visible system of record for artifact chats — the strictly read-only conversation attached to a widget / UDF / reference / project asset. Use when inspecting or persisting artifact-chat state, or — from ANY agent — to learn what users have asked about an artifact./feedback-managementRead AND write interaction cards — the typed, idempotent, resolvable HITL decisions an agent posts into a task thread — in the Fused App state store (~/.openfused/app/state.json) through live UDFs. The system of record for interaction cards. Use when working with Fused interaction cards, the inbox decision feed, or the app's feedback state./Generated from the plugin's indexed repository (fusedio/flow-skills) — no native marketplace selected
npx claudepluginhub p/fusedio-flow-skills