Skip to content

crottolo/alterego

Repository files navigation

AlterEgo

A pattern for personal AI memory that follows you across tools, learns from how you work, and stays under your control.

What this is

AlterEgo is a specification, not an implementation. It describes a pattern for a local, cross-vendor memory layer that captures events from AI tools (opencode, Claude Code, Cursor, Gemini, Codex, and others), distills them into typed, time-aware memories, and injects compact context back into new sessions.

Read the full spec: SPEC.md — also available as Gist for easy sharing.

Why

  • Your AI tools forget you between sessions.
  • Vendor memory is opaque, server-side, and locked to one vendor.
  • Manual context files (CLAUDE.md, AGENTS.md) go stale.
  • No one is building a cross-tool, observation-based, user-owned memory layer.

This document defines what that layer would look like.

Documentation

Examples

  • examples/f0-extractor/ — runnable deterministic-first reference implementation in Python 3 (stdlib only). Reads canonical events JSONL, produces a me.md profile. Ships with 93 synthetic events and a sample output.

Status

Phase 0: specification. No code yet. The document is intended to be shared with an LLM agent and instantiated against your specific tools and domain.

If you build an implementation, an adapter, or a fork — open an issue (use the Adapter Proposal template) or PR linking to it. The pattern grows by accumulation.

Inspiration

License

CC0 1.0 Universal. Copy, fork, modify, redistribute without attribution.

About

A pattern for personal AI memory across tools. Observational, cross-vendor, user-controlled.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors