Solitaire: Open-Source Identity Layer for AI Agents Built with Claude Code

Solitaire is an open-source project that provides an identity layer for AI agents, built primarily using Claude Code as the development environment. Unlike agent memory tools that focus on recall, Solitaire addresses how agents work with users over time, aiming to move beyond what the creator describes as "a smart stranger with a better notebook."
Key Features and Architecture
The system has been in production since February, with the current version shaped by 600+ sessions and 15,700+ entries in real use. Key architectural decisions emerged from observing failure modes and fixing actual problems:
- MCP server architecture and hook system designed around how Claude Code handles tool calls and session state
- Retrieval weighting that adjusts based on what actually proved useful in practice
- Boot structure and persona compilation refined through production use
- Self-correcting knowledge graph with contradiction detection, confidence rescoring, and entity relinking
- Tiered boot context so agents arrive briefed rather than blank
Identity and Behavior System
Solitaire's identity system evolves through actual interaction rather than static configuration:
- Disposition traits (warmth, assertiveness, conviction, observance) compile from interaction patterns and evolve across sessions
- Persona and behavioral identity develops from real use, not config file editing
- Session residues carry forward how work felt, not just what was discussed
- New users get guided onboarding that builds the partner through conversation - pick a name, describe needs, and the system assembles persona from answers (no YAML required)
Local-First Design
The local-first approach is non-negotiable in the design:
- All storage is SQLite + JSONL in your workspace directory
- Zero network requests from the core engine
- No cloud dependency, no telemetry, no external API calls for memory operations
- Automatic rolling backups with no setup required
- Your data stays on your machine
Installation and Compatibility
Install via pip install solitaire-ai (note: not install solitaire, which is an unrelated package). The project is built for Claude Code first but supports other agent platforms. It's memory-agnostic - works with existing memory layers or provides one if needed.
License and Availability
Free and open source under AGPL-3.0, with commercial licensing available for proprietary embedding. Available on PyPI and the MCP Registry. Two research papers from the longitudinal work are currently in review.
📖 Read the full source: r/ClaudeAI
👀 See Also

Building a Local Voice-to-Text macOS App with Claude Code: Vext Case Study
A developer spent 3 months building Vext, a macOS voice-to-text app using Whisper on Apple Neural Engine. Claude Code helped with Rust/Swift FFI, Core ML optimization, and hotkey architecture. The app runs 100% offline, transcribes 60s audio in ~400ms.

Testing MiniMax M2.7 via API on Three Real ML and Coding Workflows
A developer benchmarks MiniMax M2.7 against Claude Opus 4.7 on three real tasks: refactoring a PyTorch project, drafting Obsidian notes, and more. Key findings and setup included.

TailClaude: Open Source Web UI for Accessing Claude Code Sessions from Mobile and Browser
TailClaude is an open source web UI that lets you access and continue Claude Code sessions from your phone or any browser in under a minute using Tailscale. The project was built with Claude Code assistance for scaffolding, SSE streaming backend, mobile-first chat UI, and QR code integration.

Show HN: WUPHF — Karpathy-Style LLM Wiki with Markdown + Git as Source of Truth
WUPHF ships a wiki layer for AI agents using Markdown + Git for persistence, bleve (BM25) + SQLite for retrieval, with entity fact logs, wikilinks, and a daily lint cron. Runs locally with no vector DB dependency yet.