The package system
One package contract for every Neuralis capability: what a package is, the four ways it reaches a host, and one page per element a manifest can declare.
Maturity: how far the subjects on this page are today, as of 2026-11-02. How maturity is measured.
| Subject | Kind | Label | Score | Main limit |
|---|---|---|---|---|
| Package system | package | stable | 85 % | Source packages are markdown only; code from a synced source runs only when an owner flags that source as a package source, and then in the WebAssembly sandbox. |
| Ecosystem import | topic | stable | 85 % | Imported content is markdown only: hooks and MCP server definitions in a foreign layout are not loaded. |
| MCP | topic | stable | 85 % | Keep the MCP port private unless remote MCP clients are intended. |
| Marketplace | topic | preview | 70 % | The marketplace is not publicly hosted; it runs as a local deployment only. |
Neuralis is built around one architectural rule: every capability is a package. The host stays generic — identity, project boundaries, the workspace shell, package routing, configuration and deployment plumbing. Everything the product does — agents, filesystem, memory, terminal, admin, machine automation, tools, skills, connectors, hooks, policies, UI — arrives as a package the host discovers, validates and loads at bootstrap. Neuralis builds its own product with the same contract an outside developer uses.
Treat this contract as a protocol, not an internal plugin format: one
manifest (package.json#neuralis, read as a typed PackageDefinition), a
contribution contract per kind of file, discovery and lifecycle rules, and the
host's obligations — identity, project boundaries, trust assignment, access
checks — every package can rely on. It is aligned with what the AI ecosystem
already produces, in both directions (compatibility). It is not a standards-body specification: it has
one implementation, and no conformance suite certifies others.
The contract is file-first: a package declares its contributions through files and manifest entries, never by registering code against the host. Tool schemas are JSON, skills and rules are markdown, routes and tool handlers are discovered from compiled modules by convention.
Vocabulary
| Term | What it means |
|---|---|
| Native package | Installed into the host by an administrator. Trust tier native: in-process Node or MCP runtimes, config settings, events, provided services, prebuilt UI modules. |
| Core package | A native package Neuralis ships. A description, not a trust tier: an outside author's native package gets the same integration and gates. |
| Project package | Dropped into a project's _packages/ folder or found in a source's package folder. Its code runs only in the WebAssembly sandbox. |
| Source package | Markdown contributions — skills, rules, agents, instructions, docs — discovered in any synced source, with no install step and no code. |
| Trust | native, trusted or untrusted, assigned by the host from how the package arrived — never by what the manifest says about itself. |
| Runtime | How a package's code runs: node (native only), mcp (a subprocess speaking MCP, native only) or wasm (the sandbox). A separate axis from trust. |
| Element | One kind of thing a package adds — a tool, skill, route, widget, workflow — each with its own page below. |
Four ways a package reaches the platform
| Native package | Project drop | Package folder on a source | Source package | |
|---|---|---|---|---|
| How it arrives | an administrator's host dependency, or neuralis package install approved by a platform.packages.approve holder | a folder in a project's _packages/ | a folder an owner or admin lists in a host source's packageFolders, on the server or a paired device | any synced source with contribution files (.claude/, .cursor/, skills/, …) |
| When it applies | at the next host restart | rescanned in about half a second | rescanned like _packages/ | at the next sync |
| Code | in-process Node or MCP | WebAssembly sandbox only | WebAssembly sandbox only; on a device, read over the device link and loaded from memory | none |
| Trust | native, from the install | untrusted (an owner may raise it to trusted) | untrusted | no code to trust |
| Who sees it | everyone the package's own gates allow | the project | the source's scope: a user- or agent-scoped source reaches that user or agent alone | the source's scope and path policies, per file |
| May shadow a core package id | — | never | never | never — a colliding skill id is namespaced |
Only the first column runs code in the host process, so only it needs an
administrator's approval: it arrives verified (integrity, an optional operator
allow-list, npm provenance shown in the request) and does nothing until
approved and the host restarts. Trust is assigned by source, not by
self-declaration: a project drop can never claim native or the in-process
node runtime. Declarative-only packages (tool schemas and markdown) are safe
at any tier. Trust then shapes dispatch timeouts and rate limits
(lifecycle), filesystem and network permissions
(manifest), the allowed UI renderers, and whether
bundled skill scripts may run on the host shell.
More: building a native package outside the monorepo, source packages, and the WebAssembly sandbox.
The elements a package can declare
The neuralis block sits beside the ordinary npm fields (name, version,
bin, files, exports keep their npm meaning). Each element is a
PackageDefinition field (routes: a file convention) with one page:
| Element | Manifest key | What it adds |
|---|---|---|
| Manifest | identity fields, runtime, access, provides, meta, dataLayout, optional, source | Who the package is, how it runs and what trust it gets |
| Features | requires | Feature ids, default role grants, a whole-package access feature |
| URI policies | uriPolicies, policies | Path protection for the package's own namespace |
| Tools | tools | Strict JSON-Schema tools the model calls, in-stream and over MCP |
| Skills | skills | agentskills.io SKILL.md bundles with scripts and references |
| Instructions | instructions | Guidance markdown injected into the system prompt |
| Rules | rules | Always-on constraints at the top of the system prompt |
| Agents | agents | Spawnable delegate personas |
| Docs | docs | Reference markdown the agent reads on demand |
| Workflows | workflows | Scheduled and triggered job templates (structured JSON, never prompt text) |
| Team | team | Ready-made agent characters with identity files |
| Connectors | connectors | New source kinds and external service bindings |
| Sources | sources | Concrete source instances seeded into projects or offered for add |
| Events | events | Moments a person should be notified about |
| Credentials | credentials | The secret ids the package needs, as catalog rows |
| Config settings | configSettings | The platform tunables the package owns |
| App surfaces | app | Widgets, dock entries, chat cards and a native UI module |
| Routes | routes/*.ts files | Feature-gated HTTP handlers under /api/packages/<id>/... |
| Commands | commands | Prompt commands for external MCP clients |
| Resources | resources | MCP resource entries for external clients |
| Hooks | hooks | Declarative lifecycle hooks |
Routes, realtime channels and the lifecycle module are discovered from files, not manifest arrays (directory contract). Every element is scoped by the caller's real identity: enable state, role and feature grants and project membership are evaluated deny-by-default before anything is advertised to a model or a user. The runtime side (sessions, lifecycle, runtime stack) and the authoring guides (create a package, testing, contract examples, marketplace) complete the section.
The minimal opt-in is an empty block:
{
"name": "@example/workspace-tools",
"version": "1.0.0",
"files": ["dist", "skills"],
"neuralis": {}
}"neuralis": {} makes the package recognisable and adds nothing by itself; its
shipped contributions are what it adds. Any npm scope works, not only @neuralis.
Native packages
Neuralis ships its core as native @neuralis packages — the anatomy of the AI
workforce: agent-core the nervous system, brain-core the memory,
machine-core the hands and eyes, admin the management. They run
in-process and reach each other through typed APIs (getPackageApi()), yet
speak the same contract as any package — nothing is hardcoded into the host.
Native is the trust tier; a native install (the host without Docker) is a
different thing, and packages of every tier run on either.
| Package | What it provides |
|---|---|
| @agent-core | The agent runtime: the LLM loop, model providers, conversations and streams, tool execution, the skill protocol, MCP client and server, package loading, workflows, the chat UI and the terminal. |
| @brain-core | The URI filesystem: scoped sources, the connector registry, vector memory and sync, the fs_* tools and the Files widget. |
| @admin | Administration: dashboard and health, users and projects, platform configuration, the credential store UI, audit views and management skills. |
| @machine-core | A persistent virtual desktop per user with browser automation, in-container shell execution, capture, and a machine source listed under its own slug (for example machine-ops://). |
The contract library @neuralis/package-system underpins all of them; it has
no product surface, so this whole section documents it.
Compatibility
Other ecosystems
Neuralis accepts the parts of other formats it can gate, and names what it does not run:
| Format | Accepted today | Not accepted |
|---|---|---|
Agent Skills (SKILL.md) | skills load unchanged from any source or package | per-skill arguments and model preferences are read but not applied |
| Claude Code, Cursor, Codex, Gemini, Copilot layouts | skills, rules, agents and instruction files in their known folders | hooks and MCP server definitions in those layouts; glob-scoped rules (rules are always on) |
AGENTS.md, CLAUDE.md, GEMINI.md | identity and instruction files | — |
| MCP | agents use external MCP servers; outside clients reach an agent's gated tools; MCP Apps and ChatGPT Apps render as chat cards | MCP Apps are a separate path from a package's own widgets and cards |
| npm | distribution, versions and bin entry points of native packages | an npm package without a neuralis block is not loaded |
| Command-line programs on a device | an agent can ask which programs a device has, read as metadata only, inside its folder grant | nothing is run or installed to find out |
Each row's maturity against its promise: maturity.
From other clients
Any MCP client reaches the hosted MCP server under
its caller's grants, also through the neuralis mcp
stdio bridge, which Claude Code and Codex install as a
marketplace plugin.
neuralis plugin export writes an
agent's skills as a Claude Code, Codex or Cursor plugin or a plain skill tree;
neuralis launch
starts Claude Code or Codex with them and the agent's tools.
Use cases
Seven AI agent playbooks for teams — a solo operator, marketing, a content studio, commerce, a research desk, software, and connecting any capability — each built from shipped parts.
Manifest
The neuralis block in package.json: identity, runtime, trust, provided services, host targeting, data layout and distribution.