Skip to Content
@package-system

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.

SubjectKindLabelScoreMain limit
Package systempackagestable85 %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 importtopicstable85 %Imported content is markdown only: hooks and MCP server definitions in a foreign layout are not loaded.
MCPtopicstable85 %Keep the MCP port private unless remote MCP clients are intended.
Marketplacetopicpreview70 %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

TermWhat it means
Native packageInstalled into the host by an administrator. Trust tier native: in-process Node or MCP runtimes, config settings, events, provided services, prebuilt UI modules.
Core packageA native package Neuralis ships. A description, not a trust tier: an outside author's native package gets the same integration and gates.
Project packageDropped into a project's _packages/ folder or found in a source's package folder. Its code runs only in the WebAssembly sandbox.
Source packageMarkdown contributions — skills, rules, agents, instructions, docs — discovered in any synced source, with no install step and no code.
Trustnative, trusted or untrusted, assigned by the host from how the package arrived — never by what the manifest says about itself.
RuntimeHow a package's code runs: node (native only), mcp (a subprocess speaking MCP, native only) or wasm (the sandbox). A separate axis from trust.
ElementOne 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 packageProject dropPackage folder on a sourceSource package
How it arrivesan administrator's host dependency, or neuralis package install approved by a platform.packages.approve holdera 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 deviceany synced source with contribution files (.claude/, .cursor/, skills/, …)
When it appliesat the next host restartrescanned in about half a secondrescanned like _packages/at the next sync
Codein-process Node or MCPWebAssembly sandbox onlyWebAssembly sandbox only; on a device, read over the device link and loaded from memorynone
Trustnative, from the installuntrusted (an owner may raise it to trusted)untrustedno code to trust
Who sees iteveryone the package's own gates allowthe projectthe source's scope: a user- or agent-scoped source reaches that user or agent alonethe source's scope and path policies, per file
May shadow a core package id—nevernevernever — 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:

ElementManifest keyWhat it adds
Manifestidentity fields, runtime, access, provides, meta, dataLayout, optional, sourceWho the package is, how it runs and what trust it gets
FeaturesrequiresFeature ids, default role grants, a whole-package access feature
URI policiesuriPolicies, policiesPath protection for the package's own namespace
ToolstoolsStrict JSON-Schema tools the model calls, in-stream and over MCP
Skillsskillsagentskills.io SKILL.md bundles with scripts and references
InstructionsinstructionsGuidance markdown injected into the system prompt
RulesrulesAlways-on constraints at the top of the system prompt
AgentsagentsSpawnable delegate personas
DocsdocsReference markdown the agent reads on demand
WorkflowsworkflowsScheduled and triggered job templates (structured JSON, never prompt text)
TeamteamReady-made agent characters with identity files
ConnectorsconnectorsNew source kinds and external service bindings
SourcessourcesConcrete source instances seeded into projects or offered for add
EventseventsMoments a person should be notified about
CredentialscredentialsThe secret ids the package needs, as catalog rows
Config settingsconfigSettingsThe platform tunables the package owns
App surfacesappWidgets, dock entries, chat cards and a native UI module
Routesroutes/*.ts filesFeature-gated HTTP handlers under /api/packages/<id>/...
CommandscommandsPrompt commands for external MCP clients
ResourcesresourcesMCP resource entries for external clients
HookshooksDeclarative 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.

PackageWhat it provides
@agent-coreThe 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-coreThe URI filesystem: scoped sources, the connector registry, vector memory and sync, the fs_* tools and the Files widget.
@adminAdministration: dashboard and health, users and projects, platform configuration, the credential store UI, audit views and management skills.
@machine-coreA 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:

FormatAccepted todayNot accepted
Agent Skills (SKILL.md)skills load unchanged from any source or packageper-skill arguments and model preferences are read but not applied
Claude Code, Cursor, Codex, Gemini, Copilot layoutsskills, rules, agents and instruction files in their known foldershooks and MCP server definitions in those layouts; glob-scoped rules (rules are always on)
AGENTS.md, CLAUDE.md, GEMINI.mdidentity and instruction files—
MCPagents use external MCP servers; outside clients reach an agent's gated tools; MCP Apps and ChatGPT Apps render as chat cardsMCP Apps are a separate path from a package's own widgets and cards
npmdistribution, versions and bin entry points of native packagesan npm package without a neuralis block is not loaded
Command-line programs on a devicean agent can ask which programs a device has, read as metadata only, inside its folder grantnothing 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.

On this page