Skip to Content
@agent-core

agent-core

@neuralis/agent-core — the agent runtime: one stream for chat, subagents and workflows, its tools, skills and agents, and the package loader every other package flows through.

Maturity: beta (80 %)

Agent core. One durable agent stream across many model providers, with a sandboxed execute shell, Agent Skills, delegation, approvals, MCP in both directions, workflows, channels, a terminal and limits on every run.

  • Confined shells need a Linux host kernel with Landlock support; without it, lower-trust shells are refused rather than run unconfined.
  • Workflows and channels run in a single process; a second replica would run every schedule twice.
  • Subscription model usage is not metered in money, so money spend caps do not bind it.
  • Container terminal sessions end when the app restarts.

How maturity is measured

@neuralis/agent-core is the runtime kernel of Neuralis. It owns the agentic loop end to end — model providers, conversation assembly and persistence, tool execution, policy and hook evaluation, and live delivery to the chat — and it is the package that loads every other package. The package loader, the contribution host and the generic MCP server all live here, so every capability any package declares reaches the model through agent-core, whichever path the package arrived by. That makes it the package protocol's first provider and its universal consumer at once.

One stream serves three consumers: interactive chat, subagents and scheduled workflows run the same loop, with the same billing, gating, quotas and persistence. agent-core does not own filesystem indexing (brain-core), admin surfaces (admin) or virtual desktops (machine-core).

What agent-core ships

ElementWhat it shipsPage
tools9 tools: execute, delegate, workflow, web_search, web_fetch, ask_question, connect, todos, compact_historyTools
skills17 skill bundles — management, execution patterns, research, inspection, learningSkills
agents7 base subagents: explore, research, planner, execute, validate, operate, generalAgents
instructionsneuralis-kernel — always injected (below)this page
rulestool-use — always injected (below)this page
workflows3 templates: Daily digest, Channel assistant, LearningWorkflows
team1 member: adminTeam
routesthe conversation, agent, stream, MCP, workflow, channel, credential, device and terminal routesRoutes
app.surfacesChat, Calendar and Terminal widgets; Calendar and Terminal docksApp surfaces
events8 workflow and device eventsEvents
credentials21 declared ids — model providers, web search, git and WhatsApp OAuth appsCredentials
configSettings195 platform settingsConfig settings
channelsmessaging channels (Telegram, WhatsApp) that fire workflows; realtime channels conversation, devices, presence, workflowChannels (guide), Events
providersthe model catalog and provider adaptersProviders and models (guide)

Instructions and rules

Two always-on markdown files are injected into every turn's system prompt, at the one injection boundary where they inherit the package's enable state and the caller's feature scope — a disabled package's files are never injected. An injected file arrives without its frontmatter. They are the always-on baseline; procedures live in skills, which load on demand, and every visible tool's description and schema is sent on every step.

FileWhat it carries
instructions/neuralis-kernel.mdThe platform model — every capability is a package; how to read the system prompt in order; that tools come from packages and the filesystem is the universal substrate; how to find and chain skills; how to keep working state (the durable goal, loop and todos in the <session> block, which survive compaction and restart) and where durable memory lives; and the operating directives: act before asking, read before editing, edit the real file, keep one plan and finish it, verify before claiming done, never revert changes you did not make, lead with the result.
rules/tool-use.mdThe baseline for calling tools: schema-valid input and no printed tool markup; errors and approval pauses handled correctly; the discipline for the execute shell when it is granted; and caution before irreversible or outward-facing actions — never a destructive shortcut to skip a check.

Each agent holds every package in one of three states: on, off or excluded. An off package stays listed in the agent's package overview as off, so the agent knows it exists, while its tools, injected files, skills, prompt hooks, commands and resources are withheld from the agent. An excluded package is withheld the same way and is also left out of that overview. Guard and audit hooks keep running in both states. The package listing routes mark an excluded package with excluded: true.

Durable memory comes at two scopes, both written through the filesystem tools so the content is indexed for recall: project-central memory, which every member's agents can read and only owners and admins write, and per-agent memory, private to that agent (owners and admins can read it for oversight). Business data such as analytics or CRM is connected as a brain source, not pasted into memory.

Every agent is private to its creator until a user is attached to it in Admin → Agents; an attached user shares the agent's memory, identity, workflows, plans and logs, and every run carries the rights of the user who started it (Agent data and conversations).

Provided features

The manifest declares the feature vocabulary other layers gate on (see features). "Admin tier" below means: no grant below admin — admin holds it through its enumerated default grant, owner through the '*' wildcard — and grantable to any custom role.

