Skip to content

About

Crow Memory - External synaptic memory for AI coding agents. Stores your coding style, bug intuition, and architectural preferences as compressed weight matrices.

Resources

Stars

7 stars

Watchers

0 watching

Forks

Latest commit

 

History

113 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Crow Memory

Local synaptic memory for AI coding assistants.

Crow Memory remembers your coding style, bug lessons, architectural decisions, and working principles in one local SQLite database. A single C++20 binary, crow (crow.exe on Windows), connects those memories to your editor's lifecycle hooks and optional MCP tools.

There is no daemon, server, port, scheduler, Python runtime, or virtualenv in the native product. Your memories stay in <CROW_HOME>/crow.db; the default home is ~/.crow-memory.

Release version note: this documentation targets v1.5.1 and the source constants now define 1.5.1. The build/crow.exe currently present in this workspace predates that bump and still reports crow 1.5.0; rebuild before verifying or publishing the v1.5.1 binary.

What Crow Memory does

Question Answer
What does it remember? Coding style (style), bug lessons (bug), architecture (arch), project context (context), and personal preferences, principles, and background (life_*).
When does it remember? Session start, prompt submission, and build/test outcomes are automatic. Decisions and lessons are stored explicitly with crow ingest.
How does it recall? A [User Bias -- Crow Memory] context block, crow recall, or the MCP crow_recall tool.
Where is the data? <CROW_HOME>/crow.db, shared by all installed tools for that home. No cloud service is involved.
What does it require? The crow executable. Building from source requires CMake 3.24+ and a C++20 compiler.
What are its limits? Exact same-word recall is measured, but paraphrase and cross-language semantic recall are still below their research targets. See Measured quality and limits.

Crow Memory is a memory aid, not a knowledge base or a guaranteed archive. It combines lexical matching with optional neural association, applies half-life decay, and evicts weak memories under register quotas. Keep specifications, credentials, and irreplaceable facts in their proper documentation or secret store.

Contents

Quickstart

Build and install the native binary, then fully restart your editor or agent so it reloads its hooks and MCP configuration.

Windows

Run these commands from an x64 Native Tools Command Prompt for Visual Studio 2022 or after running VsDevCmd.bat -arch=amd64:

git clone https://github.com/myk1yt/crowmemory.git
cd crowmemory
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release
build\crow.exe install --tools kimi-code
build\crow.exe --version

Replace kimi-code with your tool name, or use all to install every supported adapter.

Linux and macOS

git clone https://github.com/myk1yt/crowmemory.git
cd crowmemory
cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release
./build/crow install --tools kimi-code
./build/crow --version

After restarting, verify the installation:

~/.crow-memory/bin/crow admin --action diagnostics

On Windows, use %USERPROFILE%\.crow-memory\bin\crow.exe admin --action diagnostics. A new database normally reports "total_rows":0.

Store and recall one memory to check the full path:

~/.crow-memory/bin/crow ingest --key "Build command" --value "cmake -B build -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release" --register arch --polarity 1.0
~/.crow-memory/bin/crow recall --query "Build command" --domain code --top-k 3

Use words from the stored key or value. Paraphrase and translation quality are limited, as documented below.

Build from source

Requirements

Requirement Notes
CMake 3.24 or newer Configures the native build.
C++20 compiler MSVC, GCC, or Clang with C++20 support. Visual Studio 2022 build tools are recommended on Windows.
Git Needed to clone the repository.

SQLite and nlohmann/json are vendored in third_party/ and hash-verified during configuration. Configure, build, and native tests do not download dependencies. The native build and CTest suite do not invoke Python.

The optional blink model cache is not a Git blob. A fresh clone can build and run with the committed English encoder or the deterministic hash fallback. To install the multilingual encoder, follow the one-time acquisition and verification instructions in models/README.md. This is model preparation, not a build dependency, and is never performed automatically by CMake or crow install.

Build commands

cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release

The executable is:

  • Windows: build/crow.exe
  • Linux/macOS: build/crow

