neo role-based agent ops
v0.2.15 npm ↗

Cross-agent role manager CLI

Every role getsits own launch root.

Skills, prompts, models, MCP and dependencies, assembled in one pass. neo run <agent> materializes an isolated launch root per role × agent, without writing the agent's global directory.

$ npx @compass-aiden/neo@latest init
role × agent / one root
FIG. 01 / ASSEMBLY → ROOTneo v0.2.15
DEFAULT ∪ DOMAIN ∪ ROLE default domain role claude-code codex dsh pi ONE ROOT PER ROLE × AGENT
$ neo run claude-coderoot → ~/.neo/roots/writer/claude-code
Fig. 01 — The three layers converge in one root; neo run then slices it per role × agent, without writing the agent's global directory.
19commands
4launchable agents
3isolation levels
7status checks
02

Understand first, then launch

Three diagrams: slicing, the launch chain, assembly precedence. Build the structure first, then add your first role.

FIG. 02 / SLICE

One launch = one slice

The same claude-code gets two roots under writer and coder; both run in parallel on one machine and never overwrite each other.

claude-code
codex
dsh
pi
writer
writer/claude-code
writer/codex
writer/dsh
writer/pi
coder
coder/claude-code
coder/codex
coder/dsh
coder/pi

Roots live under ~/.neo/roots/<role>/<agent>/; the writer root and the coder root of the same agent are two separate directories.

$ neo run claude-code --role writer root: …\.neo\roots\writer\claude-code
ROOT CONTENTS
skills/ default ∪ domain ∪ role native files prompt · MCP · model auth/ copied login sessions/ agent history root.json marker
A cell is not a config copy but one point of the role × agent Cartesian product; each launch converges on exactly one cell.
FIG. 03 / LAUNCH CHAIN

The five-step chain before launch

Failures stop before launch; a missing required dependency means zero disk writes.

  1. 01

    Resolve role

    --role > project > activeRole > default

  2. 02

    Model gate

    empty providers → exit 1; or --agent-models

  3. 03

    Dependency check

    command / file / env; stat only, no subprocesses

    required missing: zero disk writes
  4. 04

    Converge launch root

    skills · prompt · MCP · model · auth

  5. 05

    spawn agent

    redirect env vars; exit code passed through unchanged

The launch root appears only at step four; a failure in the first three steps never leaves a half-built root.
FIG. 04 / PRIORITY

Three-layer assembly, closest wins on name clashes

The base is installed once, domains are shared across roles, and roles keep only their differences; same-name skills resolve by role > domain > default.

defaultInherited by every role; writes must pass --role default explicitly
domainShared across roles; library/<domain>/<skill>
roleEnabled for this launch; the role wins on name clashes
writer = default ∪ domain ∪ rolesame name → role > domain > default
The three layers are not three shells but three sources of one assembly; bar length only indicates inclusion, not skill count. The isometric diagram in the hero is a perspective view of this assembly band.
03

Turn a role into a launchable unit

Not another round of skill installs, but a complete role configuration for each agent.

01

Roles, not loose skills

A skill set plus a role prompt, packaged as a unit you can enable as a whole. Switching roles means switching the entire capability set.

neo create writer
02

Isolated launches, no global directory writes

neo run materializes a separate config root per role × agent; different roles run in parallel on one machine and revert on exit.

neo run claude-code --role writer
03

Three-layer assembly, closest wins

default ∪ domain ∪ role; same-name skills resolve by role > domain > default, and the base is installed once.

neo add anthropics/skills --skill docx --role writer
04

Declare models once

Providers live in config.yaml and render into each agent's native format at launch; apiKey only accepts env:VAR, so no plaintext ever hits disk.

neo model provider add litellm --base-url … --api-key env:LITELLM_API_KEY
05

Missing pieces surface before launch

deps.yaml declares what must exist on this machine; run lists every gap in one pass, and install only prints, never executes.

neo dep check writer
06

Check up, absorb, never delete someone else's stuff

status runs seven checks; init / migrate absorb existing skills into roles, and conflicting copies go to quarantine.

neo status
04

Four agents, three isolation levels

The launchable list comes from the registry's isolate.supports, not a hard-coded marketing list.

agentIsolationRedirect leverNotes
claude-codefullCLAUDE_CONFIG_DIRFull isolation, including .claude.json; verified on Windows
dshfullDSH_HOME + DSH_AGENTS_HOMECLI web / headless / acp profiles; the GUI single-instance lock is not isolated
codexpartialCODEX_HOMEPartial isolation; still inherits ~/.agents/skills
pipartialPI_CODING_AGENT_DIR--isolated uses --no-skills plus per-skill injection
The other 7 registered agentsnone—No config-root redirect lever; only --project binding or --global mounts

Verified on Windows; macOS / Linux are covered by CI builds and unit tests, but real agent launches are not verified. See "Platform support" in the manual for the full matrix and known limits.

Next / 05

Get the first role running.

Five steps from init to run; when providers are empty, use --agent-models to get through, then come back and connect your own gateway.

Quick start → $ npx @compass-aiden/neo@latest init