Skip to main content

SQAC replaces agent-facing .md files

SQAC Banner

Give your LLM a memory it can carry in a file. SQAC (Symbolic Query Addressable Cartridge) turns facts, skills, session context, agent personas, and secrets into portable .sqac cartridges that any LLM can query at runtime — no retraining, no vector database, no GPU required.

PyPI Python CI License

Your agent already reads AGENTS.md, CLAUDE.md, skill files, and handoff notes on every session — the same files, rewritten by hand, re-read in full, and never queried. SQAC swaps them for structured memory your model can search instead of reread.

Ask your LLM: "Who owns the payments service?"

Without SQAC:  "The Federal Reserve Bank of New York maintains the
                payment system."        (confidently wrong — hallucination)
With SQAC:     "Team Atlas maintains the payments service."  (correct, from your data)

That gap is the entire product: a frozen, never-trained model answered private questions correctly because we handed it a 2.5 KB memory file. Also, unlike your model's training data, you can actually update it.

Install

pip install sqac                  # core
pip install "sqac[mcp]"           # MCP server for agent clients
pip install "sqac[server]"        # HTTP API server
pip install "sqac[cloud]"         # cloud sync (R2/S3/Supabase/MinIO/B2/Spaces)
pip install "sqac[vault]"         # OS keychain for vault secrets
pip install "sqac[all]"           # everything

Python 3.10–3.13. Windows, Linux, macOS (x86_64 prebuilt wheels; aarch64/macOS wheels coming post-1.0).

Quick start (60 seconds)

# Teach it a fact
sqac teach "We deploy to ARM64 only" --key deploy-target

# Ask it back — try paraphrasing; fuzzy + semantic tiers handle it
sqac search "can we ship x86 images?"
# → "We deploy to ARM64 only"  (confidence 0.72)

# Build memory from a whole project
sqac init .
sqac search "how does authentication work?"

If it doesn't know, it says so. SQAC would rather tell you "I don't have that in memory" than invent an answer — a level of humility your model could learn from.

Pick your path

I use coding agents (opencode, Claude Code, Codex, Cursor, Zed)

One memory dir, every CLI, every session. The memory follows you when you switch tools:

sqac mcp setup --host all          # prints wiring snippets for every supported CLI
sqac-mcp                           # runs the MCP server (add [mcp] extra first)

Then in any agent session: mem_bootstrap loads your working context (project, goal, last handoff), mem_checkpoint saves it at task boundaries. Agent personas and working state live in agent cartridges:

sqac agent init atlas --role "coding assistant"
sqac agent set identity "I am Atlas. I prefer tests before implementation."
sqac agent bootstrap               # the 4 KB "get to work" packet for a fresh session

→ Full details: docs/AGENT.md, docs/MCP.md

I need to keep secrets out of my prompts

Regular cartridges are plaintext. Secrets and PII belong in the encrypted vault:

sqac vault init                    # AES-256-GCM, OS keychain or passphrase
sqac vault put openai --type secret
sqac vault exec --env OPENAI_API_KEY=vault:openai -- python script.py

MCP vault tools are reference-only: no tool ever returns a plaintext secret. Your model can use your API key without ever seeing it — like a valet with your car, minus the tipping.

→ Full details: docs/VAULT.md

I want memory to survive a laptop-bucket-and-coffee incident

Sync cartridges to any S3-compatible store (Cloudflare R2 by default):

sqac cloud init --provider r2 --bucket my-memory
sqac cloud sync

Conflict-aware, explicit allowlist, never silently overwrites. → docs/CLOUD.md

I just want the file format

.sqac is a self-contained binary format: header + vocab + entries, versioned and forward-compatible. → docs/FORMAT.md

What lives where

Cartridge Holds encrypted
memory (default) facts, skills, docs, session turns no (plaintext by design)
agent persona + working state (identity, goals, decisions) opt-in (SQAE)
vault secrets, PII yes (AES-256-GCM)
secret secret references + metadata (never values) yes (SQSE)

Every entry is retrievable three ways: exact key lookup (O(1)), lexical/fuzzy matching (SIMD-accelerated), and optional semantic matching for paraphrases. No hit → no answer, never a confident guess.

The CLI in one glance

sqac teach "..." --key k            # store one fact
sqac search "query"                 # retrieve it back
sqac init .                         # auto-build memory from a codebase
sqac track .                        # keep it in sync as the code changes
sqac agent ...                      # agent personas + working state
sqac vault ...                      # encrypted secrets/PII
sqac secret ...                     # secret refs/metadata (never values)
sqac cloud ...                      # S3-compatible sync
sqac report "bug title" -d "..."    # file a GitHub issue with diagnostics
sqac mcp setup --host <cli>         # wire memory into your agent

→ Full reference in the CLI section above; MCP tool list in docs/MCP.md; HTTP endpoints in the server module.

FAQ

Is this RAG? Not quite. RAG retrieves passages your model quotes; SQAC retrieves facts your model uses and procedures your model follows — with exact/lexical/semantic tiers, no vector DB, and a confidence gate that fails safe. If RAG is a search engine for documents, SQAC is a memory your agent can carry in its pocket.