Ninja is recommended, especially on Windows. The standard ctest --test-dir build command assumes a single-config generator. Visual Studio's multi-config generators require an explicit configuration and may otherwise register zero tests.

Optional compile-time settings include CROW_BUILD_TESTS=ON, CROW_ENABLE_AVX2, CROW_FORCE_SCALAR, CROW_STATIC_RUNTIME, CROW_WITH_LLAMA, and CROW_WITH_ONNX. The llama.cpp and ONNX backends are off by default and require separately supplied SDK roots. Neither is needed for the documented product behavior.

Install

crow install deploys the binary, available encoder models, adapter files, and the stdio MCP entry. It also migrates a legacy value_bank.json when one is found.

./build/crow install --tools kimi-code

On Windows:

build\crow.exe install --tools kimi-code

The installer:

  1. Copies the executable atomically to <CROW_HOME>/bin/crow or crow.exe.
  2. Copies present model artifacts and verifies their pinned SHA-256 hashes. It records results in <CROW_HOME>/models/manifest.json.
  3. Merges hooks, rules, skills, and MCP entries for the selected tools instead of replacing unrelated configuration.
  4. Attempts legacy v1 migration unless disabled.
  5. Backs up every overwritten file as *.bak.<timestamp> and does not delete your existing memory or configuration.

Installation is idempotent. A second run leaves unchanged files alone and skips an already completed migration under its fingerprint guard. A failed adapter deployment is reported without preventing the remaining adapters from being attempted.

Before upgrading an existing installation, create a backup.

Supported tools

Tool --tools value Deployment
Antigravity antigravity Plugin directory, hooks, rules, skills, and optional MCP configuration.
Kimi Code kimi-code ~/.kimi-code/config.toml hooks, ~/.kimi-code/mcp.json stdio entry, and skill files.
Claude Code claude-code ~/.claude/plugins/crow-memory/ with hooks, MCP configuration, and skills.
Cursor cursor ~/.cursor/hooks.json, ~/.cursor/mcp.json, and ~/.cursor/rules/.
Cline cline A marked rules block in ~/.clinerules; MCP configuration may require manual setup.
Codex codex A marked block in ~/.codex/AGENTS.md.
Zoo Code zoo-code A marked block in ~/.zoo/AGENTS.md.
Any agent generic Prints the location of adapters/generic/AGENTS.md for you to copy manually; no automatic deployment.

The default is all. Select multiple tools with a comma-separated list:

./build/crow install --tools kimi-code,cursor

Install options

Option Meaning
--tools <list> all or a comma-separated tool list. Default: all.
--home <path> Data home. Defaults to CROW_HOME, then ~/.crow-memory.
--deploy-home <path> Adapter deployment root. Defaults to CROW_DEPLOY_HOME, then the user home.
--no-migrate Skip legacy migration.
--force-migrate Reapply migration even if the fingerprint guard would skip it.
--src-json <path> Legacy value_bank.json source. Defaults to the repository's memory/value_bank.json.
-h, --help Show help.

Set a different home before installing:

export CROW_HOME="$HOME/.my-crow"

Windows Command Prompt:

set CROW_HOME=%USERPROFILE%\.my-crow

Verify the installation

  1. Check the data home and row count:

    ~/.crow-memory/bin/crow admin --action diagnostics
  2. For Kimi Code, confirm that ~/.kimi-code/config.toml contains the three hook blocks and that ~/.kimi-code/mcp.json contains a stdio crow-memory entry with no URL.

  3. Store a memory and recall it in a fresh process.

  4. Start a new editor or agent session. Empty memory produces no bias block, which is normal.

Hooks and MCP settings load at startup. Closing a window is not enough if the underlying process remains running.

Use Crow Memory

Automatic lifecycle hooks