FeatureWhat it grants
core.agentsView and manage agents; list devices.
core.executeStart agent streams and use the chat loop, conversations, interactions and the execute tool; polish composer drafts with a one-shot rewrite; branch a continuable fork of a conversation you may continue. A packaged skill's shell scripts need server.shell beside it.
server.shellThe agent's shell and the Terminal panel on the server — the app container, or the server's own machine without Docker. Granted wherever core.execute is. A door, not a bypass: the source's path policy still decides where a command or a tab may start. A terminal tab on a paired computer also needs device.own or device.others.
server.unconfinedRun the agent's shell and open the Container Root terminal tab on the server without the path policy and OS sandbox (admin tier). It grants nothing on a paired computer or a remote source.
device.othersRun execute and open terminal tabs on a paired computer you do not own, only while it runs sandboxed, and see the folder paths of other members' computers (admin tier). Not enough without a paired, online computer.
device.ownPair your own computer, attach folders on it, and run commands and terminal tabs there — on your own computer only. Member, manager and admin by default.
core.observeRead-only introspection: usage, logs view, tool/file catalogs, package overview, MCP servers, connectors, models.
core.webThe web_search / web_fetch tools. Storing a fetched page also needs files.write.
project.auditRead an agent's run log (admin tier). The platform-global logs need platform.audit.
core.connectorsCreate, configure, connect and delete a project's connectors (admin tier).
terminal.superviseList, attach to, take over and terminate every managed terminal in the project (admin tier); sessions on a paired computer also need device.others.
workflow.read / .write / .dispatchView; create, edit, pause and archive; run now and cancel.
channels.connect / channels.manageConnect your own Telegram/WhatsApp accounts; manage project-scope connections and link peers to other users (owner/admin).
mcp.connectConnect your own external MCP servers and store their tokens in your user scope; with device.own, run a stdio server on your own paired device.
mcp.sidecarActivate stdio MCP servers in a managed sidecar container (admin tier).
mcp.appsRender MCP Apps (ui:// HTML) as chat cards (admin tier).
git.connectConnect your own git remotes.
credentials.selfSet, remove and list your own credentials.

Default grants. Managers and members get agents, execute, observe, web, prompt-polish, server.shell, channels.connect, mcp.connect, git.connect, credentials.self and workflow read/write (managers also workflow.dispatch); viewers get agents, observe and workflow.read. The seeded owner holds '*'. The seeded admin holds an enumerated list declared by this manifest: everything above, including the admin-tier features no weaker role receives.

Feature ids name the plane a shell opens on — server.shell, device.others, and whatever id an exec-capable source declares (the virtual desktop's is machine.control); the terminal ids follow the same words. *.unconfined means "unrestricted on the local plane" and never reaches a device; a device's owner uses it through device.own, and its own confinement is the boundary.

Cross-package position

  • The package loader discovers each package's directory contract at bootstrap.
  • The contribution host aggregates hosted tools, prompts and resources and routes calls back to the owning package.
  • The stream is the single injection boundary: contributions are filtered by package enable state and the caller's features before anything reaches the prompt, and again at the external MCP boundary.
  • Other packages call agent-core in-process through typed APIs (lifecycle), never over internal MCP; agent-core reaches brain-core's filesystem the same way. Its per-agent usage/** folder is declared as machine-written metrics, so new data sources exclude it by default.

Consuming external MCP servers

Neuralis is also a spec-compliant MCP client: agents connect out to external servers, with OAuth in your own scope, secret header slots, and stdio servers in a managed sidecar or on your own paired device — see MCP servers. A server tool that declares a ui:// template renders as an interactive MCP App card. Over its own generic MCP server, agent-core exposes a selected tool set to external clients — see MCP access.

Folder map

The pages in this section mirror agent-core's package folders:

Package folderDoc pageCross-reference
tools/ (9 JSON schemas)Toolspackage-system tools
skills/ (17 bundles)Skillspackage-system skills
agents/ (7 base subagents)Agentspackage-system agents
instructions/, rules/this pageinstructions, rules
workflows/ (3 templates)Workflowspackage-system workflows
team/ (1 member)Teampackage-system team
src/routes/, connectors/, src/git/Routes, Credentialspackage-system routes
app/ (chat, calendar, terminal)App surfacespackage-system App surfaces
src/channels/Channels, Eventspackage-system events
providers/Providers and models—

In this section

On this page