A small, deliberate core memory shared by every coding agent.
AI agents do not get better by remembering everything. If every conversation, temporary state, and project detail is pushed into long-term memory, useful facts are buried under stale and irrelevant context. Memory without selection is noise.
Keepygaga keeps only a small set of durable facts that remain useful across tasks: who the user is, how they want an Agent to work, and a few ongoing topics, projects, responsibilities, or relationships. Temporary state stays in the current conversation or its direct source, such as a calendar, task manager, project documentation, issue tracker, or Git history. A fact enters core memory only when it has been deliberately judged useful across tasks.
That carefully selected core memory belongs to the user and follows them across Codex, Claude Code, WorkBuddy, Grok, Hermes, and Antigravity CLI instead of being trapped in separate host silos. Its source of truth is readable Markdown in one private Memory Root, preferably inside an Obsidian vault; any Markdown editor remains compatible.
The product has three deliberately separate surfaces:
- Obsidian or another Markdown editor is where people inspect, correct, and organize memory.
- A managed block in each host's global rules delivers the Agent Contract, Profile, Preferences, and a Memory Index. Agents read and edit the Memory Root directly with their native file tools.
- The
keepygagaCLI installs and maintains that delivery:sync,check,doctor, host wiring, status, repair, and uninstall. It is not a daily memory browser or editor.
Keepygaga needs no database, embeddings, MCP server, Hooks, or source checkout. Obsidian is the recommended human interface, not a runtime dependency.
Core memory contains profile.md, preferences.md, and direct pages below topics/ and areas/; everyone the user knows shares topics/people.md. Each page has description and aliases frontmatter and one Fact per body line: - [stated|observed] content [YYYY-MM-DD]. Ongoing projects share the optional index areas/projects.md, one line per project: name, brief, canonical Authority, and overall stage. Versions, releases, and recent progress are looked up live, not remembered.
keepygaga sync renders one block and writes it into the global-rules file of every recorded host, replacing only that block. The block lists, in order, the Agent Contract, Profile, Preferences, and a Memory Index with one line per dynamic page, path — description (aliases), under the absolute Memory Root and marked as data. Agents read a page only when its index entry matches the task. On macOS a per-user LaunchAgent runs sync when the Memory Root changes, with a five-minute fallback for in-place edits; elsewhere run keepygaga sync after editing.
The block never exceeds 8 KB of UTF-8 ([memory.limits] block_bytes). When memory grows past it, sync first drops index aliases, then descriptions. If the block still does not fit, the last block that fit stays in place with one notice line naming the page to trim and the overflow in bytes; accepted blocks always leave room for that line. keepygaga check reports format problems; a malformed page is reported, never blocked, and never hides the other pages.
Host-native memories can continue to own host-specific conversation recall and project learning. Keepygaga owns stable facts about the user that hold across projects and Agents. Personal preferences are how to address them, language, tone, and reply format. Host global rules hold how Agents work (working methods, boundaries, and output standards, with the shared part kept in sync across hosts) and the safety and authorization red lines. Project documents hold project commands, terms, and decisions.
Requirements: Python 3.12+ and uv.
Give the Agent host you are currently using this one sentence:
Quickly install or update Keepygaga for the Agent you are running in now from the latest official Release at https://github.com/TimWongUp/keepygaga: automatically choose install, update, current-host repair, or no action; preserve existing configuration and memory; ask me only for first-time initialization, a conflict, or a possible overwrite; then report the result and any restart requirement.
The Agent Fast Install To-do is the authoritative procedure for this path. It checks the installed version before downloading, limits work to the selected lifecycle branch and current Agent, and reuses existing data. The heavier Home Page source migration is loaded only for first initialization or a concrete duplicate. Host-native memory remains unchanged; when requested, the Agent supplies current official host documentation for user-managed configuration.
Download the keepygaga-X.Y.Z-py3-none-any.whl asset and SHA256SUMS from the same latest GitHub Release to private, non-symlinked paths. Immediately before installation, verify the exact wheel's SHA-256 entry and execute that same absolute path, replacing X.Y.Z below with the release version:
uv tool install /absolute/private/path/keepygaga-X.Y.Z-py3-none-any.whl
uv tool update-shellRestart the terminal so the tool directory is on PATH, then run keepygaga install.
The checksum detects corruption or an asset mismatch. It is not a signature, provenance proof, independent publisher authentication, or verification of dependencies resolved from the package index.
Interactive installation first offers a Memory Root path, then detects available hosts without selecting them on the user's behalf. Point it at an existing agents-memory tree to connect another Agent to the same memory. Once configured, later installs reuse that root automatically. --yes disables prompts even in a TTY, reuses the configured Memory Root or the platform default, and requires explicit target hosts:
keepygaga install --yes --host codex --host claude-codeSupported adapters are Codex, Claude Code, WorkBuddy, Grok, Hermes, and Antigravity CLI. For each selected host, install writes the managed block, grants the host write access to the Memory Root where a verified setting exists (Codex sandbox_workspace_write.writable_roots, Claude Code permissions.additionalDirectories), and removes the keepygaga MCP registration and Keepygaga-owned Hooks left by earlier releases. Unrelated host configuration is preserved.
The default configuration and memory paths are platform-native. To reuse an existing private memory tree non-interactively, pass --memory-root during the first install. Do not place the memory tree in a public or automatically published directory.
New installations write the block limit with its default. Existing configuration files are never rewritten; the older Store quota fields are accepted and ignored:
[memory.limits]
# Maximum UTF-8 size of the managed block that sync writes into global rules.
block_bytes = 8192keepygaga sync
keepygaga check
keepygaga doctor --json
keepygaga status
keepygaga status --latest-version vX.Y.Z --host codex
keepygaga repair --yes
keepygaga uninstall --yessync writes the block only when its content changed. check is read-only. doctor adds configuration, block-size, stale-block, and watcher checks. status treats the install-state file as discovery data only. With the latest official release tag and current host, it returns a read-only lifecycle action: update, initialize, activate, repair, no_op, or manual_review. A missing launcher is the separate clean-install case. repair reconciles recorded hosts. uninstall removes the block, the legacy MCP and Hook registrations, and, with the last recorded host, the LaunchAgent; it preserves the configuration, the memory tree, and granted directory access.
For a current-host-only update, download the newer wheel and matching SHA256SUMS, rehash the exact absolute wheel path, set UV_TOOL_DIR to the lifecycle.tool_root returned by planned status for that command, run uv tool install --force /absolute/private/path/keepygaga-X.Y.Z-py3-none-any.whl, then run keepygaga install --yes --host HOST. This release has no Hook command, so install also strips Keepygaga-owned Hook commands from every other recorded host (sibling_hooks) and syncs every recorded host's block. Hosts whose full reconciliation is still behind are listed as stale_hosts; run keepygaga repair --yes to reconcile them.
keepygaga upgrade returns manual_review without changing anything: uv tool upgrade cannot discover a newer versioned Release wheel. Live installation metadata distinguishes the package manager from its source; locally downloaded archives require origin verification before runtime replacement because their metadata does not retain the official download URL. Same-version initialization and host reconciliation remain available without replacing the runtime.
Claude Code lifecycle commands honor CLAUDE_CONFIG_DIR; keep that environment variable set for install, status, repair, and uninstall.
Advanced deterministic host commands remain available as keepygaga host setup|uninstall HOST.
- Every connected host already loads its global-rules file at session start and after compaction, so the block reaches every session, subagents included, with no MCP server or Hook.
- Changes made during a session are visible from the next session.
- The Memory Index is data inside global rules: entries stay short route labels, and the whole index, including
topics/people.md, is visible to any subagent that loads global rules. - Application, Agent Contract, installer state, and memory schema versions evolve independently.
Configuration-level tests prove projection, preservation, idempotency, and failure boundaries. A host is live-verified only after its real client loads the block.
uv sync
uv run pytest -q
uv run ruff check .
uv run pyright
uv run python scripts/smoke_sync.py
uv build
uv run python scripts/check_distribution.py dist/*The keepygaga-knowledge sibling project is separate and is neither packaged nor imported by Keepygaga. See Architecture, Operations, and Contributing.
Keepygaga's core memory design was inspired by Claude Code's memory system.
Thanks also to the Claude Code team for their pioneering work on AI memory.
Memory files are trusted local input and may contain personal data. Keep the memory root private, review changes before committing them anywhere, and report vulnerabilities through GitHub private vulnerability reporting.
MIT licensed. See LICENSE.
