# The package system (https://docs.neuralisapp.com/package-system)

Maturity: how far the subjects on this page are today, as of 2026-11-02. [How maturity is measured](https://docs.neuralisapp.com/getting-started/maturity.md).

| 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](#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 [#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 [#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](https://docs.neuralisapp.com/package-system/lifecycle.md)), filesystem and network permissions
([manifest](https://docs.neuralisapp.com/package-system/manifest.md)), the allowed UI renderers, and whether
bundled skill scripts may run on the host shell.

More: [building a native package outside the monorepo](https://docs.neuralisapp.com/package-system/external-native.md),
[source packages](https://docs.neuralisapp.com/package-system/source-packages.md), and the
[WebAssembly sandbox](https://docs.neuralisapp.com/package-system/wasm-build.md).

## The elements a package can declare [#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](https://docs.neuralisapp.com/package-system/manifest.md) | identity fields, `runtime`, `access`, `provides`, `meta`, `dataLayout`, `optional`, `source` | Who the package is, how it runs and what trust it gets |
| [Features](https://docs.neuralisapp.com/package-system/features.md) | `requires` | Feature ids, default role grants, a whole-package access feature |
| [URI policies](https://docs.neuralisapp.com/package-system/uri-policies.md) | `uriPolicies`, `policies` | Path protection for the package's own namespace |
| [Tools](https://docs.neuralisapp.com/package-system/tools.md) | `tools` | Strict JSON-Schema tools the model calls, in-stream and over MCP |
| [Skills](https://docs.neuralisapp.com/package-system/skills.md) | `skills` | `agentskills.io` `SKILL.md` bundles with scripts and references |
| [Instructions](https://docs.neuralisapp.com/package-system/instructions.md) | `instructions` | Guidance markdown injected into the system prompt |
| [Rules](https://docs.neuralisapp.com/package-system/rules.md) | `rules` | Always-on constraints at the top of the system prompt |
| [Agents](https://docs.neuralisapp.com/package-system/agents.md) | `agents` | Spawnable delegate personas |
| [Docs](https://docs.neuralisapp.com/package-system/docs.md) | `docs` | Reference markdown the agent reads on demand |
| [Workflows](https://docs.neuralisapp.com/package-system/workflows.md) | `workflows` | Scheduled and triggered job templates (structured JSON, never prompt text) |
| [Team](https://docs.neuralisapp.com/package-system/team.md) | `team` | Ready-made agent characters with identity files |
| [Connectors](https://docs.neuralisapp.com/package-system/connectors.md) | `connectors` | New source kinds and external service bindings |
| [Sources](https://docs.neuralisapp.com/package-system/sources.md) | `sources` | Concrete source instances seeded into projects or offered for add |
| [Events](https://docs.neuralisapp.com/package-system/events.md) | `events` | Moments a person should be notified about |
| [Credentials](https://docs.neuralisapp.com/package-system/credentials.md) | `credentials` | The secret ids the package needs, as catalog rows |
| [Config settings](https://docs.neuralisapp.com/package-system/config-settings.md) | `configSettings` | The platform tunables the package owns |
| [App surfaces](https://docs.neuralisapp.com/package-system/app-surfaces.md) | `app` | Widgets, dock entries, chat cards and a native UI module |
| [Routes](https://docs.neuralisapp.com/package-system/routes.md) | `routes/*.ts` files | Feature-gated HTTP handlers under `/api/packages/<id>/...` |
| [Commands](https://docs.neuralisapp.com/package-system/commands.md) | `commands` | Prompt commands for external MCP clients |
| [Resources](https://docs.neuralisapp.com/package-system/resources.md) | `resources` | MCP resource entries for external clients |
| [Hooks](https://docs.neuralisapp.com/package-system/hooks.md) | `hooks` | Declarative lifecycle hooks |

Routes, realtime channels and the lifecycle module are discovered from files,
not manifest arrays ([directory contract](https://docs.neuralisapp.com/package-system/directory-contract.md)).
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](https://docs.neuralisapp.com/package-system/sessions.md), [lifecycle](https://docs.neuralisapp.com/package-system/lifecycle.md),
[runtime stack](https://docs.neuralisapp.com/package-system/runtime-stack.md)) and the authoring guides
([create a package](https://docs.neuralisapp.com/package-system/create-a-package.md), [testing](https://docs.neuralisapp.com/package-system/testing.md),
[contract examples](https://docs.neuralisapp.com/package-system/reference-package.md),
[marketplace](https://docs.neuralisapp.com/package-system/marketplace.md)) complete the section.

The minimal opt-in is an empty block:

```json
{
  "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 [#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](https://docs.neuralisapp.com/agent-core.md) | 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](https://docs.neuralisapp.com/agent-core/app-surfaces.md#terminal). |
| [@brain-core](https://docs.neuralisapp.com/brain-core.md) | The URI filesystem: scoped sources, the connector registry, vector memory and sync, the `fs_*` tools and the Files widget. |
| [@admin](https://docs.neuralisapp.com/admin.md) | Administration: dashboard and health, users and projects, platform configuration, the credential store UI, audit views and management skills. |
| [@machine-core](https://docs.neuralisapp.com/machine-core.md) | 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 [#compatibility]

### Other ecosystems [#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](https://docs.neuralisapp.com/package-system/skills.md) (`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](https://docs.neuralisapp.com/package-system/source-packages.md#what-is-recognized) | 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](https://docs.neuralisapp.com/agent-core.md#consuming-external-mcp-servers) | 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](https://docs.neuralisapp.com/getting-started/maturity.md).

### From other clients [#from-other-clients]

Any MCP client reaches the [hosted MCP server](https://docs.neuralisapp.com/enterprise/mcp-access.md) under
its caller's grants, also through the [`neuralis mcp`](https://docs.neuralisapp.com/getting-started/cli.md#tools-over-mcp)
stdio bridge, which Claude Code and Codex install as a
[marketplace plugin](https://docs.neuralisapp.com/getting-started/cli.md#from-a-clients-plugin-marketplace).
[`neuralis plugin export`](https://docs.neuralisapp.com/getting-started/cli.md#export-a-plugin) writes an
agent's skills as a Claude Code, Codex or Cursor plugin or a plain skill tree;
[`neuralis launch`](https://docs.neuralisapp.com/getting-started/cli.md#start-claude-code-or-codex-with-your-agent)
starts Claude Code or Codex with them and the agent's tools.