Listed from the MCP registry; nobody on Odel publishes it.
Local memory for coding agents; a rule with a proof can refuse. Full install with hooks: the repo.
Runs on your machine from its package; the steps are below.

At most: moves money, runs code or commands, deletes data, or sends messages for you.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Run
docker run -i --rm ghcr.io/nworks3d/thor-mcp:2.6.13
MCP client config
{
"mcpServers": {
"thor": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/nworks3d/thor-mcp:2.6.13"
]
}
}
}
Most memory tools can only remind your assistant. THOR can refuse.
Give it a note with a proof attached - a small check it can run right now, like "this file still contains that line." From then on the note stops being advice. THOR refuses the matching edit or command before it runs. Not a suggestion your assistant is free to skip. A hard stop.
That proof runs live, at the exact moment it matters, against your actual project. A note that has gone stale, that no longer describes what is really there, quietly stops counting as proof - so it can never block you by mistake.
Other local memories can refuse a write too. What is different is where the block comes from: a proof, checked live, never a rule taken on faith. And the whole loop that produces it, learning included, runs in one place: this machine.
Most notes only inform: pinned so they are handed over at the start of every session, or surfaced the first time your assistant reaches for the file or command they are about.
A note that keeps being served without ever being judged is asked about in
one block, not one note at a time: the end-of-session review (/thor-eval),
which THOR asks for about once a week per project. THOR does not stop an
ordinary turn to ask whether one note helped or got in the way. The review
only names a note that fired in your own session, or in another session of
the same project - never one that only showed up in
other, unrelated projects. For a note that fired elsewhere, the review shows
where and when it fired. Two "this did not belong"
verdicts since the note was last rewritten stop a plain note from being served
again, though it stays there if you go looking for it. A rewrite of the note's
text, check or bindings starts that count again, and a note whose check can
refuse is never hidden this way.
A health check names what has rotted, out loud: proofs that now come out false, notes pointing at nothing, notes too crowded to ever be shown.
Everything that is not code - a recipe, a book, a training log - lives in its own library, kept apart, so it never competes with a deploy rule for room.
Everything stays on your machine by default: no account, no key, no cloud - including what it learns about which of your notes are worth keeping. The only two things that can leave it are listed under "Stays on your machine" below.
Get started. Send this repository's link to your AI assistant (Claude Code) and say "install THOR". It does the whole setup itself; the only thing it asks of you is to close Claude Code and open it again, once. The full step-by-step is under Getting started further down. If you are the assistant, read AGENTS.md.
THOR is free and GPLv3. If it earns its keep, you can support the work: buy me a Ko-fi or become a YouTube member - no pressure, no paywall, everything stays open either way.
Are you an AI assistant, setting THOR up for the person you work with? Go straight to AGENTS.md. It is written for you.
Prefer watching? The video above walks through what THOR is and why it exists.
Remembers what you tell it. A rule, a gotcha, a decision, the shape of the project. Once, in your own words. It stays until you change it.
Hands it back at the right moment. Not a search box you have to remember. The note arrives while you are touching the file or running the command it is about, in a conversation that never heard it.
Stops a wrong change, not just warns about it. A note carrying something checkable can refuse the write outright. Most notes only inform, and that is deliberate: a rule that blocks honest work is the most expensive thing this system can do.
Keeps projects apart. Every project has its own memory. One repo's rules never leak into another.
Says when it has rotted. It counts its own dead ends: notes pointing at files that moved, notes nothing ever reads, notes crowded out by louder ones. Out loud, in plain language, so you can fix them.
Stays on your machine. No account, no key, no server. THOR never sends
anything on its own. Exactly two things can leave your machine, and only
because you say so: a bug report about THOR itself, sent to its GitHub page only
after your explicit yes to the exact text shown (file paths, project and
computer names, addresses, keys and passwords are removed first), and a backup
of your memory to a place you name, if you choose one - a backup kept on this
machine sends nothing. A short record of recent commands and replies, kept
beside the memory so THOR can test its own rules, never leaves the machine and
can be switched off (install --set-recording off).
Months ago you found out the hard way that this project is pinned to an older Node, and anything newer breaks the build. You said so once, and moved on.
Today a fresh conversation opens package.json to add a dependency, sees an
engine range that looks out of date, and is one helpful edit away from bumping
it. Right then, before it types, your own sentence is in front of it.
That is the whole idea. Not a search box you remember to use. A memory that shows up on time.
Most assistants read a rules file at startup - CLAUDE.md, AGENTS.md,
.cursorrules. It helps, and it runs out of road quickly.
Past a certain size it becomes a phone book, and nobody reads a phone book front to back. Your assistant skims it, takes the gist and moves on. The rule was in there. It got skipped. Nothing looks wrong afterwards, because the line is still sitting in the file, so you go on believing you are covered.
Here is the part that is genuinely different. Picture a fresh agent, no history, no idea what this project has already cost you, one keystroke away from the exact write that broke production last spring. A rules file would have mentioned it somewhere on page four. THOR stops the keystroke. The write does not happen - and what stops it is the note you wrote, the day it broke.
That is the whole promise: not better advice, but a wrong change that does not land.
Getting there is not free, and it is worth knowing before you start. A note only earns that power if it is written to earn it: tied to a real file or command, carrying something checkable that shows it still applies. THOR ships with a set of starting notes that teach exactly that, and refuses the ones that cannot work. AGENTS.md spells out the rules of the game in full.
Three things make that work, and they all live in one file on your machine:
1. Nothing is ever lost. Every note is kept forever. Change your mind and the old version stays too, so you can always look back at what you used to think and when it changed. If two versions of a note ever conflict, THOR keeps both and tells you, rather than quietly picking one and throwing the other away. It is the same care you would give your source code, given to the things you know.
2. It arrives at the right moment. THOR checks your memory on every message you send. And the first time your assistant reaches for a file or runs a command that one of your rules is about, that rule gets put in front of it right then. Before the mistake, not after.
3. Your assistant looks after it. It is not a notebook you have to fill in by hand. Your assistant can add notes, correct them, retire ones that stopped being true, and flag which ones actually helped. A THOR that is used well is a THOR your assistant is quietly tidying as you work.
It reads your code too. Point it at a project and it takes in the source and the documentation, so "how does this bit work here" gets answered from your actual project instead of a guess.
Everything stays on your machine by default. No cloud, no account, no subscription, and nothing to sign up for. If some optional piece is missing, THOR quietly falls back to a simpler way of working instead of breaking.
Showing a warning at the right moment is worth a lot, and for a long time that was all THOR could do. A note could speak. It could not refuse.
Version 2 lets a note carry a proof of its own currency: a small check THOR can run right now to see whether the note is still true of your project. "This file still contains that line." "That file is still there." "This character never appears in anything we write." Or, for catching something left out rather than something wrong: "every agent I spawn names which model to do the work with."
That changes what a note is allowed to do:
That first kind of stop reaches further than an edit made through your assistant's own tools: deleting the protected file, emptying it out, or overwriting it from a command your assistant runs counts as the same wrong change, and is stopped the same way.
The reason for the split is uncomfortable and worth saying out loud. Notes rot. You write one, the project moves on, and the note quietly becomes wrong. A tool that let any old note block your work would spend most of its time blocking you for reasons that stopped being true months ago. So THOR only hands that power to notes that can prove, at that exact second, that they still describe your project.
Which is why, as the top of this page already said, most of your notes will never block anything. The health check prints how many can, and you should look at it. On the author's own memory, when this was first measured, 2 notes out of 2999 could prove themselves; a day of deliberate work took that to 256. It moves by hand, because deciding what proves a note is a judgement about that one note.
That the number is printed at all is the point: a safety net nothing is attached to looks exactly like a safety net that works.
Leaving that to whoever thinks of it means it never happens. So THOR does it by itself, in two places.
When a note is written. You are not asked whether the note can be checked: THOR tries it. A rule that spells out a command, a flag or a filename is run through the same guard that watches your files and commands. If a check built on its own words really refuses the wrong change and lets ordinary changes through, the note is stored as a rule that can refuse. If no check holds, it is stored as a plain note: it still comes back at the right moment, it just cannot refuse anything. A note that is turned down says what to write instead.
For the notes you already had. THOR sorts the older notes itself at the start of each review (below). Only what needs your assistant's own judgement is handed over, in one block, so a memory written before any of this existed still gets worked through instead of being declared hopeless.
A caution worth stating plainly: THOR can prove that a note is wired so a matching change would be stopped. It cannot know whether the text you typed is the text the real command uses. A misspelled fragment is wired perfectly and guards nothing. That is why the health check reports two different numbers - how many notes could refuse something, and how many ever actually did. Trust the second one.
The review is the broom: run /thor-eval at the end of a session. It walks
through everything the memory has been served without a verdict, repairs what
has quietly drifted out of date, and settles the debt in one pass instead of
one note at a time. A session that never runs it simply leaves that debt for
the next one to inherit.
You do not have to remember to run it. Once a project has had an hour of work since its last review, and your assistant has put in at least ten minutes of its own work there, THOR holds the end of the assistant's turn until a review is filed and checked. THOR sorts your older notes itself at the start of the review; your assistant only handles what needs its own judgement, and the part of the review report that says what was judged and what was refused is written by THOR from its own record, so it cannot be made up. A review that was filed any other way than through THOR's own tool does not count, and THOR says why.
How often the review comes depends on your plan. The review draws on the
same usage limits as your own work, so THOR keeps it to one a week per project.
On a smaller plan (Pro and anything below Max) that is strict: once a week, and
never daily, whatever it finds. On Max it is once a week too, but it comes back
daily while something is found wrong (a defect, a rule that would refuse real
work, a check left undone, a review that did not count, a bug in THOR itself),
and goes back to weekly the first time a review finds nothing. THOR reads your
plan from Claude Code's own settings file when it installs and asks you to
confirm it in the first-session questions; install --set-plan max or
install --set-plan small records your answer. The review's request says in
one line which of the two applies.
Version 1 remembered well and never argued. It would hand your assistant a note at the right moment and hope. Version 2 is the same memory with a spine.
install --set-backup local keeps that repository beside the memory on this
machine and sends nothing anywhere (it protects against a damaged memory
file, not against the disk dying). install --set-backup <folder or address>
also adds the place you named (a folder on a NAS or another computer you own,
or a private repository) as a remote called nas, and the copy goes there and
nowhere else. install --set-backup off stops it. doctor says where the
last copy went and how long ago, or that it has been failing and why. Getting
it back is one command.install --set-language <code> --db <your memory>) and asks whether that is
right; name another one and it switches, and off removes it. From then on a
reply to you that clearly reads as another language is sent back once to be
rewritten, also right after an English message from a helper or from THOR
itself. Short replies, code, quotes, file paths and helpers' reports are never
judged.expected_language (for example "nl") can also hold a reply that comes
out in English while you write in that language; the seeded file has none,
see thor2/README.md.The memory above is built for work. It has a gate, notes that interrupt you, and a hard cap on how much ever reaches the conversation - all of which is exactly wrong for a recipe.
So 2.1 adds a library, and it is a genuinely separate thing: its own file, its own two commands, and no way to reach the first memory at all. Nothing you put in it can ever interrupt you, compete with a note, or take up room in a block. You only ever see it because you asked.
It works the way a shelf works.
Both are off until you name a folder. THOR only ever reads these folders: it never deletes, moves or edits anything in them. If you never name one, nothing in this section happens.
You never have to type a command yourself: tell your assistant "set my
temp-until-live folder to D:\Work\temp-until-live" (or "my tools folder") and it
runs the right one. The commands are shown below so you can see what happens.
In them, install is the program in THOR's folder ($HOME\thor2\install.exe on
Windows, ~/.thor2/install on Linux), and --db names your memory file
($env:LOCALAPPDATA\thor2\thor.db on Windows, ~/.local/share/thor2/thor.db on
Linux).
Suppose you build things for other people: a banner, a flyer, a print job, a website change. While a job is unfinished it sits in a temporary folder, and once it is live that copy can go. It is easy to lose track of which is which.
What the folder has to look like (this is the part you do yourself):
2026-10-20_shop_banner.STATUS.txt. Its first line
starts with STATUS: and says where the job stands, for example
STATUS: waiting for the client.STATUS: live. That is the signal that the sub-folder may be deleted.Then tell THOR where the folder is (a network folder such as
\\nas\projects\temp-until-live works too):
& "$HOME\thor2\install.exe" --set-temp-folder "D:\Work\temp-until-live" --db "$env:LOCALAPPDATA\thor2\thor.db"
~/.thor2/install --set-temp-folder "/srv/work/temp-until-live" --db ~/.local/share/thor2/thor.db
It checks that the folder exists before it writes anything, and prints in plain
words what it set. From then on, the first time you start a session on a day,
your assistant is told something like "temp-until-live: 2 production folder(s)
say they may be deleted (...), 1 folder(s) are older than 30 days and not marked
live (...)", and tells you. You decide, and you delete the folders yourself.
"Older than 30 days" is read from the date in the folder name; to change the
30, open work-folders.json (it sits next to thor.db) in a text editor and
change the number after temp_max_age_days. doctor shows the same thing.
To switch it off again: the same command with --set-temp-folder off.
Every time you ask your assistant for a small script (rename these files, merge these PDFs) it writes one, and next week it writes the same script again, because it did not know the first one existed. A tools folder fixes that.
What the folder has to look like:
pdf-merge.README.txt (or README.md) whose very first line says
in one sentence what the tool does: Merges several PDF files into one.Tell THOR where it is:
& "$HOME\thor2\install.exe" --set-tools-folder "D:\Work\tools" --db "$env:LOCALAPPDATA\thor2\thor.db"
~/.thor2/install --set-tools-folder "/srv/work/tools" --db ~/.local/share/thor2/thor.db
What you get:
.py, .ps1, .sh, .js and a few more) somewhere that is not
a git project, not the tools folder and not the temp-until-live folder, and it
is still there and untouched 30 minutes later, the end of that turn is held
once. Your assistant is asked to move the useful ones into the tools folder
with a README (a new version replaces the old tool) and may delete throwaway
scripts. Anything useful or in doubt stays where it is: your assistant tells
you about it and deletes it only after your own yes. A file is asked about once per
session, so this can never turn into a loop. Only files written with Claude
Code's own file tools are noticed; a script created by a shell command
(echo ... > x.py) is not.If a folder is on a network share that is switched off, a session start never
waits for it: THOR gives up after about a second and a half, shows the list it
kept last time (marked with its date) or says nothing. To switch it off again:
the same command with --set-tools-folder off.
The shortest way - let your assistant do it. Send your assistant the link to this repository and ask it to "install THOR". It reads AGENTS.md, which is written for it, runs the one command below for you, checks that it worked, and asks you for exactly one thing: restart it once. Nothing to download, no paths to type, no Rust to install, no questions to answer - the first conversation after the restart finishes the setup on its own, with defaults you can change just by saying so.
That first conversation is a short welcome, not a list of settings. It says THOR is set up and remembers what you tell it, gives three examples of what to say, and asks one question over three proposals: a daily safety copy of your memory on your computer, the language it talks to you in, and the folder where everything for this work is kept and where you work from. Say "yes" to accept them all, or tell it by number what you want different ("2 English", "3 figure it out yourself"). Everything else is already on with sensible defaults. To see all of it, ask: "what is switched on?" - you get a numbered list in plain words, and anything you do not mention keeps its default.
If you already worked with Claude before, THOR offers to put that in order. Right after you answer the welcome, it looks (only reading, changing nothing) at your earlier conversations with Claude on this computer and at the files they left loose in your home folder, Desktop, Documents or Downloads. If there is something to order, it sends you one message with a numbered proposal: one fixed folder per subject (for example your CV and job hunting, or a renovation), the files that belong in it, and what it remembers from those earlier conversations. Say "yes" to accept all of it, or "2 no, because ..." to leave one out. Nothing is deleted: files are only moved, a file is never overwritten (a taken name gets a number), files of a programming project and files outside your home folder stay where they are, and every move is written down so your assistant can put all of it back whenever you ask. From then on, new files for a subject go in the folder of that subject. If there is nothing to order, it says nothing about it. An old conversation that left no file behind has nothing to move and is simply skipped, and so is a file that already lies in its folder. THOR makes sure this offer really happens: your assistant cannot skip it, and it counts as done only when you answered it yourself (yes, or no for what you do not want).
A plain chat on claude.ai, or the chat in the Claude app, cannot install anything on your computer. If you gave this page to such a chat, it should answer with these steps:
You need Claude Code, installed and opened at least once. Nothing else to prepare: no account, no key, no terminal, no git, no Python. Your assistant does the installing; if your computer is missing git or Microsoft's "Visual C++ Redistributable" it installs them itself first.
What your assistant runs for step 1, so you can read it first: it downloads the
latest release from this project's GitHub page, checks the download against the
checksum published next to it, unpacks it into a thor2 folder in your home
folder, and sets everything up, printing what it did in plain words. The
checksum shows that the download arrived whole and undamaged; it does not prove
who made it, because both files come from the same GitHub page. THOR itself
needs no administrator rights and is installed only in your own user folder.
Two other programs are installed for the whole computer when they are missing:
git and Microsoft's Visual C++ runtime. For each of them Windows may ask your
permission once. Windows, in PowerShell:
irm https://raw.githubusercontent.com/nworks3d/THOR-for-claude-code/main/install.ps1 | iex
Linux:
curl -fsSL https://raw.githubusercontent.com/nworks3d/THOR-for-claude-code/main/install.sh | sh
On Windows that script installs what is missing - git, and Microsoft's "Visual C++ Redistributable" - with the system's package manager (winget), or, when that is not there or does not finish, with the program's own official installer that it downloads and runs silently, after checking its digital signature. Running it again is always safe.
The setup touches two of Claude Code's own files - its settings and the list of tools it may use - and backs up both before it does. There is no macOS build yet, so on a Mac your assistant takes the route below. Using a different assistant? See Using it from another assistant below.
Antivirus programs sometimes remove a small unsigned program such as THOR's
sync.exe by mistake (a "false positive"; Windows Defender did exactly this on
2026-10-11). THOR then tells you, at the start of a conversation and in
doctor, in a line that begins PROBLEM: THOR program missing and names the
file. Nothing else breaks silently any more: the hourly ship records its
failures, and doctor says whether it never ran, ran and failed, or the
program is gone. To get it back, step by step:
Windows Security).If it keeps happening, your assistant may offer to add a Windows Defender exclusion for THOR's program folder. It only does so after you say yes. What that does: Defender stops scanning the files in that folder, so a bad file placed there would not be caught. Windows shows one administrator prompt. Saying no is fine, and THOR never changes a Windows security setting by itself. You can remove the exclusion any time under Windows Security > Virus & threat protection > Manage settings > Exclusions.
You need a Rust toolchain. Nothing else: no key to get, no model to download first, no account.
cd thor2 && cargo build --release --features semantic
--features semanticis not optional, and leaving it off fails silently. Without it everything still builds, still runs, and still answers every word-for-word search correctly. What stops working is searching by meaning: it returns nothing at all, with no error anywhere. The reliable way to tell the two apart is size. Look atthor2/target/release/serve.exe- over 20 MB is the right build, a few MB is the wrong one. Build it again with the flag.
Then run the setup yourself. That is the same step the one-command install ends with, and in the normal case you type no paths at all:
thor2/target/release/install.exe
It finds your assistant's own two configuration files by itself, creates your memory if you do not have one yet, wires THOR into your assistant, and registers the part your assistant writes through. It also installs a shared set of git hooks that run in every repository on this machine (unless another tool already set git's global hooks folder, in which case THOR leaves that alone and says so), which keeps the reading of your code fresh after a commit, a merge or pull, a rebase and a branch switch, and each one hands control back to your repository's own hooks so nothing already there stops working. The same hooks also stop a commit that would add a video file or a very large file (see The media gate below). It backs up both files before it touches them, it never removes anything it did not put there, and running it twice changes nothing the second time.
A brand new memory does not arrive empty. It gets 22 short pinned notes - how to write a note that comes back to you later, plus honesty and hygiene habits - and your assistant is handed them at the start of every conversation from then on. That matters more than it sounds: an assistant with nothing in front of it writes notes in a shape that never fires again, and neither of you would notice for weeks. They are ordinary notes - unpin one, rewrite it in your own words, or throw it out. An existing memory is never seeded, so upgrading never pushes anything into your own notes.
It also gets a starter set of general work rules for coding with an assistant,
the habits the author learnt the hard way: a changelog line with every
user-visible change (when the project keeps one), run the tests and quote the
real result before saying "done", never commit a secret, no force-push of a
shared branch, check where you push, scan before anything goes public, rehearse
a destructive step on a copy, and a few more (13 in all). Each one arrives right
before the step it is about - the commit, the push, the delete - and
they only inform, so a rule written for someone else's project cannot block
yours. The one exception is on Windows: two of them refuse a call that would
flash a console window (a Start-Process that is not hidden, and a scheduled
task made with /it). Ask your assistant to remove any you
do not want. The two notes that carry helper assistants are not among them: that
mode is on in a new memory, and you switch it off by saying "helpers off".
You only reach for a flag if your setup is unusual: --settings and --mcp-json
send it at other files, --db and --serve-exe override where it looks, and
--no-mcp sets up a memory your assistant can read but not write, on purpose.
If a program it needs is missing, it stops and says so rather than installing
something that would sit silent.
Then restart your assistant. The part it writes through only comes alive after a restart. Until then, it can already read the memory but not add to it.
Step 3 - check it.
thor2/target/release/doctor.exe --db "C:\Users\you\AppData\Local\thor2\thor.db"
One plain-language line per part: which build you are running, whether your memory is healthy, whether searching by meaning is switched on, how many of your notes can prove themselves, how many point at files that are no longer there, and how many are bound to something that can never happen. It changes nothing.
To see just the build number - useful when you are reporting a problem and
need to say exactly which version you have - run doctor as above and read its
first line, or run any of the programs in thor2/target/release/ with
--version, for example thor2/target/release/serve.exe --version.
One of those lines only speaks up when it has something to report: if it ever says your memory's own log file has outgrown the memory itself, something is stopping a save from ever finishing - close any other program that might have that same memory open, and run the check again. Newer builds also cap how big that log file is allowed to grow, so this should be rare.
Step 4 - give each project its own memory. From that project's folder, with the full path to the installer and the same memory as in step 3:
"<path to thor2>/target/release/install.exe" --db "C:\Users\you\AppData\Local\thor2\thor.db"
This matters more than it sounds. Skip it and THOR gets worse the more you use
it, because every search starts competing with projects you were not asking
about. It files the project under the name of its folder - add --project "my-project" for another name, which it keeps in a small file called
.thor-project - reads the project's code, and registers this folder as the
project's working copy: the one place THOR tries a rule's check on a file. It
refuses to change a name that is already there, because renaming a project's
scope would strand every note already filed under the old one.
A folder that is not a code repository - a topic with notes and PDFs, no git
anywhere - works the same way. Run the installer from inside it with --topic
added. The folder's own name becomes the project's name, one small hidden file
(.thor-project) is added to the folder, and nothing else in it is touched.
There is no code to read, so searching inside files is not available there; your
assistant reads the files itself and THOR remembers what you told it. Your home
folder and a whole drive are refused as a topic, because they are far too broad.
"<path to thor2>/target/release/install.exe" --topic --db "C:\Users\you\AppData\Local\thor2\thor.db"
Set a project up with an earlier release? Run this once from its folder instead: it registers the working copy and changes nothing else.
"<path to thor2>/target/release/install.exe" --register-root --db "C:\Users\you\AppData\Local\thor2\thor.db"
If you are the assistant doing the setup, AGENTS.md is the walkthrough for the steps above.
The shared git hooks the installer sets up (see "Getting started" above) also add one safety check at the moment you commit. If the commit would add a video file or a file bigger than 25 MB, git stops, nothing is committed, and a message tells you which files caused it and what to do. You do not have to set anything up.
Why it exists. Git keeps every version of every file for good. A video added
once makes the repository heavy forever, and after you have pushed it, it is very
hard to get out again. The check looks at what is really about to be committed,
so it also catches git add -A, git add . and git commit -a, which add files
you never named.
What it stops, by default.
mp4, mov, mkv, webm,
avi or m4v (capital letters count too, so HOLIDAY.MP4 is stopped)A file that is only being removed is never stopped, and nothing happens to the files on your disk.
What to do when it stops you. The message says the same, with your file names filled in:
git restore --staged "the-file.mp4" (in a
brand new repository that has no commit yet, use git rm --cached "the-file.mp4"). The file itself stays where it is on your disk.To allow one file on purpose (a demo video that really belongs in the
project): open the file called .gitattributes in the top folder of the
repository, or create it, and add one line with the path, a space and
thor-media-ok:
docs/demo/intro.mp4 thor-media-ok
A path with a space in it goes in double quotes: "docs/my demo.mp4" thor-media-ok. Then run git add .gitattributes and commit again. If you keep
videos in Git LFS, put thor-media-ok on the same line as the filter=lfs
setting: the check goes by the ending of the name, not by what is stored.
To change the rules. These are ordinary git settings. Run them inside a
repository to change that repository only, or put --global right after git config to change every repository on this computer. The names are written in
small letters.
| Setting | What it does | Default |
|---|---|---|
thor.mediagate.enabled | false switches the check off (no, off and 0 work too) | on |
thor.mediagate.extensions | the video endings, separated by spaces; an empty value ("") stops no file for its type | mp4 mov mkv webm avi m4v |
thor.mediagate.maxbytes | the largest size allowed, as a plain number of bytes (not 50m) | 26214400 |
thor.mediagate.parkdir | optional: a folder the message suggests keeping refused files in, as <folder>/<YYYY-MM-DD>_<repository>_<subject>/ with a short STATUS.txt saying what the file is | not set |
For example, to allow files up to 50 MB in every repository on this computer:
git config --global thor.mediagate.maxbytes 52428800
To take a setting back, use git config --unset thor.mediagate.maxbytes (add
--global if you set it with --global).
Good to know.
thor.mediagate.enabled to false in that one folder's own git settings
(each time it makes a copy), and every other repository keeps the check.You can use the same memory on a second computer, for example a laptop, and choose how much of it that computer gets. The second computer gets a read-only copy: your assistant there is reminded of your rules, a rule can still refuse a wrong step, and search works, but nothing is ever written into the copy. Notes you want to keep are saved on your main computer and show up on the laptop the next time the copy is refreshed. The copy refreshes by itself.
You choose what the copy holds. Name the projects the laptop needs, and say whether it also gets your general work rules (the notes that belong to no project). Every other project, and your personal library, is never copied: it is not hidden, it is not in the copy's file at all. That makes it fit for a company laptop. Choose nothing and you get the whole memory.
What stays on the laptop is a filtered copy with its own chain of checks, so
doctor can verify it like any memory. Two honest limits: a note you did copy
may mention a project you did not copy by name (it is only words there, nothing
breaks), and a note that was ever filed under a project you did not choose stays
out entirely, even if it was later made general.
The copy is made from your backup, so the laptop must be able to read it. This part is the one thing THOR cannot do for you.
backup:.
It says where the last copy went, for example backup: last copy went to backup-repo (remote nas: //nas/backups/thor), 3h ago. The place after
remote nas: is your backup's address. If there is no such line, you have not chosen a backup yet: tell your
assistant "set up a backup to" followed by a folder on your NAS or a private
repository address, then run the health check again.thor2
in it (or the backup's own repository files), you are done.git ls-remote "<the address>" HEAD; a line starting with a
long code means it works). If the website asks you to sign in, sign in. If it says
"not found" or "access denied", the laptop's account has no access yet:
add it on the website (Settings, then Collaborators), or ask whoever
manages that repository.Tell your assistant on the laptop, in your project's folder, that you want a
copy: it asks you only for the backup's address and the project's name, and then
runs ONE of these itself, with the three parts in capitals filled in. YOUR-PROJECT is the project's name exactly as the main computer
knows it (the name of its folder, unless you changed it).
Windows, in PowerShell:
$env:THOR_COPY_FROM = "THE-BACKUP-ADDRESS"; $env:THOR_COPY_SCOPES = "YOUR-PROJECT"; $env:THOR_COPY_GLOBAL = "1"; irm https://raw.githubusercontent.com/nworks3d/THOR-for-claude-code/main/install.ps1 | iex
Linux:
curl -fsSL https://raw.githubusercontent.com/nworks3d/THOR-for-claude-code/main/install.sh | THOR_COPY_FROM="THE-BACKUP-ADDRESS" THOR_COPY_SCOPES="YOUR-PROJECT" THOR_COPY_GLOBAL=1 sh
THE-BACKUP-ADDRESS is the place from step 1 above, for example
\\nas\backups\thor or /mnt/nas/thor."project-one,project-two".THOR_COPY_SCOPES and you get the project of the folder you are in.THOR_COPY_GLOBAL and the general work rules are not copied.$env: values only live in this window. Close it when you are
done.THOR is already unpacked on this laptop (from an earlier install)? Then run the installer directly instead, with the same choices as options:
& "$HOME\thor2\install.exe" --copy-from "THE-BACKUP-ADDRESS" --scope YOUR-PROJECT --include-global
~/.thor2/install --copy-from "THE-BACKUP-ADDRESS" --scope YOUR-PROJECT --include-global
(Repeat --scope for more than one project. Add --whole-memory instead of
the choices to copy everything.)
Only do this on a computer you trust, such as your own second laptop. A full copy holds your whole notes memory: every project, the general work rules, and the records of which rules fired or refused (including the commands they fired at). It does NOT hold your personal library (recipes, books, training log): that is a separate file, and neither kind of copy ever reads it. Because a full copy holds every project's notes, anything personal you wrote as a note is in it, so it does not belong on a work or company laptop (use the project choice above there).
You do not need to name a project. Tell your assistant on the laptop that you
want the whole memory; it fills in THE-BACKUP-ADDRESS as above and runs ONE of
these itself:
Windows, in PowerShell:
$env:THOR_COPY_FROM = "THE-BACKUP-ADDRESS"; $env:THOR_COPY_WHOLE = "1"; irm https://raw.githubusercontent.com/nworks3d/THOR-for-claude-code/main/install.ps1 | iex
Linux:
curl -fsSL https://raw.githubusercontent.com/nworks3d/THOR-for-claude-code/main/install.sh | THOR_COPY_FROM="THE-BACKUP-ADDRESS" THOR_COPY_WHOLE=1 sh
THOR_COPY_WHOLE does the same as --whole-memory. If you also give
THOR_COPY_SCOPES or THOR_COPY_GLOBAL, the full copy wins: nothing is left
out, and the command tells you that those two were not needed. The copy is still
read-only, and it refreshes by itself like any other copy.
It downloads THOR, checks the download, connects THOR to Claude Code, makes the copy, and tells you what you have. This is what you see at the end (your own folders and numbers will differ):
Setting THOR up as a read-only copy of another machine's memory.
= you did not name a project, so this copy holds the project of the folder you ran this in: 'acme-shop' (add --scope <name> to choose another)
+ made the copy from the backup: 3 notes in it, 3 records written (15 ms)
what it holds: project acme-shop, general rules (no project)
project 'acme-shop': 2 notes
general work rules: 1 notes
every other project, and your personal library, were left out of the copy file on purpose
+ connected THOR's 4 hooks to Claude Code (4 were new), so the memory speaks up by itself; a copy registers no local tool server, so lookups go through an existing remote connection to the main machine, if you have one
+ the file that keeps your assistant's replies tidy is in place (the main machine's, when its backup carried one)
What you have now
the copy: C:\Users\you\AppData\Local\thor2\thor.db
refreshed: by itself, in the background, at the start of a Claude Code session (at most once an hour)
What is read-only here
- nothing in this copy can be changed from this machine: your assistant reads it, and rules still fire and still refuse
- notes are saved on the main machine, and show up here after the next refresh
- the weekly check runs on the main machine, unless the session has the replica connector's tools (then it is asked here too)
Done. ONE THING LEFT FOR YOU: close Claude Code completely and open it again.
Claude Code only learns about THOR when it starts, so until you do this nothing above is active.
(The first lines, "Downloading THOR", "Checksum matches." and "Unpacked into
...", come from the download step.) The line ! the project 'x' has no notes in the backup means the project name is spelled differently on the main computer:
run the command again with the right name. It is safe to run the command again
at any time; a second run changes nothing it does not have to.
The last two lines ask you to restart Claude Code only when this run changed something that Claude Code loads when it starts (the connections in its settings, or the note-saving program), or on the very first install. A repeat run that changed none of those ends with "Done. Nothing is left for you to do" instead, and you do not need to restart.
The command either finishes or says plainly that nothing was set up and why:
The copy could not be made, so nothing was set up. Reason: the backup at ... could not be reached - the laptop cannot read the backup. Go back to step 2
of "What you need first". Nothing was left behind; run the same command again
when it works.... Git refuses to open the backup folder because it belongs to another user account - git does not trust a folder owned by someone else (common on a NAS
share or a USB drive). The message ends with one line that starts with
git config --global --add safe.directory. Run exactly that line once in a
terminal, then run the install command again.This machine already has a memory of its own ... and it is not a copy, so I will not replace it - THOR was installed here the normal way first and made
its own empty memory. If you never saved a note here, rename the file named
in the message (do not delete it) and run the command again. If it holds
notes you wrote, keep it, and ask for help before you continue.& "$HOME\thor2\doctor.exe" --db "$env:LOCALAPPDATA\thor2\thor.db",
Linux: ~/.thor2/doctor --db ~/.local/share/thor2/thor.db). The short summary
at the top says, among other lines: OK: this is a copy, selection: project acme-shop, general rules (no project), last pull: 5 minutes ago, 3 items.
The notes of the projects you did not choose are not missing by mistake, and
the check never counts them as a problem. It warns you if the copy has not
been refreshed for three days.--register-root --per-machine and
--db naming the copy. It writes nothing on the laptop and prints one line;
run that line on the main computer.Everything above works without this. It is for a laptop whose assistant also has
a remote connection to your memory (the "replica connector", the THOR tool
server on your NAS), however that connection was added: in Claude's own
connector settings, or in Claude Code's list of tool servers under the name
thor. You do not have to tell THOR its web address. If you do not have one,
skip this section: the weekly check then stays on your main computer, exactly
as before.
What changes when the connection is there:
sync drain, within the hour). The report counts when the proof matches the
report word for word, and the proof note itself is not kept as a note. A proof
that does not match (a changed text, a changed session, a changed seal), or no
proof within a day, files the report as "does not count", with the reason
written in the report, and the next ask names it.What a weekly check made on a laptop covers, and what it does not: the verdicts and corrections your assistant made there, and its own summary. The list of notes owed a verdict from other sessions, the batch of rules waiting for THOR's trial, the disputes to verify and the sweep for rules that block real work live on the main computer and are settled by its own weekly check. The report says this in its machine section. A laptop keeps no record of which notes fired, so it cannot list them. The proof shows that the report is the one the laptop's session filed; the connector has no password of its own (the connection to it is the gate), so it does not show who sent it.
A session whose connector tools are not listed in advance and have not been used
yet shows no sign of them, so it is not asked until it has used one. If you want
a laptop to be asked anyway, put "connector": "yes" (any text) in the copy's
thor-copy.json (the small file next to the copy's thor.db).
& "$HOME\thor2\sync.exe" pull --db "$env:LOCALAPPDATA\thor2\thor.db" --scope project-one --scope project-two --include-global
~/.thor2/sync pull --db ~/.local/share/thor2/thor.db --scope project-one --scope project-two --include-global
The choice is remembered, so a later sync pull --db ... with no options
repeats it (this is what the automatic refresh does). That is also the way to
refresh by hand: on a copy made by the install command, sync pull --db <the copy> is the whole command. The copy remembers its backup and its selection,
so you do not name them again. The same pull brings over the main computer's
reply-tidying file (guard-response-rulebook.json) when its backup carries
one; a file already there is kept beside it as guard-response-rulebook.json.bak. A narrower choice removes
what it no longer covers from the copy at the next pull. --whole goes back to
the whole memory. A refresh builds a new copy next to the old one and swaps it
in only when it is complete and checks out; if anything goes wrong (no network,
the NAS is off) the old copy keeps working and the next session start says so
in one line.
One thing to know about a company laptop: if you point the command at a repository folder that already sits on the laptop (a "clone"), that folder holds the complete memory, and the health check says so. Give it the backup's address instead, or a plain folder on the NAS; then the whole memory is only read in passing and nothing of it stays on the laptop.
Not covered here: saving notes from the laptop (they are saved on the main computer; the longer setup in thor2/README.md, "Second machine (laptop)", queues them for you, but that route works on the whole memory), and searching by meaning. Also not yet done: a run on a real second computer. The steps above are covered by tests and by a full run on one machine.
If you keep a copy of your memory on another machine that stays on (a NAS, a small server) so your phone and laptop can reach it, THOR now tells you when that machine does not answer. Each time a session starts, THOR tries once, for less than a second, to reach the address your hourly copy goes to. If nobody answers, you see one line saying that THOR's copy on that machine does not answer, so your other devices have no memory connection. The health check (ask your assistant "Is THOR working?") shows the same thing as a PROBLEM line.
What to do, step by step: that machine has probably restarted, for example after an automatic update. If its data folder is encrypted, unlock it first. Then start THOR's programs on it again (on a NAS: open its container manager and start the THOR containers). The line disappears by itself once the machine answers. If you never copy your memory to another machine, you will never see this line.
The automated setup above is for Claude Code specifically. Any other assistant that can be pointed at an external tool server can still use THOR, through the container published alongside every release instead of a local build.
A generic client config, the shape most tool-calling assistants expect:
{
"mcpServers": {
"thor": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"-v", "thor-data:/data",
"ghcr.io/nworks3d/thor-mcp:2.6.13"
]
}
}
}
docker run -i --rm -v thor-data:/data ghcr.io/nworks3d/thor-mcp:2.6.13
On an empty volume, the container creates a memory and seeds it with THOR's own set of starting notes before it starts answering - the same first step the setup above takes. Po