Trigger Command Behavior
Session start crow hook session-start --format text Prints the two-tier [User Bias -- Crow Memory] block and runs due sleep consolidation.
Prompt submission crow hook pre-invocation --format text Finds memories related to the prompt. A prompt-hash ledger prevents duplicate injection.
Shell/build tool completion crow hook post-tool --format text Silently records eligible build/test outcomes: +1.0 for success, -0.5 plus the last error line for failure.
End of work crow ingest ... Explicitly stores the session's decision, principle, or lesson. This is manual, not a session-end hook.

Hook formats are agy, claude, kimi, cursor, and text. Antigravity and Claude Code receive JSON envelopes; the others receive plain text. Hook commands always exit 0, including database, input, and model failures, so memory problems do not break the host tool. Set CROW_DEBUG=1 to send swallowed failure details to stderr.

Sleep consolidation runs on session start when at least 32 new episodes exist and the previous consolidation was at least 24 hours ago. It has a bounded episode and time budget. crow admin --action evolve runs consolidation explicitly.

Manual commands

All regular commands exit 0 on success, 1 on runtime failure, and 2 on usage error. Runtime errors are reported as one JSON object on stdout. Hooks always exit 0.

Store an experience:

crow ingest --key "Build command" --value "cmake -B build && cmake --build build" --register arch --polarity 1.0

Recall memories:

crow recall --query "How do I run the tests?" --domain code --top-k 3
crow recall --query "Build command" --format bias_block

Hint output includes register, key, value, similarity, confidence, stance (use or avoid), and entry_uid. A negative-polarity lesson is labelled AVOID: in bias output.

Check memory health:

crow admin --action diagnostics
crow admin --action drift

Recall options include --register, --domain code|life|all, --top-k, --format hint|bias_block, --project, --strict-project, and --no-stats. Ingest options include --polarity, --exit-code, --user-edited, and --project.

Registers and half-lives

A half-life is the time after which a memory's effective weight falls to half if it is not reinforced.

Register Domain Half-life Stores
style code 180 days Naming, comments, formatting, and folder preferences.
bug code 60 days Bug patterns and failure lessons.
arch code 60 days Design principles and structural decisions.
context code 7 days Current project state and work in progress.
life_pref life 180 days Personal tooling and environment preferences.
life_avoid life 60 days Situations and patterns to avoid.
life_phil life 180 days Working principles and judgment rules.
life_context life 7 days Current plans and recent events.

Example principle:

crow ingest --key "Definition of done" --value "A working build is not enough; verification must pass." --register life_phil --polarity 1.5

Example lesson:

crow ingest --key "Reloading the extension" --value "Reload Window was not enough; a full process restart was required." --register bug --polarity -1.0

Negative bug and life_avoid rows are exempt from automatic supersession. They remain active until explicitly deleted, purged, or archived. Archived rows are not reactivated by a later negative merge.

The database is capped at 500 active memories. Eviction considers decayed importance, protects recent rows with a one-hour grace window, and preserves a minimum of 15 active rows per register.

Recall behavior

  • Exact stored words are the most reliable query. A recall below the similarity cutoff returns []; this means no sufficiently confident match, not a database failure.
  • The session-start block includes stable core principles, avoidance lessons, and task-matched recall. It is explicitly reference context, not new instructions.
  • Neural-only associations may surface a small number of extra rows. Their real sub-cutoff similarity is reported rather than replaced with a fabricated score.
  • Set CROW_BRAIN=0 to disable neural behavior and use text-only ranking.
  • Set CROW_NO_MODEL=1 to force the deterministic hash encoder for tests or model-free operation.

MCP tools

The native server runs over stdio, not HTTP. The MCP client starts crow serve-stdio when needed and stops it afterward; no resident process or listening socket remains.

The server identifies itself as crow-memory, uses MCP protocol 2025-03-26, and exposes exactly three tools:

Tool Purpose
crow_recall Query by query, register, domain, top_k, format, project, and strict_project.
crow_ingest Store key, value, and register; optionally set polarity or exit_code, user_edited, and project.
crow_admin Run diagnostics, drift checks, prompt management, backup, evolve, project management, delete, or purge.

Two prompts are also available: crow_memory_bias and crow_evolved_rules. Frames are limited to 8 MiB and 1,000 nesting levels. A malformed frame receives a -32700 parse error and the server continues.

Storage and encoders

Data home

~/.crow-memory/                     or $CROW_HOME
├── bin/
│   └── crow.exe                     native executable; crow on POSIX
├── models/
│   ├── blink-multilingual-64M/      optional multilingual encoder cache
│   ├── potion-base-8M/              English encoder artifact
│   └── manifest.json                installed model hashes and verification results
├── crow.db                          SQLite WAL database
├── crow.db-wal                       active write-ahead log, when present
├── crow.db-shm                      shared-memory index, when present
├── system_prompt.md                 approved rules and unreviewed suggestions
├── backups/                         database and prompt snapshots
├── .migrated_v1.json                 legacy migration fingerprint record
├── .last_inject.json                prompt deduplication state
├── .last_ingest.json                automatic-ingest deduplication state
├── .posttool_pending.json           failure-to-fix causal-pair queue
└── admin_audit.log                  administrative audit trail

All tools installed against the same home share this database. crow.db contains memory rows, FTS5 index data, token and vector columns, synapses, register state, surprise state, and consolidation metadata.

Encoder fallback

The encoder converts text to a 256-dimensional vector:

  1. blink-multilingual-64M, when installed. It uses static WordPiece embeddings, mean pooling, and L2 normalization over a fixed vocabulary. The model matrix is about 244 MiB.
  2. potion-base-8M, when blink has never been installed in that home. This English-only artifact is about 29 MiB.
  3. Deterministic hash projection, when no usable model is available or a present model is corrupt. It keeps recall operational but does not provide comparable semantic quality.

If blink is installed but corrupt, Crow does not silently switch to the English model because the two vector spaces must not be mixed. It falls back to the hash encoder and reports the reason in diagnostics. Model files are verified at install time; a mismatched source does not overwrite a good installed copy.

Runtime encoding reads pinned local vocabulary artifacts. It does not parse tokenizer.json, download a model, or access the network.

Backup and recovery

Backups are page-consistent SQLite snapshots and include a copy of system_prompt.md. Prefer these snapshots over copying a live database file.

Create a backup

crow admin --action backup --args '{"action":"create"}'

Add a tag before an upgrade or migration:

crow admin --action backup --args '{"action":"create","tag":"before-upgrade"}'

The result includes "status":"created" and the backup file paths. The default tag is manual.

List and rotate backups

crow admin --action backup --args '{"action":"list"}'
crow admin --action backup --args '{"action":"rotate"}'

Rotation keeps the newest 10 backups.

Recover a backup

Recovery replaces the live database, so it requires the human-held CROW_ADMIN_TOKEN environment variable and the same value in args.token. Replace both placeholders with real values.

crow admin --action backup --args '{"action":"recover","src":"<CROW_HOME>/backups/crow-before-upgrade-<timestamp>.db","token":"<CROW_ADMIN_TOKEN>"}'

On Windows, use an absolute path with forward slashes, such as D:/Users/you/.crow-memory/backups/crow-before-upgrade-20261201_120000.db, so JSON does not require backslash escaping. A Git Bash $HOME/... path is not accepted as a Windows absolute source path; convert it with cygpath -m first.

Recovery rules:

  • No token, an unset token, or a mismatched token means refusal.
  • src must be an absolute path inside the active <CROW_HOME>/backups/ directory.
  • Bare filenames, .. escapes, other drives, escaping symlinks, and other working-directory-relative paths are refused.
  • The source must contain a valid Crow memories schema.
  • The displaced live database is preserved as crow.db.bak.<timestamp> and reported in the guard field.
  • One transaction then reapplies any missing current schema and FTS objects. Read caches are invalidated before this repair. A current-era backup makes the repair a no-op.

After recovery, run crow recall, compare total_rows from admin --action diagnostics with the backup-time value, and run admin --action drift.

