Skip to content

micahhausler/recall

v0.4.4Apache-2.0

Keeps an agent's memory honest: archives coding-agent transcripts, reports skill use, lints context files, and schedules the jobs that do so.

recall

Turn your coding agent's session history into memory: rules, skills, and tools you review.

Every time you interact with an LLM, you spend time and attention steering it toward your goal. You remember your past sessions, but each new session starts with no memory of your corrections or the model's own failures. So you end up writing long prompts full of safeguards, hoping to get what you want on the first try. Some of those safeguards move into rule files loaded into every session, such as ~/.claude/CLAUDE.md or ~/AGENTS.md. That helps, but every line costs context in every session, and someone has to keep the file pruned.

recall learns from your agent sessions and turns those lessons into rules, skills, and tools.

It works by reading your session transcripts with a small model to find repeated instructions, workflows, skills, and failures across sessions and even across harnesses. Once a pattern shows up often enough, recall proposes candidate rules, skills, and tools to you in a GitHub pull request or an on-disk git branch. recall never edits a live file, every change waits for your review.

Tenets

  • Corrections should stick. A correction can be a one-off, so recall waits until it comes up again. Once it has, you shouldn't have to make it a third time.
  • Rules are earned. A rule or skill stays only while your sessions keep showing it's needed. Every line costs context in every session, so one that stops earning its place goes.
  • You own your context. You decide how much it changes on its own.
  • Rules graduate to code. If a script can check or enforce a rule, it should, and the prose rule retires. A rule the agent can't break beats one it has to remember.
  • Native memory is an input, not a competitor. Your harness's own memory notes are evidence recall reads, lints, and promotes from. What recurs there earns a place in a reviewed context file that travels to every machine.
  • Memory, and nothing else. recall captures sessions, archives them, and learns from them. A feature that isn't about what your agent should remember belongs elsewhere.

How it works

recall runs in four steps:

  • Archive: save each week's session transcripts to the store, one compressed tarball per harness, machine, and week.
  • Map: a model reads each new or changed session once and records observations: your corrections, context you repeated, tool failures, skills it should have used, and rules it followed or broke.
  • Reduce: group alike observations across sessions and hosts into counted candidates. From those, propose new or reworded rules, skill changes, retiring rules no session has needed lately, and scripts for rules that code can enforce.
  • Propose: stage each proposal as its own commit in a git worktree, never a live file, and send each changed repo to you for review as a pull request or a local branch.

The model calls go through your harness's own command-line tool, so they use the login and billing you already have.

Read more: the learning loop design, and config.example.toml for every key.

Requirements

Archiving needs only the recall binary. The rest depends on what you turn on.

  • git for learning. Proposals are staged on a git branch, so every context file has to sit in a git checkout.
  • claude or kiro-cli for learning. Model calls go through your harness's own CLI.
  • gh for review by pull request (learn.review = "pr") and the github evidence source.
  • cron or launchd for schedules installed by recall recur.
  • AWS credentials for an S3 store. recall talks to S3 itself, so the AWS CLI is optional.
  • Go to build from source.

Install

With Homebrew, on macOS or Linux; the tap is this repo:

brew tap micahhausler/recall https://github.com/micahhausler/recall
brew install --cask recall

With Go:

go install github.com/micahhausler/recall/cmd/recall@latest

Or download a release archive for macOS or Linux on amd64 or arm64 from the releases page; checksums.txt beside them has each archive's SHA-256.

To use the skills, install the repo as a Claude Code plugin:

claude plugin marketplace add micahhausler/recall
claude plugin install recall@recall

The skills run in Claude Code (not the Claude desktop app) and drive the recall binary, which reads transcripts from every enabled harness. recall init is the short path for a new machine; the recall-setup skill walks you through every choice, including an S3 store and scheduled jobs. The plugin also installs the session-end hook, which does nothing until [hooks] in your config turns a step on.

In Kiro CLI, recall init installs the keep and recall-setup skills as a Kiro power when the kiro harness is on (recall config set harness.kiro.enabled true), from files built into the binary, and rerunning it after an upgrade updates them. The Kiro IDE can import the repository as a power from its GitHub URL.

Kiro's session-end hook kills every process it starts, so it can't run recall's background worker; with Claude Code off (recall config set harness.claude.enabled false) recall init declares recur jobs for the loop instead, and recall recur sync installs them.

Supported harnesses

recall supports Claude Code and Kiro CLI.

HarnessTranscriptsContext filesRunner
claude (on by default)~/.claude/projects~/.claude/CLAUDE.md and its @ importsclaude -p
kiro~/.kiro/sessions, both the v2 and v3 engine layouts~/.kiro/steering/**/*.md, including AGENTS.md, and the Markdown files they linkkiro-cli chat --no-interactive

Harnesses recall has no adapter for plug in out of tree: a [harness.<name>] table reads a known harness's transcripts from another home, or recall's own normalized events, which an import plugin can fetch from systems recall can't read in place. docs/harnesses.md covers both.

Claude Code isn't required. With harness.claude off, the loop's defaults follow Kiro: learn.runner is kiro, and graduated skills land in ~/.kiro/skills. The kiro runner applies through text mode: Kiro trusts a tool on any path, so it can't keep edits inside the apply worktrees, and it gets no tools. Its input carries the files the proposals change, it answers with each changed file whole, and recall writes only the paths it listed, inside the worktrees.

Skills drive the binary from inside a session

  • recall-setup: Walk through first-time setup, with every choice recall init makes for you.
  • keep: Propose up to three lessons at the end of a session and apply the ones you approve.
  • archive-chats: Set up, check, or run the weekly archive, including an S3 bucket.
  • recur: Declare, change, sync, or debug recurring jobs.
  • report-issue: Draft a GitHub issue on this repo and file it only after you approve the text.

Extend

Add your own steps to a recall skill or the reduce and apply prompts without forking them. List files under [extensions], keyed by skill name (keep, recur, archive-chats, report-issue), learn-reduce, or learn-apply:

[extensions]
keep = ["~/.config/recall/keep.md"]

Each skill ends with an "Owner additions" section that loads recall extension <name> when the skill starts, and the reduce and apply steps append learn-reduce and learn-apply to their input as owner instructions. The files are instructions with the skill's permissions, so keep them in your own dotfiles. For tools of your own, keep a separate private repo or plugin and point these files at it.

Configure

Config is TOML, layered: ~/.config/recall/config.toml, then every ~/.config/recall/config.d/*.toml in lexical order. A later file wins key by key; enabled = false in a later file turns off a job or harness an earlier one declared. $RECALL_CONFIG overrides the base path.

Every key is documented in config.example.toml.

recall config show                 # the merged result, with the file and line each value came from
recall config get store.kind       # one value
recall config set store.kind s3    # writes only to config.d/90-set.local.toml, never to a file you edited

An S3 store needs AWS credentials and permissions on the bucket. docs/store.md lists the IAM actions each role needs and has an example policy.

Inspirations

License

recall is licensed under the Apache License 2.0.