Weir

Sluice & Rakho

A gate that remembers. A diary that refuses.

Weir is the pair. Sluice sits on the MCP wire and remembers a sensitive value for the rest of the session. When that same value tries to leave through another tool, the gate shuts.

Rakho is the notebook beside it. A note is inspected before it is written down. Each person’s pages stay apart. Forget deletes the page and the vector, and the audit can still prove the refusal.

  1. 01 read_file notes/deploy.env · contains AKIA…EXAMPLE
  2. Allow Inbound. The value is remembered for this session.
  3. 02 send_email body includes the same key
  4. Block taint_leak. That value is trying to leave.

A secret inside a file can be legitimate. The same secret inside send_email is the leak. Sluice stops the second moment.

01

The second hop.

A key inside read_file can be legitimate. The same key inside send_email is the incident. A scanner that opens one message at a time never sees the pair.

02

The write.

Memory that saves first will search the secret back later. The check has to happen before the embedding, and a refusal must keep a reason without keeping the text.

03

The source.

A payments tool does not know that a payee arrived inside “ignore previous instructions.” The session has to remember where the value came from.

01 / The wire

Sluice

The MCP gate that remembers what your agent already saw.

A secret inside read_file can stay. The same secret inside send_email is blocked, because the gate already saw it.

  1. Cursor / Claude
  2. Sluice
  3. your MCP servers
taint

Remembered on the way in. Stopped on the way out.

read_fileallow
send_emailblock
reasontaint_leak

02 / The notebook

Rakho रखो, keep it.

Inspect before you keep. Forget, and still prove it.

A refused note is never embedded. Forget deletes the page and the vector. The audit keeps the refusal, without the secret.

keep / recall / forget / audit
EnglishHindiGerman Keepkeeprakhomerk Recallrecallnikaalohol Forgetforgetbhoolovergiss Auditauditdekhoschau
db.keep("order is late", actor_id="krishy")
db.keep("password is hunter2", actor_id="krishy")
# refused
db.recall("order", actor_id="krishy")

03 / A use case

A poisoned invoice never becomes a payment.

One way the pair is used. A money call is blocked only when its payee was fingerprinted from content that already tripped a detector.

Poisoned invoice

Attacker payee

Block

Same session

Clean vendor

Allow

Poison never read

Same attacker

Allow

Already in the record

The work has been read.

Rakho was read as source, not as a launch post. Nearby PII work by the same author was merged, and one of those commits was selected as a worked example for coding agents.

  1. 01

    Agent Memory Atlas: Rakho

    An independent reading of the library at a pinned commit. Five of seven mechanisms are marked. The page also writes down what does not hold, which is the useful kind of attention.

  2. 02

    XERJ Corpus Hub: krishyaid-coder

    A commit to foro-sh/pii-mcp was selected for the corpus agents search before they write. The commit matches street addresses that put a comma before the house number.

  3. 03

    Merged into pii-mcp

    Street addresses with a comma before the house number, and 13-, 17-, and 18-digit card generators for the eval set. pii-mcp redacts PII from MCP tool results before they reach the model.

  4. 04

    awesome-llm-security

    A README update landed in the list. Same neighborhood: tools that sit between a model and the data it is about to see.

On your machine

Install both. Point an agent at them.

Sluice

The gate. PyPI package sluice-taint, command sluice.

pip install sluice-taint

GitHub PyPI then sluice init and sluice serve

Rakho

The notebook. Four verbs, one SQLite file.

pip install rakho

GitHub PyPI optional rakho[mcp]

Sluice can be the inspector inside Rakho. The default gate still runs if you skip this.

pip install "rakho[sluice]"

Write

If this is something you want to use.

Drop a mail at krishy.ai.d@gmail.com to discuss the use case, or to send feedback on Sluice and Rakho.