Skip to main content

Neurata — the living memory of your environment: deposit raw, curate quietly, retrieve at the right moment

Deposit raw, curate quietly, retrieve at the right moment.

CI

The living knowledge layer for an agent's environment (CLI, IDE, framework). Companion to Conscio, which minds the agent itself; Neurata minds the agent's world: skills, tools, docs, decisions — catalogued, curated, retrievable.

Install

pip install neurata      # or: pipx install neurata

From source, for hacking on it:

git clone https://github.com/Neguiolidas/Neurata
python3 -m venv ~/.venvs/neurata
~/.venvs/neurata/bin/pip install -e ./Neurata
ln -sf ~/.venvs/neurata/bin/neurata ~/.local/bin/neurata   # if ~/.local/bin is on PATH

Zero runtime deps. The archive lives in ~/.neurata (override with NEURATA_HOME). neu is installed alongside neurata as a typing convenience — docs always use neurata.

Use

# deposit (stdin via '-', or positional text)
echo "raw content" | neurata deposit -
neurata deposit "raw content" --title "Note"
# agent, session and project come from the environment and from the repo
# you deposit in — nothing to pass by hand

# catalogue the inbox (mechanical, reversible — nothing is destroyed)
neurata tick

# query (deterministic lexical)
neurata query "term"
neurata query "term regime:curated"   # facet: what the archive owns
                                      # (regime:mirror = synced from a source)
neurata query "term class:procedural" # memory axis: how-to, as opposed to
                                      # class:episodic (a dated event) and
                                      # class:semantic (a fact)
neurata query "term agent:agente-exemplo"     # provenance: who deposited it
                                      # (agent:/session:/origin:/project:,
                                      #  curated only)
neurata query "term missing:agent"    # the gaps: curated grains with no agent
neurata query "term tag:osint"        # tags the SOURCE declared (v1.8 carries
                                      # them from yaml/skill/markdown into
                                      # the index — mirrors included)
neurata query "entity:postgres"       # every grain that names it: title,
                                      # alias, tag, project or source, in
                                      # one query (see Entity graph below)
neurata query "term --include-stale"  # tombstoned grains are excluded by
                                      # default; this flag brings them back
neurata expand <id>          # card → summary → full
neurata expand <id> --restore # bring the full body back from the archive

# shrink a grain's served body; the full is archived, never dropped
neurata compact <id>         # no-op unless it actually shrinks; refuses
                             # mirrors (the next tick would undo it)

# what the archive itself flags
neurata shelf --conflicts    # near-duplicates and id/slug collisions

# contradictions: "use X" vs "never use X" — same target, opposite
# polarity, detected deterministically at tick/reindex (no LLM)
neurata contradictions            # report: open pairs, resolved count
neurata contradictions --resolve  # apply the deterministic winner rule
neurata supersede <id> --by <id>  # or pick the winner yourself; the
                                  # loser is marked in its frontmatter
                                  # (`superseded_by`), never deleted
neurata query "term status:superseded"  # and search stops being blind:
                                        # cards carry `contradicts` and
                                        # superseded grains sink

# mirror an external source into the inbox (then `tick` catalogues it)
neurata harvest                        # default provider: claude-code skills
neurata harvest project                # THIS repo's instruction files:
                                       # AGENTS.md, CLAUDE.md, copilot-
                                       # instructions.md, .cursorrules and
                                       # .cursor/rules/*.mdc — found at the
                                       # git root of the cwd (override with
                                       # NEURATA_PROJECT_ROOT), each grain
                                       # classed by its shape
neurata harvest ~/some/dir             # or any directory, format auto-detected
neurata harvest ~/rules --format rules # or pinned: skill-md, markdown, mdc,
                                       # yaml, rules

# archive health
neurata doctor
neurata --version

# rebuild the whole index from the files (the files are the truth, so
# this is always safe): resolves every wikilink, refills the alias and
# entity tables, recomputes contradictions
neurata reindex

Agents: MCP server and Claude Code plugin

The CLI is one surface; neurata-mcp is the other. It speaks MCP over stdio, in the standard library alone, and exposes four tools: neurata_query, neurata_deposit, neurata_expand and neurata_shelf. An agent picks the tool from its schema instead of shelling out, and stops paying a shell permission per call.

neurata-mcp            # stdio server; wire it into any MCP client

For Claude Code there is a plugin that wires it for you, with four slash commands and a skill that says when to recall and when to deposit:

claude plugin marketplace add Neguiolidas/Neurata
claude plugin install neurata@neurata

The server never guesses your project from its own working directory — that directory is the server's, not yours, and a wrong bias you cannot see is worse than no bias. It takes the project from an explicit argument, else from the workspace root the client reports, else nothing; every answer declares which, as source: "arg" | "roots" | "none".

expand is exposed without restore: the MCP surface reads, and restoring writes.

Living links (wikilinks → graph)

[[wikilinks]] in a grain's body become graph edges — resolved by slug, title or alias, deterministically, at catalogue time: every tick writes the edges of the grain it is cataloguing (and an edit that absorbs a body change rewrites them). Ambiguous targets (two grains sharing a title or alias) resolve to nothing, by the same rule the full reindex applies. Edges feed the Personalized PageRank leg of the ranking — a grain linked from the top results rises, with no LLM and no embedding. neurata reindex reconciles the whole graph (and backfills the alias table) whenever you want a full pass.

Entity graph (light)

Every grain declares the entities it is about — title, aliases, tags, project, source — extracted deterministically (no NER, no LLM) into a membership table. One facet searches across all the names:

neurata query "entity:postgres"   # grains that ARE, tag, or come from
                                  # the entity — title, alias, tag,
                                  # project and source in one query

Entities are also hubs in the graph leg of the ranking: grains that share a name rise together even with no [[link]] between them. A hub is built only for an entity naming between 2 and 64 grains — the band where a shared name is a relation. A name carried by a single grain would only hand that grain its own mass back, and a name carried by half the archive is a category: it costs real time and drags in grains that share no word with the query. The ceiling applies to the ranking alone — entity: still answers for a source with thousands of mirrors.

Editing frontmatter (adding an alias) requires neurata reindex for the membership to follow; body changes are absorbed by the tick as usual.

Context bias (deterministic)

The search knows where you are — the same way the deposit does since v1.2. Grains from your current project, your current session, and recently touched grains get a modest, fully deterministic boost before the result is cut; no LLM, no embedding, no service.

neurata query "deploy"          # project from git root of the cwd
NEURATA_PROJECT=myrepo neurata query "deploy"   # explicit, zero cost
NEURATA_SESSION=$ID neurata query "deploy"      # session affinity
  • NEURATA_PROJECT wins over the git probe (agents should set it); the git probe has a 0.5 s timeout and failure means "no bias", never an error.
  • An explicit facet mutes its bias: project:X disables the project boost for that query — the facet is sovereign.
  • Every JSON answer declares what it used: "context": {"project", "session", "source"} — a bias you cannot see is a bias you cannot trust. source is env, git, none, or disabled (bias switched off in config, so nothing was even looked at).
  • All three knobs live in config.json under "context" (project_boost, session_boost, recency_weight, recency_tau_dias); zeroing one switches that hint off cleanly.
  • The pre-cut recency hint and the shelf's recency are two different layers: the hint decides who enters the top-k, the shelf reorders inside it.

Automatic curation

tick catalogues whatever is in the inbox. Run it hourly via cron:

0 * * * * $HOME/.local/bin/neurata tick >> $HOME/.neurata/logs/cron-tick.log 2>&1

neurata doctor warns (last-tick) if the cron stops.

tick also absorbs edits: fix a grain's body in your editor and the next tick re-hashes it into the index, keeping its id, slug and provenance. Editing only the frontmatter (class:, type:, tags:, aliases:) leaves the body unchanged, so the tick sees nothing to absorb — run neurata reindex after those.

Principles

  • Grains sit on two independent axes. Regime — who owns the grain — is derived from the file's shape, never authored: a grain carrying a source_key is a mirror of some external source, everything else is curated. Class — what kind of memory it is — is declared in the frontmatter (class: episodic | semantic | procedural); a curated grain without one is episodic, because a deposit is a dated event. A mirror's class is written by the harvest from the file's shape — a skill or a rules file is procedural, prose and YAML are semantic — and a shape the adapter doesn't know declares nothing at all. Neither axis is ever guessed from the text, and neurata query "missing:class" lists the grains that predate the declaration.

  • Files are the truth (a valid Obsidian vault); the index is a disposable cache.

  • Deterministic retrieval first; LLMs only where explicitly wanted.

  • Nothing is ever destroyed: archive + quarantine, never delete.

  • Zero runtime dependencies. Python ≥ 3.10.

Status: v1.12.0, in daily use on a real vault. neurata doctor reports index health at any moment. Snapshot previews are read-only, managed libraries use an isolated local Git identity, and stale grains are excluded from graph propagation unless --include-stale is explicit. Agents reach the archive through neurata-mcp without a shell.

License: AGPL-3.0-or-later.

Metadata

Release files for neurata 1.12.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for neurata 1.12.0
File Size Uploaded Provenance
neurata-1.12.0.tar.gz 250.8 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for neurata 1.12.0
File Interpreter ABI Platform
neurata-1.12.0-py3-none-any.whl Python 3 none any Details

Total release size: 399.1 kB

Release files / neurata-1.12.0.tar.gz

Download URL neurata-1.12.0.tar.gz
Size 250.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f84453c92a19121824e86d442eadacdf1a49e9ff270395fd6667401c29386381
BLAKE2b-256 checksum
How to use checksums
064de793a958c69bdc4f476371a4189c473e6b95665b2b24fde2bb1b035c75ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 9, 2026.

Transparency log

Release files / neurata-1.12.0-py3-none-any.whl

Download URL neurata-1.12.0-py3-none-any.whl
Size 148.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b9baff0c837fd574eb81f33f6fcb3cb89d95c682aea66d32fe19db96b8a82e07
BLAKE2b-256 checksum
How to use checksums
9fe5e965da54a1405b072d4d1f698fbb56d3bcc221fe1a556ee6f33dcdb1ec8b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 9, 2026.

Transparency log

Security for neurata 1.12.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for neurata-1.12.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 9, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page