To move memories to another machine, copy a backup snapshot, or copy the database and its WAL only while Crow is not running. Do not share crow.db, system_prompt.md, backups/, or admin_audit.log; they contain private memory.

Migration and upgrades

From the v1.5 Python serverless release

Legacy data may exist in memory/value_bank.json. crow install attempts to import it automatically and leaves the source file untouched. A successful migration preserves all eight registers, importance, polarity, and timestamps, filters common test debris, and copies the legacy system_prompt.md only when the destination is absent.

Migration failure is reported but does not abort the rest of installation. Use the explicit command for a dry run or a manual import:

crow migrate --dry-run
crow migrate --apply

Exactly one of --dry-run or --apply is required.

Option Meaning
--dry-run Report the proposed migration without writing.
--apply Apply the migration.
--src-json <path> Source value_bank.json.
--src-prompt <path> Source system_prompt.md.
--home <path> Target data home.
--keep-junk Keep entries normally filtered as test debris.
--force-prompt Replace an existing prompt after backing it up.
--force-migrate Ignore the migration fingerprint guard.

From earlier matrix-engine releases

The legacy crow.bin matrix is not read directly by the native product. Export its experience bank to value_bank.json, then use crow migrate --src-json <path> --apply. The historical matrix-engine design is recorded in CROW_MEMORY_ARCHITECTURE.md.

Existing SQLite databases

An existing native crow.db opens in place. Older supported schemas receive only the required additive changes, such as the tokens column. Memory rows are not discarded by opening the database.

Two upgrades are atomic and retry with rollback:

  1. Token regeneration. Re-derives lexical tokens from stored text without a model. Hooks can trigger it; if pending, recall derives tokens in memory.
  2. Vector regeneration. Runs only at install, upgrade, or administration boundaries when the encoder identity changes. It re-encodes memories and resets incompatible centroids, synapses, and learned state in one transaction.

If a model or migration state is unavailable, neural operations stay disabled while text storage and lexical recall continue.

Tokenizer generations and foreign homes

brain_meta.tokenizer_version identifies the lexical tokenizer generation:

Stored value Treatment
Missing or NULL Legacy or pending migration; regenerate tokens, deriving them in memory until complete.
"2" Retired T1 generation; migrate atomically to "3" without a model.
"3" Current U4a grapheme-cluster generation; no migration.
Any other value, including non-TEXT storage Foreign home from another or newer build. Leave stored bytes untouched and disable the neural channel.

A foreign home remains usable for text storage, lexical recall, and hooks. Do not force a vector migration: re-embedding would rewrite every vector and delete learned state belonging to another build. Open the home with the build that owns its token ledger instead.

Security and administration

Human approval gates

These operations require CROW_ADMIN_TOKEN to be set and its exact value passed as args.token:

  • admin prompt approve
  • admin purge with confirm_all: true
  • admin backup recover

Token comparison is constant-time. Missing, empty, or incorrect tokens are refused. Token values are not written to the audit log.

The token is a workflow control, not a sandbox. A shell-capable agent may be able to read environment variables. Keep the token out of prompts, logs, and committed files, and require human approval before destructive operations.

Other operations are not token-gated:

  • admin delete removes one memory.
  • backup create, list, and rotate are non-destructive.
  • diagnostics, drift, and project_info are read-only.
  • evolve performs consolidation writes in the database registers but never writes system_prompt.md. Promotions remain reversible through delete or purge.

Model-written rules

Model suggestions are not activated automatically. Prompt append:

  1. Scrubs noise.
  2. Flattens the proposal to one line.
  3. Rejects text longer than 400 characters rather than truncating it.
  4. Rejects section-forgery markers.
  5. Stores the proposal under [Unreviewed Model Suggestions] in system_prompt.md.

A human must approve the line with admin prompt approve. Consolidation may promote memory rows in crow.db, but it does not change the prompt file.

Audit log

Administrative actions are recorded in <CROW_HOME>/admin_audit.log as an ISO timestamp, action, detail hash, and selected key/value fields. Secret-looking fields are omitted. Audit logging does not block the operation if the log cannot be written.

