Recall
cursor/plugins
Reconstruct your recent working context from your own chat history, live state, and the shared record (user reports, prior fixes, incidents), then hand back a tight current-state brief.
The user vaguely recalls something discussed before but cannot name it — one session, or a line of work, topic, or settled concept across several: find it in past records to recognize.
$ npx skills add jongwony/epistemic-protocols --skill recollect -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install jongwony/epistemic-protocols recollect --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/jongwony/epistemic-protocols.git skills-src && mkdir -p .claude/skills && cp -r skills-src/anamnesis/skills/recollect .claude/skills/recollect && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "recollect" agent skill from https://github.com/jongwony/epistemic-protocols/tree/main/anamnesis/skills/recollect into .claude/skills/recollect/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "recollect", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/jongwony/epistemic-protocols/tree/main/anamnesis/skills/recollectType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add jongwony/epistemic-protocols --skill recollect -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install jongwony/epistemic-protocols recollect --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/jongwony/epistemic-protocols.git skills-src && mkdir -p .agents/skills && cp -r skills-src/anamnesis/skills/recollect .agents/skills/recollect && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "recollect" agent skill from https://github.com/jongwony/epistemic-protocols/tree/main/anamnesis/skills/recollect into .agents/skills/recollect/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "recollect", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add jongwony/epistemic-protocols --skill recollect -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install jongwony/epistemic-protocols recollect --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/jongwony/epistemic-protocols.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/anamnesis/skills/recollect .cursor/skills/recollect && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "recollect" agent skill from https://github.com/jongwony/epistemic-protocols/tree/main/anamnesis/skills/recollect into .cursor/skills/recollect/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "recollect", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/jongwony/epistemic-protocols.git --path anamnesis/skills/recollect--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add jongwony/epistemic-protocols --skill recollect -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install jongwony/epistemic-protocols recollect --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/jongwony/epistemic-protocols.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/anamnesis/skills/recollect .gemini/skills/recollect && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "recollect" agent skill from https://github.com/jongwony/epistemic-protocols/tree/main/anamnesis/skills/recollect into .gemini/skills/recollect/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "recollect", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install jongwony/epistemic-protocols recollectInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add jongwony/epistemic-protocols --skill recollect -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/jongwony/epistemic-protocols.git skills-src && mkdir -p .github/skills && cp -r skills-src/anamnesis/skills/recollect .github/skills/recollect && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "recollect" agent skill from https://github.com/jongwony/epistemic-protocols/tree/main/anamnesis/skills/recollect into .github/skills/recollect/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "recollect", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add jongwony/epistemic-protocols --skill recollect -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install jongwony/epistemic-protocols recollect --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/jongwony/epistemic-protocols.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/anamnesis/skills/recollect .opencode/skills/recollect && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "recollect" agent skill from https://github.com/jongwony/epistemic-protocols/tree/main/anamnesis/skills/recollect into .opencode/skills/recollect/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "recollect", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
recollectThe user vaguely recalls something discussed before but cannot name it — one session, or a line of work, topic, or settled concept across several: find it in past records to recognize.
Recollect is an agent skill from jongwony/epistemic-protocols. The user vaguely recalls something discussed before but cannot name it — one session, or a line of work, topic, or settled concept across several: find it in past records to recognize.
Its SKILL.md is about 8.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 13 other files, including scripts and reference files (for example `agents/openai.yaml`, `references/capture-outcome.md` and `references/claude.md`).
The repository describes itself as: Epistemic protocols for Claude Code — structure human-AI interaction quality at every decision point - https://epistemic-protocols.com. The licence is MIT.
Read from SKILL.md and the folder at commit 6649d84. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 2 files in scripts/ (JavaScript), which the agent can run.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Recollect loads about 8.7k tokens when it runs, and up to ~18k if it reads all its reference files. Until then it costs about 49 tokens; SKILL.md has 1,259 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from jongwony/epistemic-protocols at commit 6649d84, republished under its MIT licence (© jongwony). 1,259 words, ~8,708 tokens.
.claude/skills/recollect/SKILL.md (or your agent's skills folder). This skill also uses 10 other files; get the full folder from GitHub.Resolve vague recall into recognized context through AI-guided contextual scan and user-validated recognition. Type: (RecallAmbiguous, AI, RECOGNIZE, VagueRecall) → RecalledContext.
Anamnesis (ἀνάμνησις): A dialogical act of resolving vague recall into recognized context. The person holds an empty intention toward a past they cannot name — a conversation, or a line of work, a topic, or a settled concept spread across several. AI reads what they reach for out of their words and the accumulated context, searches the records the past work left along the axes the cue offers, opens each candidate's own record at the span the cue reaches, and tells what those records carry with their sources, so the person can recognize it. An index's gist wakes recall; the opened record is the evidence; the act that makes a RecalledContext is the person's identification. Recognition over retrieval, grounded in the record rather than in the index.
/-!
How to read this block. It is core Lean 4 and elaborates as written, and you are the model it is
written for: you read it, and by inference over the context you settle each element it leaves
open. Every `axiom` is one of those judgments — a black box to the contract, yours to make from
the material in front of you; its doc comment says what you judge there, and nothing in this
block decides it for you. Every `def`, `inductive`, and `structure` is fixed by the contract.
-/
/-! ── FLOW ──
Anamnesis(V) → start(c) → recollect(c, utterances), where c is the fused session context:
[no empty intention, and the person did not invoke this] relay the finding → proceed, not activated
pass(c): read the cue — the past the person reaches for, the whole they mean, the axes it can be
reached along; run every search still worth running within the boundary the context has
established; open each member of the leading recognizable at the span the cue reaches; what
each read returned enters the context → record the pass
[a recognizable whose story rests on opened records] present it → Stop
[nothing to present ∧ nothing yet added to the cue] one open question → Stop
[nothing to present ∧ a search past the boundary is worth offering] the expansion question → Stop
[nothing to present ∧ nothing further worth reaching for] close: unresolved within the scope searched
next utterance u: c' := fuse(c, u) →
[u takes the presented recognizable as the past they meant] close: identified
[u ends the recall] close: stopped
[otherwise] u is more cue, a correction, a place to look, or a wider boundary → pass(c') → the same reading
no utterance: the round holds; nothing is identified and nothing closes
-/
/-! ── MORPHISM ──
VagueRecall
→ detect(empty_intention) -- the person points at a past they cannot name; an invocation of their own activates on its own
→ cue(meant, whole, axes) -- what past, at which whole, along which axes: read from the utterance and the fused context, afresh on every utterance
→ find(records, cue) -- the records the past work left that may bear the cue, within the boundary the context has established
→ ground(recognizable) -- open each member's own record at the span the cue reaches; the story is composed from what those records carry
→ present(recognizable) -- the story, each claim with the record it rests on and how to reopen it, the qualifications; the turn yields
→ identify(recognizable, person) -- synthesis of identification (Husserl CM §18) fulfilling the empty horizon (CM §19): the person's observable act, never inferred from silence
→ emit(RecalledContext) -- the identified recognizable with its story, excerpts, locators, qualifications, and the scope searched, as session text
→ RecalledContext
requires: empty_intention(V) ∨ invoked(V) -- runtime checkpoint, read by `start` before the first pass
deficit: RecallAmbiguous -- activation precondition (Layer 1/2)
preserves: the records searched -- recall reads them and writes none; the context only grows
invariant: Recognition over Retrieval
invariant: the person identifies; opened records support what is presented; an index's gist is a cue and supports nothing
-/
namespace Anamnesis
/-! ── GROUND ──
The session primitive this contract reads.
-/
inductive Origin | person | assistant | external | peer | injected | unknown
deriving DecidableEq
/-- A turn is who sent it and what it says. What the turn does — a statement, a request, an
instruction, a report of what was observed — is read from its content, never stored here. -/
structure Turn (P : Type) where
origin : Origin
content : P
abbrev Context (P : Type) := List (Turn P)
/-- An origin that may ground: the harness says who sent a turn, and that is all this admits on.
The assistant's own turns, injected text, and turns of unknown origin ground nothing. -/
def Grounding := {o : Origin // o ≠ .assistant ∧ o ≠ .injected ∧ o ≠ .unknown}
/-- Any turn a person sent, whatever it does. -/
def Utterance (P : Type) := {e : Turn P // e.origin = .person}
def Response (P : Type) := {e : Turn P // e.origin = .assistant}
/-- A turn from outside the conversation: what a tool or the environment returned, or a peer's
report. A person's account of what they observed is an utterance, read as such. -/
def Evidence (P : Type) := {e : Turn P // e.origin = .external ∨ e.origin = .peer}
def fuse {P : Type} (c : Context P) (u : Utterance P) : Context P := c ++ [u.val]
/-- One turn of the context, with the origin it grounds on. -/
structure Cite {P : Type} (c : Context P) where
idx : Nat
lt : idx < c.length
src : Grounding
ok : (c[idx]'lt).origin = src.val
/-- `admits` reads only who sent the cited turn; `supports` is the model's reading of what that
turn says, including what it does — a statement, a request, a report of an observation. -/
structure Coord (P A : Type) where
admits : Grounding → Prop
supports : Context P → Turn P → A → Prop
/-- `open_` may carry a candidate citation whose support is still short. -/
inductive Occ {P A : Type} (q : Coord P A) (c : Context P)
| open_ (candidate : Option (Cite c))
| filled (a : A) (src : Cite c) (allowed : q.admits src.src)
(supported : q.supports c (c[src.idx]'src.lt) a)
/-- The same turn, cited from a longer context; what it supports is judged again against the
context that now stands. -/
def Cite.lift {P : Type} {c : Context P} (s : Cite c) (t : Context P) : Cite (c ++ t) :=
{ idx := s.idx
lt := by have := s.lt; simp; omega
src := s.src
ok := by rw [List.getElem_append_left s.lt]; exact s.ok }
/-! ── TYPES ── -/
noncomputable section
variable {P : Type}
/-- `V`: a vague recall — the person's utterance and the context it stands in, pointing at a past
they cannot name. What they mean is read from it, never stored beside it. -/
abbrev VagueRecall (P : Type) := Context P
/-- The whole the person means. A single record may be a whole, and several may be one. A recall
matching none of the named wholes is named as it comes. -/
inductive Whole
/-- one conversation -/
| session
/-- a succession of work across records -/
| line
/-- pieces worked out on one subject -/
| topic
/-- a settled idea; recognized only where a record carries it as settled -/
| concept
| emergent (name : String)
/-- What the person reaches for. -/
structure Cue where
/-- the past they mean, in their words -/
meant : String
whole : Whole
/-- the axes it can be reached along — a time, a person, an artifact, an identifier, a coined
term — named from the cue; there is no fixed set -/
axes : List String
/-- **Your reading** of the cue from the whole context: the latest utterance and every earlier
turn of the person's in this recall, a correction included. A correction that names a
different whole re-reads the whole. -/
axiom cue : Context P → Cue
/-- A record the past work left and a search reached: a conversation, an artifact with its change
history, a decision record. Named by where it is — the root it was found under included — and
never by what kind of store holds it. -/
structure Member where
/-- where the record is, its root included -/
locator : String
/-- what an index or the record's head says of it: a cue for ordering, never evidence -/
gist : String
/-- how to reopen or resume it, as its realization reference validates; `none` where there is
none -/
handle : Option String
/-- A candidate for what the person means: one shape at every scope. -/
structure Recognizable where
whole : Whole
members : List Member
nonempty : members ≠ []
/-- what joins the members, as judged, and what the records support of it; empty for one
member -/
joins : String
/-- **Your judgment**: the recognizables the searches in the context found, best first — records
joined into the cue's whole where several make one, by relations the records support. A method
that computes groups may propose them; the judgment decides. The order decides only which one
is opened first. -/
axiom found : Context P → List Recognizable
/-- **Your judgment**: the cited turn — a record opened — carries this claim, with its speaker as
the record names it: a past assistant statement supports that it was said, never that the
person decided it or that it held. An index's gist supports nothing. -/
axiom ClaimSupported : Context P → Turn P → String → Prop
/-- One sentence of a story, with the opened record that carries it. -/
structure Claim (c : Context P) where
text : String
src : Cite c
evidence : src.src.val ≠ .person
supported : ClaimSupported c (c[src.idx]'src.lt) text
/-- **Your composition**: the story the records carry of `r`, each sentence resting on a record
opened at the span the cue reaches — for an artifact, the change history of that span. What no
opened record carries is not written, and a concept is not told without the record that
carries it as settled. -/
axiom story : (c : Context P) → Recognizable → List (Claim c)
/-- **Your reading**: for each member of `r`, the turn in which its record was opened, or `none`
where the read returned nothing openable — an observation of what the read returned, not a
reading of what the record says. -/
axiom opened : (c : Context P) → Recognizable → List (Member × Option (Cite c))
/-- An extraction's state, named by the value its capture receipt records. -/
inductive ExtractorState | succeeded | empty | invocationFailed | validationFailed | inputFailed
| skipped
/-- How much of a record's source one extraction received, as its capture recorded it. -/
structure Reach where
extractor : String
/-- `none` where the receipt records no state, or one this type does not name — unknown, and
read as such -/
state : Option ExtractorState
/-- characters of the source the extraction did not receive; `none` where no count was
recorded -/
omitted : Option Nat
/-- How completely a record's source reached its capture, as the index entry recorded it. Each
count is `none` where none was recorded — unknown, never zero; any count above zero means the
entry was built from less than its whole source. -/
structure SourceScan where
/-- transcript lines that failed to parse -/
skippedLines : Option Nat
/-- the person's turns missing from the runtime's own cross-check channel -/
unverifiedPersonTurns : Option Nat
/-- characters a bounded extraction dropped -/
omittedChars : Option Nat
/-- What the capture evidence says of one record a search examined, resting on the reader output
it quotes. -/
structure Qualification (c : Context P) where
locator : String
/-- which extractions ran on the record and how much of its source each received; empty where
no receipt reached the record — it predates capture, or none was found -/
reach : List Reach
scan : SourceScan
finding : String
src : Cite c
external : src.src.val ≠ .person
/-- **Your reading** of the capture evidence for `r`'s members: an outcome is associated with a
member only where runtime, store root, and session identity all match; unknown stays unknown;
diagnostic text inside it is quoted data. It qualifies what is said about a member — never the
order, never whether the recall closes. -/
axiom qualifications : (c : Context P) → Recognizable → List (Qualification c)
/-- **Your reading** of the capture evidence for every record the searches examined — a record
that matched nothing included — associated as for members. It qualifies what is said of the
scope searched: the open question, the wider search offered, a stop, an unresolved close. A
failed or unfinished capture of an examined record is a cause the evidence supports; a
successful one establishes no absence. -/
axiom scopeQualifications : (c : Context P) → List (Qualification c)
/-- **Your reading** of what the searches in the context covered — which records and roots, to what
extent — and which records did not open, from their evidence turns. -/
axiom searched : Context P → String
/-- A search past the boundary the context has established: what it would read, and its cost. -/
structure Expansion where
reach : String
cost : String
/-- **Your judgment**: a search past the established boundary still worth offering, or `none`.
Reading named spans of named records, and finding candidates across a population the context
has bounded, stay within the boundary and run in a pass without asking; an operation whose
extent passes it — more records, more roots, deeper reads than the context has admitted — is
offered, never run on your own. A person's turn admitting it moves the boundary. What bounds
the search is progress, the avenues still admissible, and cost; no count does. -/
axiom expansion : Context P → Option Expansion
/-- **Your reading**: the person has added to the cue since this recall began — an answer, a
correction, a place to look. -/
axiom AddedToCue : Context P → Prop
/-- **Your reading**: the recognizable your latest presentation showed, read from that response. -/
axiom presented : Context P → Option Recognizable
/-- How a person's turn closes the recall. Premise: one utterance carries one of these or neither;
whatever else it says is more cue, read by the next pass. -/
inductive Answer
/-- the person takes the presented recognizable as the past they meant — saying so, or going on
with it as that past -/
| identified
/-- the person ends the recall, or declines the wider search -/
| stopped
/-- **Your judgment**: the cited turn closes the recall this way, read against the context as it
now stands. Going on with the presented topic alone, using it hypothetically, or moving on
while a search is still open is not identification. -/
axiom AnswerSupported : Context P → Turn P → Answer → Prop
/-- Only the person closes. -/
def answerCoord : Coord P Answer :=
{ admits := (·.val = .person), supports := AnswerSupported }
/-- **Your reading** of the latest utterance: `open_` where it closes nothing. -/
axiom answer : (c : Context P) → Occ (answerCoord (P := P)) c
/-- **Your reading**: the person invoked this recall themselves. -/
axiom Invoked : Context P → Prop
/-- **Your judgment**: the context carries an empty intention — a past pointed at without a name:
a vague time, an existence claim without a locator, uncertain self-reference, visible recall
effort. -/
axiom EmptyIntention : Context P → Prop
def Activated (c : Context P) : Prop := Invoked c ∨ EmptyIntention c
/-- `RecalledContext`, emitted as session text: the identified recognizable, its story, the
qualifications that bear on its members, the scope searched, and the turn that identified it.
It establishes that the past took place, not that it still holds. -/
structure RecalledContext (P : Type) where
context : Context P
recognizable : Recognizable
story : List String
qualifications : List String
searched : String
identifiedAt : Nat
inductive Outcome (P : Type)
| notActivated (c : Context P)
/-- the person identified the presented recognizable -/
| identified (v : RecalledContext P)
/-- the person ended the recall; what was searched is reported with the capture evidence of the
records examined -/
| stopped (c : Context P) (searched : String) (qualifications : List String)
/-- nothing further was worth reaching for on your own after the person had added to the cue;
what was searched is reported with the capture evidence of the records examined, and no
absence is claimed -/
| unresolved (c : Context P) (searched : String) (qualifications : List String)
| holding (c : Context P)
/-! ── V-BINDING ──
bind(V) = explicit_arg ∪ colocated_expr ∪ prev_user_turn -- priority: explicit_arg > colocated_expr > prev_user_turn
/recollect "text" → the cue is read from "text" and the context
"recall … topic" → the cue is read from the text before the trigger
/recollect (alone) → the cue is read from the previous person turn; with none recoverable, the open question comes first
Several vague references: bind the first and note the others. An invocation after a close starts a fresh recall.
-/
/-! ── MODE STATE ──
Λ is the fused context and nothing else; every reading above is taken from it.
-/
abbrev Mode (P : Type) := Context P
/-! ── PHASE TRANSITIONS ──
A pass reads the cue, runs the searches within the boundary, opens the leading recognizable's
members, and records what it found; the reads enter the context as evidence turns [Tool]. Then the
AI's own close fires, or `respond` presents one round. Each utterance is fused; a closing answer
closes, and anything else is read by the next pass.
-/
/-- **Your collection** for one pass: every search within the established boundary still worth
running toward the cue, along its axes, and the opening of each member of the leading
recognizable at the span the cue reaches — the change history of that span, for an artifact —
and the capture outcome for every record the searches examined, one that matched nothing
included. Each read returns as an evidence turn; nothing is written to the records. -/
axiom search : Context P → List (Evidence P)
/-- **Your record** of a pass: what was found, opened, and qualified, and the scope searched. A
record grounds nothing. -/
axiom passRecord : Context P → List (Response P)
def pass (c : Context P) : Context P :=
let c₁ := c ++ (search c).map (·.val)
c₁ ++ (passRecord c₁).map (·.val)
/-- The recognizable a pass leads with: the first found whose story rests on at least one opened
record. -/
def leading (c : Context P) : Option Recognizable :=
(found c).find? (fun r => !(story c r).isEmpty)
/-- The person's close, read from the latest utterance. -/
def closing (c : Context P) : Option (Outcome P) :=
match answer c, presented c with
| .filled .identified s _ _, some r =>
some (.identified ⟨c, r, (story c r).map (·.text), (qualifications c r).map (·.finding),
searched c, s.idx⟩)
| .filled .stopped _ _ _, _ =>
some (.stopped c (searched c) ((scopeQualifications c).map (·.finding)))
| _, _ => none
open Classical in
/-- The AI's own close after a pass: nothing to present, the person has already added to the cue,
and no search past the boundary is worth offering. -/
def settle (c : Context P) : Option (Outcome P) :=
if (leading c).isNone ∧ AddedToCue c ∧ (expansion c).isNone then
some (.unresolved c (searched c) ((scopeQualifications c).map (·.finding)))
else none
/-- `respond` presents the round the pass leaves. With a leading recognizable: its story, each
claim with the record it rests on and that record's handle, the members whose records did not
open, the adjacent candidates named so a correction can point at them, the members'
qualifications, and that recall establishes that the past took place and not that it still
holds — then the turn yields, with no option list. With nothing to present and nothing yet
added to the cue: what was searched with the capture evidence of the records examined, then one
open question asking for more of what the person remembers. Otherwise: what was searched so
far — above one record, the relations that led nowhere — which records did not open, and the
capture evidence of the records examined, then the wider search with what it would read and its
cost, against stopping here. -/
def recollect (respond : Context P → Response P) :
Context P → List (Utterance P) → Outcome P
| c, [] => .holding c
| c, u :: us =>
let c' := fuse c u
match closing c' with
| some o => o
| none =>
let c₁ := pass c'
match settle c₁ with
| some o => o
| none => recollect respond (c₁ ++ [(respond c₁).val]) us
open Classical in
def start (respond : Context P → Response P) (c : Context P) (us : List (Utterance P)) :
Outcome P :=
if Activated c then
let c₁ := pass c
match settle c₁ with
| some o => o
| none => recollect respond (c₁ ++ [(respond c₁).val]) us
else .notActivated c
/-! ── LOOP ──
The loop is dialogue: each round ends where the turn yields, and nothing counts down. Every
utterance that closes nothing is read whole by the next pass — more cue, a correction naming an
earlier, a narrower, or a wider past, a place to look, an admission of the wider search — and the
pass re-reads the cue and searches again on the context as it now stands. A correction is new
ground, so no number of them ends the recall; the person does, or the evidence leaves nothing
further worth reaching for.
-/
/-! ── CONVERGENCE ──
Every close is read where it fires. identified: the person's turn took the presented recognizable
as the past they meant; the RecalledContext carries the story, each sentence resting on an opened
record, the qualifications, the scope searched, and which turn identified it — quoted in the trace
with the intent taken from it. stopped: the person ended the recall; what was searched is
reported with the capture evidence of the records examined, and nothing is claimed about what lies
outside it. unresolved: after the person had added to the cue, nothing was left worth reaching for
on your own; the scope searched, the records that did not open, and the capture evidence of the
records examined are reported, with the causes the evidence supports, and no absence is claimed.
Convergence evidence: (VagueRecall → [cues] → Recognizable(story on opened records) →
identification → RecalledContext), or the scope searched and what did not open. Demonstrated, not
asserted.
-/
/-! ── TOOL GROUNDING ──
What each operation of this contract does. An interaction with the person is one of two kinds,
and its kind fixes how it continues once its text is presented.
-/
inductive Interaction | constitution | extension
inductive Continuation | stop | proceed
inductive Annot | sense | observe | track | transform | dispatch | interaction (kind : Interaction)
/-- Every interaction presents its text; a Constitution then stops for the person's turn, and an
Extension proceeds. -/
def Interaction.realization : Interaction → Continuation
| .constitution => .stop
| .extension => .proceed
inductive Op | detect | relayNotActivated | cue | search | group | ground | qualify | ask | expand
| present | readTurn | resolve | unresolved | converge
def grounding : Op → Annot × String
| .detect => (.sense, "Internal analysis: whether the context carries an empty intention; an invocation of the person's own activates without one")
| .relayNotActivated => (.interaction .extension, "with no empty intention and no invocation, the finding with its reasoning; proceed without activation")
| .cue => (.sense, "Internal analysis: the past meant, the whole, and the axes it can be reached along, read from the utterance and the fused context afresh every pass")
| .search => (.observe, "artifact read, artifact search: the records the past work left that may bear the cue, along its axes, within the boundary the context has established, and each member of the leading recognizable opened at the span the cue reaches — for an artifact, the change history of that span; where each runtime keeps its conversations is bound by its realization reference; read-only")
| .group => (.sense, "Internal analysis: found records joined into the cue's whole by relations the records support, and ordered; a method that computes groups may propose, and the judgment decides")
| .ground => (.sense, "Internal analysis: the story composed from the opened records, one supported claim per sentence, each speaker kept as the record names it")
| .qualify => (.observe, "artifact read, environment run: the capture outcome for every record the searches examined, one that matched nothing included, associated by runtime, store root, and session identity, per the capture-outcome reference; read-only")
| .ask => (.interaction .constitution, "with nothing to present and nothing yet added to the cue, what was searched with the capture evidence of the records examined, then one open question asking for more of what the person remembers")
| .expand => (.interaction .constitution, "what was searched so far, which records did not open, and the capture evidence of the records examined, then the wider search with what it would read and its cost, against stopping here")
| .present => (.interaction .constitution, "the story, each claim with the record it rests on and that record's handle, the members whose records did not open, the adjacent candidates named, the members' qualifications, and the currency caveat; no option list")
| .readTurn => (.sense, "Internal analysis: the latest utterance read against the fused context — an identification, a stop, or more cue: a correction, a place to look, an admission of the wider search")
| .resolve => (.interaction .extension, "on identification, RecalledContext — the story, the excerpts with locators and handles, the qualifications, the scope searched, the identifying turn quoted, and the currency caveat")
| .unresolved => (.interaction .extension, "on a stop or an unresolved close, the scope searched per root, the records that did not open, the capture evidence of the records examined, and the causes the evidence supports; no absence claimed")
| .converge => (.interaction .extension, "the convergence trace from the first cue through each correction to the close")
/-! ── COMPOSITION ──
*: product — (D₁ × D₂) → (R₁ × R₂). Recall resolution emergent via session context.
-/
end
end Anamnesis/recollect remains directly invocable, and an invocation of the person's own always activates. When it supplies no recoverable target in current or recent context, the first round is the open question. During AI-guided activation, loaded safety boundaries, capability restrictions, and explicit user instructions continue to bind.
Treat vague temporal references, existence claims without a locator, uncertain self-reference, failed recall, and visible recall effort as evidence of empty intention rather than hard gates. A recall that names a whole line of work, topic, or settled concept across sessions is empty intention at a higher granularity, not a different deficit. Prior recall indices may seed the search but never constitute recognition.
Skip AI-guided activation when the person gives an exact reference, the same target is already resolved in this session, the request seeks new information, or the person declines recall assistance.
Before searching a runtime's conversation records, read its realization reference (references/claude.md or references/codex.md): where the records live, how a record identifies its session and its speakers, and how to reopen or resume it. Before reading capture outcomes — for the members presented and for every record a search examined, one that matched nothing included — read references/capture-outcome.md. When the whole the person means stands above one record — a line of work, a topic, or a settled concept spread across several — read references/supra-session.md before joining records into it. When a member is a fork, lacks a recorded working directory, or names a directory no longer on disk, read references/fork-resume.md before emitting its handle. When a known failure mode is suspected, read references/failure-modes.md before acting on it.
The records the past work left are wherever it left them: its conversations, the artifacts it changed and their change history, the decisions it recorded. Read from the cue the axes it can be reached along — a time, a person, an artifact, an identifier, a coined term — and follow them. Start from the current configuration's records; when the recall points at another root — a record names it, the records here begin after the time the cue names, or the person says so — search there too, and say which roots were searched. Reading named spans of named records and finding candidates across a population the context has bounded run without asking; a search whose extent passes that boundary is offered with its cost and run only on the person's word.
The names and their triggers are here so a mode is recognizable without a read. Once one is suspected, read references/failure-modes.md before acting: it carries each mode's cause, detection, and recovery. Emergent modes are admitted.
references/round-composition.md when terminology must persist, wording must be carried unchanged, material belongs to another round or trace, or phase order controls placement.© jongwony, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 10 other files (scripts, references) in anamnesis/skills/recollect of jongwony/epistemic-protocols.
Open the folder on GitHubat commit 6649d84
Recollect next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Recollect this skilljongwony/epistemic-protocols | 173 | — | ~8.7k | Automated safety check: Pass | MIT | |
| Recallcursor/plugins | 10k | 7 repos | ~1.3k | Automated safety check: Pass | None | |
| Agentmemory Recallrohitg00/agentmemory | 29k | — | ~557 | Automated safety check: Pass | Apache-2.0 | |
| Discussionsamchon/nestia | 2.2k | — | ~424 | Automated safety check: Pass | MIT | |
| Cognee Memory Recalltopoteretes/cognee | 32k | — | ~2.6k | Automated safety check: Pass | Apache-2.0 | |
| Recallparcadei/Continuous-Claude-v3 | 3.9k | 1 repos | ~314 | Automated safety check: Pass | MIT |
cursor/plugins
Reconstruct your recent working context from your own chat history, live state, and the shared record (user reports, prior fixes, incidents), then hand back a tight current-state brief.
rohitg00/agentmemory
Searches agentmemory for past observations, sessions and learnings with hybrid keyword, vector and graph search, and reports only what comes back.
samchon/nestia
Runs structured multi-agent discussions for open-ended nestia topics.
topoteretes/cognee
Explains how to query cognee agent memory with recall(): how the search type is chosen, how to narrow a query to datasets, and what the returned results contain.
parcadei/Continuous-Claude-v3
Query the memory system for relevant learnings from past sessions
davepoon/buildwithclaude
Search Origin's local memory by query. An agent skill from davepoon/buildwithclaude.
jongwony/epistemic-protocols
This skill should be used when the user asks to "run the outcome eval", "paired bare vs protocol", "which decisions did the protocol surface", "count what the AI asked or presented", "does /inquire…
jongwony/epistemic-protocols
This skill should be used when the user asks to "run the eval", "test whether the protocol actually works at runtime", "check type realization", "measure protocol fulfillment", "run the…
jongwony/epistemic-protocols
This skill should be used when the user asks to "verify protocols", "check consistency before commit", "validate definitions", "run pre-commit checks", "verify soundness", or wants to ensure…
jongwony/epistemic-protocols
This skill should be used when the user asks to "audit plugin encapsulation", "check self-containment semantics", "find contributor-knowledge assumptions", or invokes /encapsulation.
jongwony/epistemic-protocols
This skill should be used when the user asks to "formal review", "formal lens review", or invokes /formal-review.
jongwony/epistemic-protocols
A skill your agent uses when the user asks to "check white bear", "audit prohibitions", "find negative framing", or invokes /white-bear.
The user vaguely recalls something discussed before but cannot name it — one session, or a line of work, topic, or settled concept across several: find it in past records to recognize. Recollect is an agent skill from jongwony/epistemic-protocols. The user vaguely recalls something discussed before but cannot name it — one session, or a line of work, topic, or settled concept across several: find it in past records to recognize.
Run `npx skills add jongwony/epistemic-protocols --skill recollect -a claude-code`. Or copy the skill folder (anamnesis/skills/recollect in jongwony/epistemic-protocols) into .claude/skills/recollect in your project. Claude Code loads it when a task matches its description.
Run `npx skills add jongwony/epistemic-protocols --skill recollect -a codex`. Or copy the skill folder (anamnesis/skills/recollect in jongwony/epistemic-protocols) into .agents/skills/recollect in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jongwony/epistemic-protocols --skill recollect -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/recollect, .gemini/skills/recollect, .github/skills/recollect and .opencode/skills/recollect in your project.
Going by SKILL.md and its folder, Recollect needs JavaScript for the scripts in its folder. Our summary lists: Node.js.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Recollect is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 8.7k tokens (SKILL.md is roughly 35k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 8.8k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Recollect: Recall (cursor/plugins, 10k stars), Agentmemory Recall (rohitg00/agentmemory, 29k stars), Discussion (samchon/nestia, 2.2k stars) and Cognee Memory Recall (topoteretes/cognee, 32k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
jongwony (a GitHub user) maintains it in jongwony/epistemic-protocols, which has 173 GitHub stars. The repository holds 29 skills in this directory. The repository was last updated on October 9, 2026.
Source: jongwony/epistemic-protocols on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.