Skip to main content

A stateful personal agent with episodic memory for Claude Code.

Project description

vinod

A stateful personal agent that learns how you work.

Vinod passively observes your work patterns — Claude Code sessions, file changes, decisions made — and builds an episodic + semantic memory of your behavior over time. It surfaces that memory back to Claude Code automatically via MCP, so every new session picks up exactly where the last one left off.


Install

pip install vinod
vinod init

That's the entire setup. vinod init scaffolds ~/.vinod/ and registers the MCP server in ~/.claude/settings.json. Restart Claude Code and it loads your memory automatically on every session start.


How it works

The problem it solves

Every Claude Code session starts cold. You paste a handoff doc, re-explain the project, re-establish context. For a one-off task that's fine. For a project you're working on for months, it's friction that compounds.

Vinod replaces the handoff doc with a living memory. Instead of you writing "here's what we built last time," vinod has already read your episodic log and knows.

What gets created by vinod init

~/.vinod/
├── CONTEXT.md                  # paste this into any Claude session as a fallback
├── agent/
│   ├── system_prompt.md        # Vinod's identity and role
│   └── guardrails.md           # what it will and won't do
└── memory/
    ├── episodic.jsonl          # append-only log of sessions and events
    └── semantic/
        └── beliefs.json        # stable behavioral patterns (you edit these)

The MCP server

After vinod init, Claude Code connects to Vinod via MCP (stdio transport). Three tools are exposed:

Tool What it does
read_memory Returns the last N episodic entries (default: 15)
write_episode Appends one episodic entry from within a session
get_beliefs Returns beliefs.json — your stable invariants

Claude Code can call these tools directly. In practice: at session start Claude reads memory, reconstructs context, and asks what you want to work on. At session end it writes an episodic entry summarizing what was built.

No cloud. No API key. Everything stays in ~/.vinod/.


User journey

Day 1

pip install vinod
vinod init
# restart Claude Code

Open a new Claude Code session. Claude now has access to read_memory and write_episode. On first use the log is empty — start working normally and close the session with "close session." Claude writes the first episodic entry.

Day 2+

Open Claude Code. Claude calls read_memory, reads the last 15 entries, and reconstructs what you were working on. You pick up where you left off without pasting anything.

Checking state

vinod status
Episodic entries : 23
Last 3 entries:
  [2026-04-27T01:06] agent_vinod -- Built real vinod pip package (0.2.0): vinod init...
  [2026-04-26T22:13] crosscommitvuln-bench -- Mined 3 new CVEs, dataset at 27 complete+sast
  [2026-04-26T19:17] crosscommitvuln-bench -- Completed full pipeline on all 20 CVEs
Beliefs          : 3
MCP registered   : yes

Writing a manual entry

vinod log -p my-project -s "decided to switch from SQLite to Postgres" \
  -d "latency under concurrent writes was unacceptable at 10k rows" \
  --event decision_made --tags decision infra

Useful for recording decisions that happen outside Claude Code — architecture calls, things you read, context that would otherwise be lost.


CLI reference

vinod init [--no-mcp]    scaffold ~/.vinod/, register MCP with Claude Code
vinod status             show episode count, last 3 entries, beliefs count, MCP state
vinod log                write a manual episodic entry (see --help for flags)
vinod mcp                start the stdio MCP server (Claude Code calls this automatically)

Memory architecture

Vinod uses a four-type memory model:

Type Storage Description
Episodic episodic.jsonl Append-only log: sessions, decisions, file changes
Semantic beliefs.json Stable facts and invariants you've confirmed
Procedural future: QLoRA weights Behavioral patterns learned from the corpus
Working in-context only What Claude holds during a live session

Right now episodic + semantic are live. Procedural memory (fine-tuning on your own corpus) is the Day 75+ phase of the roadmap.


Fallback: no MCP

If you're using Claude web or a context where MCP isn't available, paste ~/.vinod/CONTEXT.md at the start of your session. It points Claude to the episodic log and beliefs file and gives the same reconstruction instructions.


Research context

Vinod is the research infrastructure for a paper on personal behavioral modeling. The core hypothesis: a model of a person (learned from longitudinal behavioral data) is qualitatively different from a memory system for a conversation. Infinite context windows solve retrieval; they don't solve personalization.

If you're a developer interested in running the observer on your own machine and contributing behavioral data to the study, reach out: arunabh.majumdar@gmail.com.


Status

0.2.0 — MCP server live, episodic + semantic memory working, vinod init/status/log/mcp commands functional.

Observer pipeline (passive file watching, Google Sheets integration) and belief consolidation (episodic → semantic weekly rollup) are next.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vinod-0.4.0.tar.gz (14.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vinod-0.4.0-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

Details for the file vinod-0.4.0.tar.gz.

File metadata

  • Download URL: vinod-0.4.0.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for vinod-0.4.0.tar.gz
Algorithm Hash digest
SHA256 ed93bd703b6dbba96c521ad7dae7f809f7f6e9f0ff43c9489974419baa291072
MD5 e77cea55ee4423034bef1566c78275e1
BLAKE2b-256 f438897de7f1b71f850e3be34081e0d5b231ac0c9a852cafff75b39f1f7b9d53

See more details on using hashes here.

File details

Details for the file vinod-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: vinod-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 14.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for vinod-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9ce886e26962ba1fa94545287502535f4557fd8af1e2892cc7a244c7850d6ca8
MD5 5be2db471ab69f28099979594dc13ee1
BLAKE2b-256 df7e5f3fa7becb41d73d9bd4453dd08912fd14fa582e4d6f0cf33de02bd3ab87

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page