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.2.3.tar.gz (10.3 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.2.3-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for vinod-0.2.3.tar.gz
Algorithm Hash digest
SHA256 e1f995a163c41caf70c0644d325549dd914c51c0e825125b260ae20742a32ea3
MD5 b0004b91f347fd8e3961a12003fd88bd
BLAKE2b-256 ce9f934311678ac393a4a1e96e1895a11ead211e5bf4a02b9d83a04f10b88edb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vinod-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 9.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.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7dc2875dd7c11e6611920b94332247ab27c965ed89b779bcc6ec5bdf36ba84db
MD5 a03ad4d5b5703593949db27a39e2470b
BLAKE2b-256 8c7254240427dd05c91523b1e87ab9420cebfe34d999d78debbadc35df351b9d

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