Skip to Content
@brain-core

brain-core

The URI-native filesystem, scoped sources, and vector memory.

Maturity: stable (90 %)

Brain core. One URI-addressed filesystem over every project source, kept searchable in a scoped vector index, with every read and write governed per path.

  • Git remote operations use HTTPS only; SSH remotes are not supported.
  • There is no clone or force-push through the governed git routes.
  • One vector collection serves every project; switching the embedding model is an explicit rebuild that temporarily doubles storage.
  • Embedding credentials are platform-wide; members cannot bring their own embedding key.

How maturity is measured

@neuralis/brain-core is the platform's brain. It gives every project one URI-addressed view over all of its data — local directories, the vector memory, package contents, machine sandboxes — and keeps that view searchable by syncing connector content into a Qdrant-backed vector index: chunked, embedded, scoped per project, user, and agent, and governed per path by URI policies. Any system you can write a connector for joins the same virtual tree, and a synced source pays back twice — its content becomes searchable memory and its markdown becomes source packages. Agents read, write, list, and search through four fs_* tools; users browse the same data through the Files widget in the workspace.

Responsibilities

  • Read, create, modify, list, and search files across every registered source through one URI vocabulary (data://notes/todo.md, brain://insights/...).
  • Manage project-, user-, and agent-scoped sources, and host the connector registry other packages plug new source kinds into.
  • Index connector content without an embedding model; add optional semantic vectors and keep the index healthy (orphan repair, garbage collection, duplicates report).
  • Serve the governed git/* routes over git-backed sources — status, diff, history, staging, commit, branch, and fetch / pull / push to a connected remote — under the same per-path URI policy as every other read and write, with a server-side rescue point recorded before a destructive operation wherever a revert baseline can be taken (a file the caller cannot resolve to one is removed raw, and the tool says so).
  • Render the workspace Files widget and the filesystem-change card that appears in chat after every fs_write call.

Folder map

The pages in this section mirror what brain-core's manifest and package folders ship:

Package elementDoc pageCross-reference
tools/ (the four fs_* tools)Toolspackage-system tools
skills/ (9 skills, incl. the create-package authoring router)Skillspackage-system skills
connector kinds (host, brain) and the URI vocabularyConnectorspackage-system connectors
declared sources, sync and indexingSourcespackage-system sources
uriPolicies baselinesURI policiespackage-system URI policies
workflows/ (one template)Workflowspackage-system workflows
src/routes/ (the HTTP surface)Routespackage-system routes
app/ (Files widget, dock, change card)App surfacespackage-system App surfaces
events (notification inbox)Eventspackage-system events
configSettingsConfig settingspackage-system config settings
credentials (embedding keys)Credentialspackage-system credentials

Features provided

brain-core declares its permission vocabulary in the manifest; roles receive defaults that admins can change per project (see roles and features).

FeatureGrantsDefault roles
files.readRead, list and search filesviewer and above
files.writeCreate, modify, upload, approvemanager and above
sources.manageCreate, update, delete and sync sources; browse and discover roots to attachmanager and above
sources.privilegedAttach, see, or browse high-blast-radius roots — the platform app zone, the Neuralis source tree, the whole hostowner, admin — grantable per role
files.readOthersRead other users' and agents' scoped sources; also lets you start a virtual desktop someone else left behind (a kept container or profile)owner, admin — grantable per role
files.writeOthersModify other users' scoped sourcesowner, admin — grantable per role
sources.policyEdit per-source URI path policiesowner, admin — grantable per role
packages.registryBe shown the package-registry skill (search / read / audit / download against the registry the operator points at)member and above
platform.vectorCollection-level vector maintenance and the embedding-model rebuild — one collection serves every projectowner only — grantable per role

The seeded owner role holds the '*' wildcard, so it holds every feature — including ones no package grants. The seeded admin role does NOT: it holds an enumerated list derived from the native manifests, so a feature that reaches admin does so because a manifest declared the grant. Most skills and other contributions shipped by brain-core carry requiredFeatures frontmatter and are hidden entirely from callers who lack the grant. The create-package authoring skill is the deliberate exception — it is ungated so any caller can read the contract, while every capability it describes stays gated at the write, the build, and the diagnostics call.

Security and scope

Every route extracts the caller's identity from the verified session — never from the request body — and rejects mismatched project ids. Source visibility is evaluated per scope: project-scoped sources are visible to all members, while user- and agent-scoped sources require ownership or an observeScoped grant. The brain:// memory source is additionally isolated per agent inside a project: semantic queries filter by the calling agent unless sibling access is explicitly requested. Per-path access on every source is governed by URI policies.

In this section

On this page