mind-reader
Reflect on, introspect, and extract foundational learnings from an attached brain, external IDE history, or foreign knowledge library. Do not use for active process debugging or destructive filesystem modifications.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- mind-reader
- description
- Reflect on, introspect, and extract foundational learnings from an attached brain, external IDE history, or foreign knowledge library. Do not use for active process debugging or destructive filesystem modifications.
02 资源文件 2
- 参考文档CARD.md3.3 KB
- 参考文档config.default.yaml287 B
03 SKILL.md 正文
Mind Reader: Cognitive Introspection & Knowledge Distillation Engine
mind-reader is the reflective introspection engine for Brain Harness. Operating atop plugin.brain_bridge, it attaches to foreign agent brains, IDE session records, and knowledge vaults to analyze past architectural decisions, error recovery trajectories, and implicit heuristics—distilling them into actionable, grounded Knowledge Items (KIs).
Every mind reading reflection session follows a five-stage progression:
[1. Attach & Detect] → [2. 4-Axis Introspection] → [3. Visual Insight Brief] → [4. Synthesis Checkpoint] → [5. KI Extraction & Lineage Commit]
See CARD.md for the companion summary card, 4-axis prompt matrix, and invariants.
Consult /crafting-skills for authoring standards and /epistemic-isnad-audit for chain-of-custody lineage rules.
1. Attach & Format Detection
Mount the target brain folder using the plugin.brain_bridge entrypoint:
- Invoke
brain_attach:folder_path: Target folder path provided by the user.alias: Descriptive mnemonic identifier (e.g.,source_brain,antigravity_archive).read_transcripts:trueto ingest execution steps, tool invocations, and error recoveries.attach_mode:"lens"(read-only ephemeral introspection).
- Verify Format Signature:
Confirm whether the detected signature is
antigravity_brain,antigravity_conversations,harness_instance,ide_memo,obsidian_vault,git_repository, orraw_docs. (For in-depth Git repository code and commit trajectory distillation, see/repo-reader). Whenantigravity_conversationsis detected (indicated by*.dbfiles containingtrajectory_meta), attach via read-only SQLite URI (file:...?mode=ro), querystepsandtrajectory_metadata_blobto filter by workspace URI, and extract trajectory step payloads and tool invocations. - Log Mount Volume: Confirm chunk count, transcript count, and unique vocabulary index size.
Completion criterion: Target brain mounted with
status: "ok"and signature classified.
2. 4-Axis Introspection Matrix
Execute four structured queries via brain_query across the mounted brain to cover the full cognitive surface:
┌─────────────────────────────────────────────────────────────┐
│ 4-AXIS INTROSPECTION │
├──────────────────────────────┬──────────────────────────────┤
│ Axis 1: Architectural Logic │ Axis 2: Error Trajectories │
│ - Design invariants │ - Failed commands / tests │
│ - Seam choices & trade-offs │ - Recovery paths chosen │
├──────────────────────────────┼──────────────────────────────┤
│ Axis 3: Epistemic Habits │ Axis 4: Delta Learnings │
│ - Common tools / workflows │ - Novel strategies │
│ - Verification standards │ - Contradictions to priors │
└──────────────────────────────┴──────────────────────────────┘
- Axis 1 (Architectural Logic):
- Query:
"Why was this architecture, service key, or module design chosen? What trade-offs were made?" - Purpose: Surface design intent and rationale.
- Query:
- Axis 2 (Error Trajectories & Recoveries):
- Query:
"What commands, tests, or approaches failed and how were they debugged or corrected?" - Purpose: Learn from prior friction and avoid repeating dead ends.
- Query:
- Axis 3 (Epistemic Habits & Conventions):
- Query:
"What verification standards, test markings, or coding guidelines were consistently applied?" - Purpose: Understand procedural norms.
- Query:
- Axis 4 (Delta Learnings & Surprises):
- Query:
"What techniques or insights are unique, unexpected, or counter-intuitive?" - Purpose: Extract novel knowledge.
- Query:
Completion criterion: 4 query result sets harvested, sorted by cosine relevance score, with source line pointers.
3. The Visual Insight Brief
Synthesize the harvested insights into a self-contained, interactive HTML report:
- Output Location: Write to
%TEMP%\mind-reader-<timestamp>.html(Windows) or/tmp/mind-reader-<timestamp>.html(Unix). - Visual Standards:
- Use Tailwind CSS and Mermaid.js via CDN in dark mode (
#0d1117). - Include a Mermaid Cognitive Topology DAG mapping identified problem areas $\rightarrow$ attempted strategies $\rightarrow$ final distilled solutions.
- Display a side-by-side comparison of Prior Assumptions vs. Distilled Brain Learnings.
- Use Tailwind CSS and Mermaid.js via CDN in dark mode (
- Delivery: Surface the absolute file path with clickable links to the user.
<!-- Location: %TEMP%\mind-reader-<timestamp>.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Mind Reader: Cognitive Introspection Brief</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.min.js"></script>
<script>mermaid.initialize({startOnLoad:true, theme:'dark'});</script>
</head>
<body class="bg-[#0d1117] text-[#c9d1d9] p-8 max-w-6xl mx-auto font-sans">
<header class="border-b border-[#30363d] pb-4 mb-6">
<h1 class="text-2xl font-bold text-white">Mind Reader Introspection Brief</h1>
<p class="text-sm text-gray-400 mt-1">Cross-Brain Cognitive Distillation & Trajectory Analysis</p>
</header>
<!-- Mermaid DAG & 4-Axis Analysis Grid -->
</body>
</html>
Completion criterion: Standalone HTML brief generated in
%TEMP%and delivered to user.
4. Synthesis Checkpoint
Present the candidate learnings to the user before committing any state:
- Formulate atomic candidate Knowledge Items (KIs) with:
- Title: Actionable heuristic or architecture pattern.
- Context: Problem space and trigger conditions.
- Distilled Learning: Positive recommendation and mitigation strategy.
- Provenance Link: Path and line number in the source brain.
- Set
RequestFeedback: truein the plan / modal checkpoint. - Pause for user feedback on which items to retain or adjust.
Completion criterion: User review checkpoint completed; approved items selected for commit.
5. KI Extraction & Lineage Commit
Persist approved learnings into the host repository's knowledge directory:
- Target Directory: Write to
.harness/knowledge/<ki_id>/or.context/on the host. - Metadata Schema (
metadata.json):{ "id": "ki_20260821_01", "title": "Subprocess Plugin Sandbox Boundary Guard", "source_target": "C:/Users/.../brain", "detected_format": "antigravity_brain", "isnad": { "decision_id": "dec_20260821_01", "claims": [ { "assertion": "Untrusted plugins run in subprocess sandboxes", "lineage": [ {"node_type": "primary_code", "uri": "transcript.jsonl#L142", "verified": true} ] } ], "status": "VERIFIED" }, "tags": ["plugin_system", "sandbox", "isolation"] } - Artifact Summary: Co-locate
summary.mddetailing the operational guideline.
Completion criterion: Approved KIs written with unbroken Isnad provenance links.
Anti-Patterns
- Passive Ingestion — Mounting a brain without interrogating error recovery trajectories (Axes 2 & 4).
- Unanchored KI Commits — Writing learned items without exact file and transcript line citations.
- Foreign Brain Mutation — Writing modified state back into an external target directory rather than preserving read-only isolation.
- Surface Scraping — Only reading file headers without querying conversational reasoning steps.
04 同仓库更多 Skills
ui-behavior-primitive-architect
Architect, audit, and verify zero-dependency headless UI behavior primitives, WebMCP agent bridges, WAI-ARIA/SSR/RTL tri-modal checks, and framework expert routing. Do not use for static CSS theme styling or backend database migrations.
trustgraph-ontology-governor
Govern knowledge graphs, SHACL-AF triple policies, OntologyRAG subclass validation, PROV-O dual named graphs, and Laya entropy decision scoring. Do not use for relational SQL queries or generic web scraping.
shim-harness-governor
Govern universal CLI agent loops, 4-tier tool permissions, ancestor-symlink workspace sandboxes, deterministic-first command routing, collision-safe MCP namespacing, and layered skill loading. Do not use for static UI styling or external SQL analytics.
graphiti-zep-memory-governor
Govern bi-temporal knowledge graphs with Graphiti future-edge clamping, MinHash/LSH entity dedup, RRF/MMR reranking, and Zep typed ontologies. Do not use for static SQL joins or generic web crawling.
agora-mcp-workbench-architect
Architect, audit, and orchestrate Agora Workbench MCP servers, loopback sidecars, unified state graphs, gateway/dispatcher connectors, and policy-enforced data lakes. Do not use for static frontend CSS styling or non-MCP desktop GUI automation.
skill-eval-assurance-runner
Evaluate and assure agent skills using small-N Wilson confidence intervals, unbiased pass^k reliability, deterministic trajectory graders, preflight boundary honesty, and sealed digest verification. Do not use for subjective prose review or unconstrained production deployment.