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) no
vault secrets, PII yes (AES-256-GCM)

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 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). Cloud sync never uploads keychain vaults 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.1.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.1.0
File Size Uploaded Provenance Actions
sqac-1.1.0.tar.gz 220.1 kB With provenance Details for sqac-1.1.0.tar.gz

Built distributions (wheels)

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

Total release size: 1.3 MB

Release files / sqac-1.1.0.tar.gz

Download URL sqac-1.1.0.tar.gz
Size 220.1 kB
Tags Source
SHA-256 checksum
How to use checksums
03ccffb3ceb6fcce9d3cefe33c02f0dc8a19403321f6875f761eb2eb13fcce77
BLAKE2b-256 checksum
How to use checksums
4b22c6b7099f9dff681c94035f2e2b057ad86fb38c489983f19f24795be6254c
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.1.0-cp310-abi3-win_amd64.whl

Download URL sqac-1.1.0-cp310-abi3-win_amd64.whl
Size 274.4 kB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
5706b7d3718e553e086bec42173b4a122fa8129afec2a0e0ae51a0271177abe4
BLAKE2b-256 checksum
How to use checksums
dca1b4a5fc31cde9ba5eb57ebf618ad2114561489a067052dc3c4032175bb757
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.1.0-cp310-abi3-musllinux_1_2_x86_64.whl

Download URL sqac-1.1.0-cp310-abi3-musllinux_1_2_x86_64.whl
Size 440.6 kB
Tags CPython 3.10 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
96ee2639138d14bb8dc0284299ef0e1bb9a8b002893b05c0a1bfc93507c8dfa0
BLAKE2b-256 checksum
How to use checksums
e83b4edf775c24c9c86c1590811c2e26441fba21a73ab0d2fcc83f45951901c0
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.1.0-cp310-abi3-manylinux_2_28_x86_64.whl

Download URL sqac-1.1.0-cp310-abi3-manylinux_2_28_x86_64.whl
Size 358.7 kB
Tags CPython 3.10 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
ea1f86df7baf55f2d2daa5815de01aa2bbbdcbd5ea978e733d6182f29d248c0f
BLAKE2b-256 checksum
How to use checksums
ef7f9df0a7d6c324cbfba9bfc92e07f9594ff4018f035e1d952338f880379090
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.1.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.1.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