Psychosonic Lab · Experiment 02

Does it remember what you decided?

Whether a memory connector changes the answer to a question only your notes contain, and the one step that decides it

A decision made once shouldn't need making twice, but an AI starts every conversation blank. We asked stock Claude Code questions whose answers lived only in a note. With no memory it got 1 of 57 right; with a memory connector, 45 to 57. The difference came down to one step: when the AI searched its memory it was right 153 of 159 times, and when it didn't, 1 of 12. The script is below and runs on your own copy. This page says which builds we ran it on and what the test cannot see.

Run on 2026-10-10 (no memory, Notesmith 1.0.1, AgentScribe 2.0.0) and 2026-10-11 (AgentScribe 2.0.1) · questions written 2026-10-10, after Notesmith 1.0.1 and AgentScribe 2.0.0 were built (AgentScribe 2.0.1 was written after seeing 2.0.0's results here) · grading: Blind, two graders, pass if both agree; the published grade is the stricter (lower) of the two.
Apps covered: Notesmith · AgentScribe

01

The question

01.1

What is being asked

Does an AI answer correctly when the right answer lives only in a note you wrote once and never repeated? Every chat starts blank, so a decision you made weeks ago can get re-argued from nothing unless something hands it back.

01.2

Why it matters

A tool that forgets a call you already made costs you the time of making it again, and it can talk you into reversing it with reasoning that sounds fine and isn't. Memory only earns its keep if it changes an answer that would otherwise be wrong.

01.3

What counts as a question

A question whose answer lives only in a note, asked the way a real question comes up, mid-task. Each one is screened against the project's own code and docs first, so a correct answer can't be reached by reading the repo instead of the note. They were written on 2026-10-10, after Notesmith 1.0.1 and AgentScribe 2.0.0 were built. AgentScribe 2.0.1 is a different case, described under Held out.

02

Method

02.1

Three setups, same questions

Every question runs in stock Claude Code three times under each of three setups: no memory connector at all, the Notesmith connector, and the AgentScribe connector at two versions. Nothing else changes between setups: same model, same effort, same project settings, no CLAUDE.md, no hooks.

02.2

Grading

Two graders read each answer blind, without knowing which setup wrote it, and mark it right or wrong against what the note actually says. Where the two disagree, the stricter of the two grades is the one published.

02.3

Controls

A handful of questions in the mix need no memory at all: a short coding exercise, or a plain factual question. A setup that misses one of those has a problem with something other than memory, and this page reports that separately from the memory questions.

02.4

Held out

Six of the nineteen counted questions were set aside and never used to change anything. They are reported on their own line. This matters most for AgentScribe 2.0.1. Its instructions were rewritten after we saw how 2.0.0 did here, because the AI often never looked in memory at all. The new wording was then measured on a separate set of 22 other questions before it was run on this one. So its counted score is not an untouched test of that wording, and the held out line is the cleaner reading.

03

Materials

03.1

The script

One file of Python, 112 lines, that calls the claude command line tool you already have if Claude Code is installed. No other installs. Read it before you run it. It is shown in full below with its checksum.

03.2

What you need

A Mac with Claude Code installed, your own memory connector (or none, to see the baseline), and your own questions, each written so you already know where its answer lives.

memory-ab-check.py 112 lines · sha256 283012f44adfd8c672d6175dfdf54d4b1c9ae74030408bc802794c380e6da0f0
Show the script in full
#!/usr/bin/env python3
"""memory-ab-check.py
Psychosonic Lab, experiment 02: run your own blind memory A/B.

Give it a text file of your own questions, one per line, each written so the
answer lives only in your own notes, not in your code or docs. It runs every
question with your memory connector and without it, N times each, in a
shuffled order, and saves each answer to its own file with a random name so
you can grade blind: read a file, say pass or fail, without knowing which
setup wrote it.

    python3 -B memory-ab-check.py run questions.txt 3 out/
        Runs every question in questions.txt 3 times with the connector and
        3 times without. Uses stock Claude Code: model sonnet, effort low,
        --setting-sources project (no CLAUDE.md, no hooks). Writes
        out/ans-*.txt (the answers, filenames carry no hint of setup) and
        out/key.json (which file is which setup and rep). Do not open
        key.json until every answer is graded.

    python3 -B memory-ab-check.py tally out/ graded.csv
        graded.csv is your own two columns, file,pass (pass is 0 or 1), one
        row per out/ans-*.txt, filled in after reading each file blind.
        Prints the right/total count for each setup.

Edit MCP_SERVER below to point at your own memory connector; the default is
Notesmith's. A connector that needs an API key or a running app should be
started before you run this.

Flags used here, verified against `claude --help` on this Mac (2026-10-14):
-p, --model, --effort, --output-format json, --no-session-persistence,
--setting-sources, --strict-mcp-config, --mcp-config, --max-turns.
"""
import csv
import json
import random
import secrets
import subprocess
import sys
from pathlib import Path

MCP_SERVER = "/Applications/Notesmith.app/Contents/Helpers/agent-notes"
MCP_SERVER_NAME = "agent-notes"


def ask(question, cfg_path):
    """One claude -p call. cfg_path is None for the no-memory setup."""
    cmd = ["claude", "-p", question, "--model", "sonnet", "--effort", "low",
           "--output-format", "json", "--no-session-persistence",
           "--setting-sources", "project", "--strict-mcp-config", "--max-turns", "8"]
    if cfg_path:
        cmd += ["--mcp-config", str(cfg_path)]
    out = subprocess.run(cmd, capture_output=True, text=True, timeout=600)
    data = json.loads(out.stdout)
    return data.get("result", ""), data.get("total_cost_usd"), data.get("num_turns")


def cmd_run(args):
    if len(args) != 3:
        sys.exit("usage: memory-ab-check.py run questions.txt reps out_dir")
    qfile, reps, out_dir = Path(args[0]), int(args[1]), Path(args[2])
    out_dir.mkdir(parents=True, exist_ok=True)
    cfg = out_dir / "mcp-on.json"
    cfg.write_text(json.dumps({"mcpServers": {MCP_SERVER_NAME: {
        "type": "stdio", "command": MCP_SERVER, "args": [], "env": {}}}}))

    questions = [l.strip() for l in qfile.read_text().splitlines() if l.strip()]
    jobs = [(q, setup, rep)
            for q in questions for setup in ("on", "off") for rep in range(1, reps + 1)]
    random.shuffle(jobs)  # the order is shuffled; filenames give no hint either

    key = {}
    for i, (question, setup, rep) in enumerate(jobs, 1):
        rid = secrets.token_hex(4)
        print(f"[{i}/{len(jobs)}] {rid} ({setup}, rep {rep}): {question[:60]}", file=sys.stderr)
        text, cost, turns = ask(question, cfg if setup == "on" else None)
        (out_dir / f"ans-{rid}.txt").write_text(text)
        key[rid] = {"question": question, "setup": setup, "rep": rep,
                    "cost_usd": cost, "turns": turns}
    (out_dir / "key.json").write_text(json.dumps(key, indent=2))
    print(f"\nwrote {len(jobs)} answers to {out_dir}/ans-*.txt")
    print("grade them blind (one pass/fail per file), then run tally.")


def cmd_tally(args):
    if len(args) != 2:
        sys.exit("usage: memory-ab-check.py tally out_dir graded.csv")
    out_dir, graded_csv = Path(args[0]), Path(args[1])
    key = json.loads((out_dir / "key.json").read_text())
    graded = {r["file"]: int(r["pass"]) for r in csv.DictReader(open(graded_csv))}

    totals = {}
    for rid, info in key.items():
        fname = f"ans-{rid}.txt"
        if fname not in graded:
            print(f"missing a grade for {fname}", file=sys.stderr)
            continue
        right, n = totals.get(info["setup"], (0, 0))
        totals[info["setup"]] = (right + graded[fname], n + 1)
    for setup in ("off", "on"):
        right, n = totals.get(setup, (0, 0))
        print(f"{setup:3} (memory {'on' if setup == 'on' else 'off'}): {right}/{n}")


def main():
    if len(sys.argv) < 2 or sys.argv[1] not in ("run", "tally"):
        sys.exit(__doc__)
    {"run": cmd_run, "tally": cmd_tally}[sys.argv[1]](sys.argv[2:])


if __name__ == "__main__":
    main()
04

Results

Run on 2026-10-10 (no memory, Notesmith 1.0.1, AgentScribe 2.0.0) and 2026-10-11 (AgentScribe 2.0.1) · questions written 2026-10-10, after Notesmith 1.0.1 and AgentScribe 2.0.0 were built (AgentScribe 2.0.1 was written after seeing 2.0.0's results here) · grading: Blind, two graders, pass if both agree; the published grade is the stricter (lower) of the two.

SetupCountedHeld outControlsLooked in memory
No memory1/571/1812/120/84
Notesmith 1.0.1 (60)52/5718/1812/1266/84
AgentScribe 2.0.0 (11)45/5712/1812/1256/84
AgentScribe 2.0.1 (14)57/5718/1812/1281/84

Right when it looked, and when it didn't

The counted answers again, split by whether the AI searched its memory on that run.

SetupSearched memory: rightDid not search: right
Notesmith 1.0.1 (60)52/540/3
AgentScribe 2.0.0 (11)44/481/9
AgentScribe 2.0.1 (14)57/57none
All three153/1591/12

When the AI looked, it was right 153 of 159 times. When it didn't, 1 of 12; with no memory at all, 1 of 57. The same split holds on small local models in Experiment 03.

4 questions turned out not to tell setups apart: a decision about whether a conveniently organized folder makes a good source, a lesson about a command line check that looked negative but was testing the wrong thing, a decision about removing an annotation from code shared between two apps and a lesson about how to check a claim that names something unfamiliar. The no-memory setup answered each of those right too, so they are left out of the counted figures above.

One question was retired after the results were in: a public performance claim whose own source material disagreed with itself. No setup could be graded on it fairly, so it is left out of every count above.

Raw data: runs.csv with one row per answer, whether it was right and whether that run searched its memory, questions.csv with each question's topic, and meta.json. The questions are written against our own private notes, so their wording is not published.

For how Notesmith ranks the right note first across real agent searches, and what each connector costs in context, see the memory page. Those numbers are not repeated here.

05

What this shows

05.1

Memory changed the answers

With no memory, the AI got almost none of the counted questions right. With either memory app connected, it got most of them right.

05.2

The controls held

Every setup, the one with no memory included, got every control question right. The setups differ only on the questions a note had to answer.

05.3

Looking is most of it

Across the three memory setups, the AI was right 153 of 159 times when it searched memory and 1 of 12 when it didn't. AgentScribe 2.0.1 changed only the connector's built in instructions, and it searched on 57 of 57 counted answers against 48 for 2.0.0.

05.4

Check the look before the search

When a memory setup gives a wrong answer, find out first whether the AI asked it at all. Logging the memory tool call next to each answer tells you which half to fix: what memory returns, or what makes the model look.

06

What this does not show

06.1

One person's notes

Every question's answer lives in one person's own notes and one person's own app code. A different note-taking style, a different app, or a different person's decisions could change which setup wins.

06.2

One model and effort

Every run used the same model at the same effort level. A larger model, a higher effort setting, or a different vendor's model could close this gap, widen it, or reverse it.

06.3

Small n

Questions counted: 19. Enough to see a gap this size, not enough to put a tight number on it. A single question flipping grade would move every setup's count by one.

06.4

We wrote the questions and the app

The same people who built Notesmith and AgentScribe wrote the questions these setups are graded on. That is a conflict of interest worth naming, even though the questions were written after Notesmith 1.0.1 and AgentScribe 2.0.0 were built and screened against the apps' own code so an answer couldn't come from reading the repo instead of the note. AgentScribe 2.0.1 was written after seeing 2.0.0's results on this test, a closer tie between test and product than the other two have.

06.5

A stock setup, not a tuned one

We added no CLAUDE.md and no hooks to nudge the model toward its memory. Each connector's own built-in instructions are part of what was measured, and that wording is exactly what changed in AgentScribe 2.0.1. A real install may carry more instructions of its own, which could move these numbers in either direction.

06.6

Cost per run rose

The newer AgentScribe build that got every counted question right also cost more per run than the build before it. A perfect score and a higher bill arrived together, and this page does not say whether that is worth it for you.

06.7

Connectors read only what you let them

A memory connector only reaches what you wrote down and chose to let it see. It cannot answer a question that no note covers, and that is a different test from whether an app's memory is complete.

07

Run it yourself

07.1

Download it and read it

Save memory-ab-check.py from this page and read it.

07.2

Try it on two trivial questions first

python3 -B memory-ab-check.py run trivial.txt 1 out/
A one line question file and one rep, with and without your connector, confirms the harness works before you spend real runs on it.

07.3

Run your own battery

python3 -B memory-ab-check.py run questions.txt 3 out/
Your own questions, three reps each, with and without your memory connector, in a shuffled order.

07.4

Grade blind, then tally

Read each file in out/ without opening key.json, write pass or fail to a two column CSV, then

python3 -B memory-ab-check.py tally out/ graded.csv

07.5

If yours differs

If your result is not ours, send the graded CSV to info@psychosonicconsulting.com and we will look.

The Signal

One signal a week. No noise.

A short note on building privacy-first software, plus the day each new app ships. No spam, unsubscribe anytime.

Free · ~1 email a week · your address stays yours · RSS feed