Does it need a GPU or embeddings service? No. Retrieval is XOR + popcount on 1024-bit keys; the optional semantic tier runs a small static model in numpy. Storage is one file you can email to a colleague.

Why not just keep using AGENTS.md? Markdown is great for humans and terrible for retrieval: no keys, no confidence, no dedup, and your agent rereads the whole file every session. SQAC keeps the content, adds structure, and gives your model a 4 KB bootstrap instead of a 40 KB wall of text. Keep the markdown for yourself; give the cartridge to your agent.

Can I see what it remembers? Yes — sqac stats, sqac search, the dashboard (sqac dashboard), and the 3D graph view (sqac viz) for people who enjoy watching their memory as a glowing particle system.

Is my data safe? Memory cartridges are plaintext — treat them like a text file. Secrets live in vault cartridges (AES-256-GCM, keychain or passphrase). Secret references live in the Secret Domain — never values — and secret resolution happens only in the trusted backend. Cloud sync never uploads agent/vault/secret cartridges by default and never silently overwrites conflicts. See docs/SECURITY.md for the full threat model, including what it does not protect against.

What's the catch? Fuzzy search is O(n) per scan — sub-100 ms up to ~100K entries with SIMD, beyond that shard your memory (DMS eviction can help). It's memory, not a reasoning engine: it retrieves the right context, your model still has to think.

Status

Contributing

PRs welcome — see CONTRIBUTING.md. Bug reports: sqac report "title" -d "description" files a GitHub issue with diagnostics attached.

License

BUSL-1.1 (free to use, modify, distribute — no competing SaaS). Converts to Apache 2.0 in 2030. See LICENSE.


SQAC stands on hyperdimensional computing and vector-symbolic architecture research — see docs/THESIS.md and experiments/ for the full record, negative results included.

Metadata

Release files for sqac 1.2.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 sqac 1.2.0
File Size Uploaded Provenance Actions
sqac-1.2.0.tar.gz 238.8 kB With provenance Details for sqac-1.2.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for sqac 1.2.0
File Interpreter ABI Platform Actions
sqac-1.2.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for sqac-1.2.0-cp310-abi3-win_amd64.whl
sqac-1.2.0-cp310-abi3-musllinux_1_2_x86_64.whl CPython 3.10 abi3 Linux musl 1.2+ x86-64 Details for sqac-1.2.0-cp310-abi3-musllinux_1_2_x86_64.whl
sqac-1.2.0-cp310-abi3-manylinux_2_28_x86_64.whl CPython 3.10 abi3 Linux glibc 2.28+ x86-64 Details for sqac-1.2.0-cp310-abi3-manylinux_2_28_x86_64.whl

Total release size: 1.4 MB

Release files / sqac-1.2.0.tar.gz

Download URL sqac-1.2.0.tar.gz
Size 238.8 kB
Tags Source
SHA-256 checksum
How to use checksums
5eaf5855b1fc635f7b8bb99ab47c6f0ee341d5d0df3f24f65f5bf00cea428aec
BLAKE2b-256 checksum
How to use checksums
faaa171c796f1b011ab9da978f3b8255de9fd77647b4ee210fc197c59ef347cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 16, 2026.

Transparency log

Release files / sqac-1.2.0-cp310-abi3-win_amd64.whl

Download URL sqac-1.2.0-cp310-abi3-win_amd64.whl
Size 289.0 kB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
73759ae1b88a23b529175df46282c2dc59790a9204b7b62c4464bc2516a0f576
BLAKE2b-256 checksum
How to use checksums
0172f66dd601023ede847fdbcee8d11e23c05e5d38825642e6f279d9b7bf9157
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 16, 2026.

Transparency log

Release files / sqac-1.2.0-cp310-abi3-musllinux_1_2_x86_64.whl

Download URL sqac-1.2.0-cp310-abi3-musllinux_1_2_x86_64.whl
Size 455.1 kB
Tags CPython 3.10 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
7ca96edc61e626126e581cc437a6fad6f3a0a61c0c0bba861e53fa23c4e4c2a4
BLAKE2b-256 checksum
How to use checksums
fa99c4fa5828a5f9d19c19d1b6f0b9594bb72cfb839348e89cc977b790f3a156
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 16, 2026.

Transparency log

Release files / sqac-1.2.0-cp310-abi3-manylinux_2_28_x86_64.whl

Download URL sqac-1.2.0-cp310-abi3-manylinux_2_28_x86_64.whl
Size 373.2 kB
Tags CPython 3.10 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
7f78578dee6acbe84218a5d02c78195b637bd272f54f443e76dc25f2216df111
BLAKE2b-256 checksum
How to use checksums
80e17104ef4c3dafa1134944de5eebc464a105d459a252d5f5d0dfb31a79f74f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 16, 2026.

Transparency log

Security for sqac 1.2.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 4 files in this release have been uploaded with provenance metadata.

Select from 4 files

Attestation for sqac-1.2.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 Nov 16, 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