brain-in-the-fish
CLAUDE.md88 starsChanged 8 months agoMITView on GitHub
Score any document. Prove every claim. The LLM decomposes documents into OWL knowledge graphs, SPARQL rules mine facts from the graph, and a gate verifies the score is consistent with the evidence. This project depends on open-ontologies as a library (../open-ontologies). It uses the ontology engine (GraphStore, Reasoner, SPARQL) to load and query document argument graphs. It is NOT a fork — it consumes open-ontologies as a dependency.
In this repositoryOne other file it gives its agents.
- brain-in-the-fishSkill
The file
Files
Brain in the Fish
Score any document. Prove every claim. The LLM decomposes documents into OWL knowledge graphs, SPARQL rules mine facts from the graph, and a gate verifies the score is consistent with the evidence.
Relationship to open-ontologies
This project depends on open-ontologies as a library (../open-ontologies). It uses the ontology engine (GraphStore, Reasoner, SPARQL) to load and query document argument graphs. It is NOT a fork — it consumes open-ontologies as a dependency.
Module Overview
| Module | Purpose |
types | Core evaluation domain types |
ingest | PDF ingestion and document ontology generation |
criteria | Evaluation criteria ontology loading/generation |
agent | Agent cognitive model and spawning |
scoring | Independent scoring engine with ReACT loop |
debate | Multi-round structured debate orchestrator |
moderation | Consensus moderation and convergence detection |
report | Evaluation report generation |
gate | Verdict system — CONFIRMED/FLAGGED/REJECTED based on evidence |
rules | SPARQL rule mining over argument graphs (8 rules) |
argument_graph | OWL Turtle → typed argument graph with structural metrics |
server | MCP server exposing eval_* and eds_* tools |
snn | Deprecated — legacy scoring, use gate module instead |
Pipeline
- LLM reads document → produces OWL Turtle (typed nodes with source quotes)
- Turtle loads into GraphStore → structural metrics extracted via SPARQL
- SPARQL INSERT rules derive facts (StrongClaim, UnsupportedClaim, etc.)
- Gate compares LLM holistic score against structural + quality evidence
- Verdict: CONFIRMED / FLAGGED / REJECTED
MCP Tools
| Tool | What it does |
eds_feed | Push structured evidence into the scorer |
eds_score | Get score, confidence, low-confidence criteria |
eds_challenge | Apply lateral inhibition during debate |
eds_consensus | Check if agents have converged |
Build
cargo buildCLI
brain-in-the-fish demo # 3 examples with verdicts
brain-in-the-fish evaluate <document> --intent "..." # evaluate a document
brain-in-the-fish serve # MCP server for ClaudeDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