Product and research test surfaces

The test suite separates user-facing product contracts from research aspirations. Unfiltered runs execute both surfaces, so research failures remain visible.

Surface Coverage Native command
product Install, migration, exact recall, no fabrication, hooks, backup/recovery, lifecycle, and performance. ctest --test-dir build -L product --output-on-failure
research Paraphrase and cross-language quality floors, U5 corpus/oracle checks, and authored-ahead --deep contracts. ctest --test-dir build -L research --output-on-failure

There are 18 product and 2 research CTest entries. The native harness also accepts --surface all|product|research.

The Python suite is a separate legacy/research oracle surface, not a native runtime dependency. Its precision module has 47 product and 116 research cases. Across the full Python suite, collection currently reports 559 product and 116 research cases:

python -m pytest tests -m "not research"
python -m pytest tests -m research

The research pytest marker currently emits PytestUnknownMarkWarning; selection still works.

Current gate status

The 2026-12-01 blind QA run reported:

  • Clean Release build: passed.
  • Product CTest: 17/18 entries passed. native_tier4_stress_performance failed under host load.
  • Full product pytest: 559 passed, 116 research cases deselected.
  • Research pytest: disclosed corpus, oracle, validator, and authored-ahead failures remain.
  • Product performance budgets: cold median <25 ms, cold p95 <40 ms, warm p95 <5 ms. Under ambient load, cold medians were 30.90-33.91 ms and warm p95 was 6.95-7.97 ms. The multilingual cold case was also over its median budget. The same unchanged binary met the budgets on a quiet host.

These are environment-sensitive failures on the acceptance host, not a claim that performance regressed or that all gates pass. Thresholds were not widened. See the final blind QA report.

--deep is not implemented. The CLI rejects it with exit code 2. Its authored-ahead tests intentionally remain red on the research surface.

Measured quality and limits

Exact recall and semantic quality

The frozen multilingual smoke corpus contains 15 languages × 5 memories, with Top-3 evaluation. These are synthetic fixtures, not measurements on real-user memory.

Metric Current measurement Product no-regression floor Research target Status
Exact same-word recall 75/75 5/5 per language Same Met
Unrelated/hard-negative precision 39/39 At least 95% Same Met
Same-language paraphrase 10/75 At least 8/75 68/75 and at least 4/5 per language Research target unmet
Cross-language semantic recall 28/75 At least 28/75 60/75 and at least 3/5 per language Research target unmet

The product floors are regression guards, not quality targets. Passing them does not mean the research targets were met. The 10/75 paraphrase result is still 58 cases short of 68/75.

Static mean pooling cannot model word order, negation, or contextual word sense. Low-resource languages are weaker. The 15-language result is a five-probe-per-language smoke measurement, not a guarantee for every language or user. Unmeasured languages are not reported as passing.

The current tokenizer normalizes Unicode with NFC and simple lowercase, preserves distinctions such as German ß, handles Turkish and Arabic rules, preserves Indic matras and Vietnamese horns, and uses unigram/bigram channels for spaceless scripts. These lexical rules do not solve paraphrase or translation.

Evidence: CROW_MEMORY_ARCHITECTURE.md §2.18 and the product gate report.

Partner utility

The partner-utility harness runs 37 synthetic scenarios against the real binary with an isolated temporary home per scenario and CROW_NO_MODEL=1.

  • Target memory surfaced through any supported path: 36/37 (97.3%).
  • Strict query match, excluding always-on core injection: 32/37 (86.5%).
  • No-fabrication controls: 2/2 passed.
  • AVOID rendering: no failures.
  • Remaining miss: bg-04, a Korean cross-lingual probe.

These are synthetic-fixture results, not real-user generalization. The harness also covers all eight registers, six fresh-process continuity chains, and negative controls.

Reproduce it:

python scripts/partner_utility/eval_partner_utility.py --binary build/crow.exe --json-out partner-utility.json

Performance and rejected alternatives

