SuperAPIAI Directory

THOR-memory-bible-for-AI

github.com · AI agents

Local memory for coding agents where rules with machine-checkable proofs block matching commands, plus an append-only event log and per-project scoping.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)

About this tool

Purpose

THOR is a local memory system designed for AI coding assistants (such as Claude Code). The core problem it solves is this: most memory tools can only "remind" the assistant, whereas THOR can "refuse." The user tells it a rule, pitfall, decision, or project shape once in natural language, and afterward, when the assistant is about to touch a relevant file or run a relevant command, that note automatically appears in front of the assistant, rather than waiting for the user to search for it.

Main Capabilities

  • Refusable notes: Notes with a "proof"—that is, a small check that can be run immediately, such as "this file still contains that line"—can directly block a matching edit or command execution before it happens. Notes without a proof can only remind, not prohibit.
  • Real-time proof validation: Proofs are run against the actual project at critical moments. If a note has become outdated and no longer describes the real situation, the proof fails, the note no longer has blocking power, and false blocks are avoided.
  • Permanent retention and conflict handling: Every note is kept permanently, and old versions are retained after modification. If two versions conflict, THOR keeps both and informs you, rather than silently discarding one.
  • Per-project isolation: Each project has independent memory, and one repository's rules do not leak into another.
  • Health check: Reports which proofs have become false, which notes point to files that do not exist, and which notes have never been shown because things are too crowded.
  • Session review (/thor-eval): About once a week per project, it focuses on handling unjudged notes, fixing outdated content, and counting how many notes can refuse and how many times they have actually refused.
  • Local operation: By default, everything stays on the local machine, with no account, no key, and no server. Only two kinds of content may leave the local machine, and both require the user's explicit consent: submitting bug reports about THOR itself to GitHub (file paths, project names, computer names, addresses, keys, and passwords are removed before sending), and a memory backup location actively specified by the user.
  • Reading code: After being pointed at a project, THOR reads the source code and documentation, so questions like "how does this work here" are answered based on the actual project.

How to Use

Send the repository link to the AI assistant (Claude Code) and say "install THOR." The assistant will complete the installation on its own, and the user only needs to close and reopen Claude Code once. For detailed steps, see the Getting started section of the repository. When installing, the assistant should read AGENTS.md. After installation, the assistant can add, correct, and retire notes, and mark which notes are genuinely helpful. Users can run /thor-eval at the end of a session for review. THOR reads the user's plan based on Claude Code's settings file and confirms it in the first session question; it can also be recorded via install --set-plan max or install --set-plan small. Short records of recent commands and replies are kept next to the memory, used to test rules, never leave the local machine, and can be disabled via install --set-recording off.

Use cases

  • A project has hard constraints on certain dependency versions, configurations, or commands, and the assistant needs to be prevented from inadvertently breaking them.
  • You want the assistant to automatically see relevant past decisions and pitfalls before modifying specific files or running specific commands.
  • You need to keep rules isolated across sessions and projects, and you don't want data going to the cloud.
  • You want to periodically clean up and evaluate memory quality, to avoid rule files bloating into a "phone book" that no one reads carefully.

Limitations

  • Only notes with real-time verifiable proof can block operations; most notes can only remind. Proofs need to be written manually by the user or the assistant, and THOR cannot automatically determine whether the text exactly matches the real command.
  • When a proof becomes invalid, it will not block any operation, only report that it needs checking.
  • Review frequency is limited by the user's plan: Pro and below plans are strictly once per week, Max plan is once per week, but when problems are found it returns daily until a review finds no problems.
  • Installation and review depend on the Claude Code environment.
  • The project is free and licensed under GPLv3, and can be voluntarily supported via Ko-fi or YouTube membership, with no paywall.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools