Persistent episodic memory for AI coding: capture, retrieve, brief, dream cycle, cross-project.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
One-click editor setup isnβt available for this listing yet β we donβt have a confirmed install command, and weβd rather show nothing than point your editor at the wrong package or host. Follow the projectβs own setup instructions, linked above.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Tempera.
tempera_session_startCall ONCE at the very start. Returns any clarifying question tempera drafted after a previous failed/partial session in this project.
tempera_briefCall once the file set is known. Joins pending ask-back, reasoning template, top correction categories for these files, should-have-asked triggers, and calibration warning into one response. Pass `task_type` + `domain` for richer output. Set `cross_project=true` to supplement with rows from other pβ¦
tempera_retrieveSearch for similar past episodes. Set `scope="cross-project"` to include transferable claims from other projects.
tempera_templatePull the reasoning template stored for a `(task_type, domain)` pair. The step sequence past wins followed.
tempera_log_correctionWhen the user corrects an assumption / decision / piece of code. Categorized log; the brief surface uses it.
tempera_log_should_have_askedWhen you realize mid-task you should have asked a question up front. Records the trigger context, the question, and the eventual answer.
Tempera gives Claude Code a persistent memory that learns from experience. Instead of starting fresh each session, Claude can recall past solutions, learn what works, and get smarter over time.
The Problem: Claude Code forgets everything between sessions. You solve the same problems repeatedly, and Claude can't learn from past successes or failures.
The Solution: Tempera captures coding sessions as "episodes", indexes them for semantic search, and uses reinforcement learning to surface the most valuable memories when relevant.
| Mechanism | What It Does |
|---|---|
| Feedback | Helpful episodes gain utility score |
| Multi-hop Bellman Propagation | Value spreads through the similarity graph across multiple hops |
| Session Chaining | Related episodes in multi-step tasks are linked and boost each other |
| Temporal Credit | Episodes before successes get credit (even across session boundaries) |
| Recency Boost | Fresh episodes can be weighted higher in retrieval (opt-in) |
| Scope-aware Decay | Project-bound claims fade in ~70 days; language-level facts last ~3 years; universal truths never decay |
| Verification State | Captures advance from Untested β TestsPass β Merged β StableNoRevert; later states weigh more |
| Calibration | Per-(task, project) verified vs. declared ratio surfaces overconfidence |
| Dream Cycle | Nightly reflection, pattern detection, contradiction probing, and template extraction |
| Self-Improvement Log | Tracks corrections, missed questions, and queues clarifying questions for next session |
| Cross-Project Transfer | Claims marked language / crate / domain / forever-scoped surface across projects |
Over time, frequently helpful knowledge rises to the top, while stale or unhelpful memories fade away β and the system itself accumulates a per-project picture of where it tends to be wrong.
Beyond the basic capture/retrieve loop, Tempera ships several higher-order surfaces. Each is opt-in but all flow through the same MCP tools β Claude can use them without any custom client code.
falsifiability score, a category, and a ValidityScope (Forever / Language / Crate / Domain / Workaround / Project). Decay rates are per-scope β universal truths never expire, project-specific conventions fade in months, workarounds expire when the underlying issue closes.verify_advance β decay β reflect β patterns β contradict β templates. Reflections turn high-signal days into prose; patterns surface themes that keep recurring; contradict probes pairs of frequently-retrieved episodes for factual disagreements; templates extract reusable step sequences from successful task clusters.tempera_brief(files, task_type?, domain?) returns pending ask-backs, the matching reasoning template, top correction categories for those files, should-have-asked triggers, and a calibration warning if the agent's track record on this kind of task is shaky.tempera_retrieve and tempera_brief both accept cross_project=true. Transferable claims (anything not project-scoped) surface across projects; Project-scoped knowledge stays bound to its codebase. Legacy captures default to non-transferable until reclassified.On first use, Tempera downloads the BGE-Small embedding model (~128MB) for semantic search. This happens automatically and only once:
The model is cached globally at ~/.tempera/models/ and shared across all projects.
The --scope user flag makes it available across all your projects.
Exit and restart Claude Code to load the new MCP server.
Run /mcp in Claude Code. You should see tempera with 12 tools.
Once connected, Claude has access to these 12 tools, grouped by purpose:
| Tool | When to Use |
|---|---|
tempera_session_start | Call ONCE at the very start. Returns any clarifying question tempera drafted after a previous failed/partial session in this project. |
tempera_brief | Call once the file set is known. Joins pending ask-back, reasoning template, top correction categories for these files, should-have-asked triggers, and calibration warning into one response. Pass task_type + domain for richer output. Set cross_project=true to supplement with rows from other projects. |
tempera_retrieve | Search for similar past episodes. Set scope="cross-project" to include transferable claims from other projects. |
tempera_template | Pull the reasoning template stored for a (task_type, domain) pair. The step sequence past wins followed. |
| Tool | When to Use |
|---|---|
tempera_log_correction | When the user corrects an assumption / decision / piece of code. Categorized log; the brief surface uses it. |
tempera_log_should_have_asked | When you realize mid-task you should have asked a question up front. Records the trigger context, the question, and the eventual answer. |
| Tool | When to Use |
|---|---|
tempera_capture | Save session as an episode. Auto-detects session links and runs propagation. The intent-extraction LLM call also suggests a ValidityScope for cross-project routing. |
tempera_feedback | Mark retrieved episodes as helpful or not. Drives the utility-learning loop. |
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/tempera)<a href="https://allmcps.com/mcp/tempera"><img src="https://allmcps.com/api/badge/tempera?style=directory" alt="Tempera on AllMCPs" /></a>