Cold and warm latency depends on model availability, host load, storage, and process-spawn cost. Quiet-host measurements are recorded in the architecture and changelog, but they are not a promise for another machine.

A contextual-encoder experiment found that the strongest candidate, BAAI/bge-m3, reached paraphrase 60/75 and cross-language 70/75, but still missed the paraphrase target, introduced precision violations, and took 148 ms median / 332 ms p95 on CPU. Crow therefore keeps the static encoder and does not add a second vector space or an ONNX runtime dependency.

Troubleshooting

Symptom Check or action
No [User Bias -- Crow Memory] block An empty bank or missing core rows produces no output. Add memories and check admin --action diagnostics.
recall returns [] No candidate cleared the similarity cutoff. Query with exact stored words and confirm the intended CROW_HOME.
Hooks do not run Fully restart the host tool after installation and confirm its generated hook configuration.
Unicode looks wrong in a Windows console Crow emits UTF-8. Set the console code page with chcp 65001 or use a UTF-8 terminal.
A hook appears to fail silently This is the fail-open contract. Set CROW_DEBUG=1 and run the hook directly to inspect stderr.
Concurrent writes are slow SQLite WAL serializes writes. Hooks wait up to 250 ms; administration and migration wait up to 5,000 ms.
Model warning appears A fresh source clone may not have the optional blink cache. See models/README.md; the binary still falls back to another encoder.
Semantic recall stopped after switching builds Check brain_meta.tokenizer_version first. A foreign ledger disables the neural channel by design while lexical recall remains available.
Old SSE or HTTP MCP entries remain Remove them and keep only the native stdio crow-memory entry. The native product opens no port.
Old autostart remains Disable the legacy Task Scheduler entry or launcher. The native product needs no scheduler.

Legacy releases

Retired SSE scripts

start_crow_sse.bat and watch_crow_sse.bat were removed in the v1.5.1 release documentation. They launched or watched the retired v1.4 SSE/HTTP server. Do not recreate them for the native product.

If an old scheduled task, Startup-folder entry, or editor task still calls either script, disable or remove that registration. On Windows, an existing legacy task can be inspected with:

schtasks /query /tn "CrowMemoryAuto"

Disable it only after confirming that it is the old Crow Memory server task:

schtasks /change /tn "CrowMemoryAuto" /DISABLE

Python files in the repository

The root Python modules, core/, and scripts/install_plugin.py remain as historical references and test oracles. The native release never installs or invokes them. New installations should use only crow install.

Serverless v1.5 upgrade behavior

The native installer:

  • Migrates memory/value_bank.json to crow.db.
  • Replaces Python stdio MCP entries with the native binary.
  • Replaces Cursor hooks that call crow_cli.py with native crow hook commands.
  • Reports old HTTP/SSE entries and old autostart registrations for manual cleanup.

v1.4 and earlier

Those releases used a resident Python server, ports 9020/9021, and a crow.bin matrix. None of those are part of the native runtime. Historical setup instructions are preserved in docs/CROW_MEMORY_AUTOSTART_DESIGN.md for reference only and must not be used for a new installation.

Architecture, license, and commercial use

The detailed native architecture, neural mechanisms, migration protocol, and historical matrix engine are documented in CROW_MEMORY_ARCHITECTURE.md.

Crow Memory is MIT-licensed and free to use. Vendored components include SQLite 3.54.1 (public domain), nlohmann/json 3.12.0 (MIT), blink-multilingual-64M (MIT), and potion-base-8M (MIT). Provenance and hashes are recorded in third_party/README.md, models/README.md, and third_party/LICENSES/.

The installer, CLI, MCP descriptions, and hook messages have translations in 96 locale files under i18n/. English is the default documentation language; missing translations fall back to English.

For security-focused deployments, enterprise customization, custom model integration, additional editor adapters, or locale work, contact [email protected].

About

Crow Memory - External synaptic memory for AI coding agents. Stores your coding style, bug intuition, and architectural preferences as compressed weight matrices.

Resources

Stars

7 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages