proximity-protocol
Skill53 starsChanged 55 days agoApache-2.0View on GitHub
Proximity thresholds, borderline-duplicate adjudication, and cluster labeling for the prox pipeline.
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 50
Run these commands in order.
- Distinctive: line 110
Predictions: Do they make the same testable predictions, or do they predict different outcomes?
- Distinctive: line 112
Experimental approach: Do they propose the same experiments, or do the experimental designs differ meaningfully?
- Distinctive: line 114
Evidence base: Do they cite the same literature, or do they draw on different evidence?
- Very specific: line 195
After running prox clusters, the proximity agent should give each cluster a brief descriptive label for the supervisor's use.
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Proximity Protocol
This skill teaches you how to use the prox CLI pipeline and how to adjudicate
borderline duplicate hypotheses. The proximity agent is a mechanical role: run
the pipeline, adjudicate borderline pairs, label clusters, and report results.
Similarity Thresholds
The prox tool computes pairwise cosine similarity of TF-IDF vectors built
from hypothesis texts (title + statement + mechanism). Because TF-IDF is a
lexical metric, scores reflect vocabulary overlap, not semantic meaning.
Two hypotheses that describe the same mechanism in different words may score
low, while two that share boilerplate phrasing may score high. Keep this
limitation in mind when interpreting results.
Note: A sentence-transformer backend (
sbert) is planned but not yet implemented —prox embed --backend sbertraisesNotImplementedError. All current scores are TF-IDF–based.
Similarity scores are interpreted as follows:
| Range | Interpretation | Action |
| < 0.30 | Low lexical overlap — little shared vocabulary (not necessarily semantically unrelated) | No edge in the proximity graph |
| 0.30 – 0.80 | Same cluster — related hypotheses exploring similar themes | Grouped into the same cluster; no merge concern |
| 0.80 – 0.92 | Borderline duplicate — high surface similarity, may or may not be genuinely distinct | LLM must adjudicate (see procedure below) |
| ≥ 0.92 | Auto-merge candidate — very likely duplicates or paraphrases | Recommend merge to supervisor without further analysis |
The graph threshold (0.30) determines which pairs get edges. The dupe threshold (0.80) determines which pairs are flagged for review.
Important: The 0.92 auto-merge threshold is a protocol-level guideline for the adjudicating agent, not a feature enforced by the
proxtool. Theprox dupescommand reports all pairs at or above the dupe threshold (default 0.80) without distinguishing borderline from auto-merge. The agent reading the output applies the 0.92 cutoff when deciding which pairs to auto-merge versus adjudicate.
prox CLI Commands
Run these commands in order. Each step depends on the output of the previous one.
1. Embed
prox embed --run-dir <run-dir>Vectorises hypothesis texts (title + statement + mechanism) using TF-IDF.
Writes proximity/embeddings.npz and proximity/embedding-ids.json.
2. Graph
prox graph --run-dir <run-dir> --threshold 0.3Computes pairwise cosine similarity from embeddings. Creates an adjacency graph
with edges for all pairs with similarity ≥ 0.30. Writes proximity/graph.json.
3. Clusters
prox clusters --run-dir <run-dir>Runs community detection (Louvain algorithm or connected-components fallback)
on the proximity graph. Assigns each hypothesis a cluster label (C-NN).
Updates proximity/graph.json with cluster assignments and writes
proximity/clusters.json.
4. Dupes
prox dupes --run-dir <run-dir> --threshold 0.80Reports near-duplicate pairs (similarity ≥ 0.80) to stdout as a JSON array.
Each entry contains a (first hypothesis ID), b (second hypothesis ID),
and similarity (cosine similarity score). Pairs are sorted by descending
similarity.
Adjudication Procedure for Borderline Pairs (0.80 – 0.92)
Pairs with similarity between 0.80 and 0.92 require LLM adjudication. These are too similar to ignore but not similar enough to auto-merge — the agent must determine whether they are genuinely distinct hypotheses or duplicates.
Steps
For each borderline pair:
- Read both hypothesis JSON files fully. Load both files from the
hypotheses/directory and read all fields — not just the title. - Compare along these axes:
- Mechanism: Are they proposing the same causal mechanism, or do they differ in the proposed pathway?
- Predictions: Do they make the same testable predictions, or do they predict different outcomes?
- Experimental approach: Do they propose the same experiments, or do the experimental designs differ meaningfully?
- Evidence base: Do they cite the same literature, or do they draw on different evidence?
Decide: Assign one of three verdicts:
Verdict Meaning When to use MERGE The pair are duplicates Same mechanism, same predictions, same experiments — one is a paraphrase of the other KEEP The pair are genuinely distinct Despite surface similarity, they differ meaningfully in mechanism, predictions, or experimental approach FLAG Unclear — needs human review The agent cannot confidently decide; differences are subtle or ambiguous - Record the decision with rationale using the output format below.
Decision Output Format
Record each adjudication decision as a JSON object:
{
"pair": ["H-0001", "H-0002"],
"similarity": 0.87,
"verdict": "MERGE",
"rationale": "Both hypotheses propose the same mechanism (gut Lactobacillus depletion → vagal TNF-α signaling → hippocampal tau phosphorylation) with identical predictions and overlapping evidence. H-0002 is a paraphrase of H-0001 with minor wording differences.",
"recommended_action": "Retire H-0002 in favor of H-0001"
}For KEEP decisions:
{
"pair": ["H-0003", "H-0004"],
"similarity": 0.84,
"verdict": "KEEP",
"rationale": "Although both hypotheses address gut-brain signaling, H-0003 proposes a serotonergic mechanism while H-0004 proposes a dopaminergic mechanism. Their predictions and proposed experiments are distinct.",
"recommended_action": "No action — both remain active"
}For FLAG decisions:
{
"pair": ["H-0005", "H-0006"],
"similarity": 0.81,
"verdict": "FLAG",
"rationale": "H-0005 and H-0006 share a similar mechanism but differ in scope — H-0005 is specific to Alzheimer's while H-0006 covers neurodegeneration broadly. Unclear whether the broader framing is meaningfully distinct or just less precise.",
"recommended_action": "Supervisor should review whether the scope difference justifies keeping both"
}Auto-Merge Candidates (> 0.92)
Pairs with similarity above 0.92 are auto-merge candidates. These do not require full adjudication — recommend merge to the supervisor with a brief note:
{
"pair": ["H-0010", "H-0011"],
"similarity": 0.95,
"verdict": "MERGE",
"rationale": "Auto-merge candidate: similarity 0.95 exceeds auto-merge threshold (0.92).",
"recommended_action": "Retire one hypothesis — recommend keeping H-0010 (earlier ID)"
}Cluster Labeling
Label Format
Clusters use the C-NN format (e.g., C-01, C-02, C-03). This matches
the cluster field pattern in the hypothesis schema: ^C-[0-9]{2}$.
Labels are assigned automatically by prox clusters based on community
detection results. The numbering starts at C-01 and increments sequentially.
Descriptive Labels
After running prox clusters, the proximity agent should give each cluster a
brief descriptive label for the supervisor's use. These labels are not stored
in the hypothesis JSON (the cluster field holds only the C-NN identifier),
but are included in the report to the supervisor.
Example cluster summary:
C-01: Gut-brain axis and neuroinflammation (H-0001, H-0002, H-0005)
C-02: Sleep disruption and cognitive decline (H-0003)
C-03: Exercise-induced neurogenesis (H-0004)Cluster Semantics
Each cluster represents a thematic focus area — a group of hypotheses that explore similar scientific themes or mechanisms. Clusters help the supervisor:
- Understand the distribution of hypotheses across research themes
- Identify over-explored areas (large clusters) and under-explored gaps
- Make informed decisions about which hypotheses to prioritize
Output Files
The proximity agent owns the proximity/ directory within each run. Files
written by the pipeline:
| File | Written by | Contents |
proximity/embeddings.npz | prox embed | Sparse TF-IDF embedding matrix |
proximity/embedding-ids.json | prox embed | Ordered list of hypothesis IDs matching matrix rows |
proximity/graph.json | prox graph, updated by prox clusters | Adjacency graph with edges, similarities, and cluster assignments |
proximity/clusters.json | prox clusters | Cluster membership lists, algorithm name, and cluster count |
The graph.json structure after clustering:
{
"threshold": 0.3,
"nodes": {
"H-0001": {
"cluster": "C-01",
"edges": [
{"target": "H-0002", "similarity": 0.87},
{"target": "H-0005", "similarity": 0.45}
]
}
}
}The clusters.json structure:
{
"clusters": {
"C-01": ["H-0001", "H-0002", "H-0005"],
"C-02": ["H-0003"],
"C-03": ["H-0004"]
},
"algorithm": "louvain",
"num_clusters": 3
}Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- terravic/pde-agent-plugin★ 0100% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository82 other files it gives its agents.
- applications/open-agentic-science-engine/templates/admet-dmpk-scientist/agents.mdAGENTS.md
- applications/open-agentic-science-engine/templates/bootstrapper/agents.mdAGENTS.md
- applications/open-agentic-science-engine/templates/computational-biologist/agents.mdAGENTS.md
- applications/open-agentic-science-engine/templates/computational-chemist/agents.mdAGENTS.md
- applications/open-agentic-science-engine/templates/experimental-biologist/agents.mdAGENTS.md
- applications/open-agentic-science-engine/templates/finding-validator/agents.mdAGENTS.md
- applications/open-agentic-science-engine/templates/head-of-discovery/agents.mdAGENTS.md
- applications/open-agentic-science-engine/templates/hypex-evolution/agents.mdAGENTS.md
- applications/open-agentic-science-engine/templates/hypex-generation/agents.mdAGENTS.md
- applications/open-agentic-science-engine/templates/hypex-meta-review/agents.mdAGENTS.md
- applications/open-agentic-science-engine/templates/hypex-proximity/agents.mdAGENTS.md
- applications/open-agentic-science-engine/templates/hypex-reflection/agents.mdAGENTS.md
- applications/open-agentic-science-engine/templates/hypex-supervisor/agents.mdAGENTS.md
- applications/open-agentic-science-engine/templates/hypex-tournament/agents.mdAGENTS.md
- applications/open-agentic-science-engine/templates/medicinal-chemist/agents.mdAGENTS.md
- applications/open-agentic-science-engine/templates/preclinical-toxicologist/agents.mdAGENTS.md
- applications/open-agentic-science-engine/templates/project-curator/agents.mdAGENTS.md
- applications/open-agentic-science-engine/templates/regulatory-scientist/agents.mdAGENTS.md
- applications/open-agentic-science-engine/templates/research-operations-controller/agents.mdAGENTS.md
- applications/open-agentic-science-engine/templates/science-program-lead/agents.mdAGENTS.md
- applications/open-agentic-science-engine/templates/scientific-reviewer/agents.mdAGENTS.md
- applications/open-agentic-science-engine/templates/structural-biologist/agents.mdAGENTS.md
- cost-estimationSkill
- database-queriesSkill
- job-managementSkill
- job-submissionSkill
- results-analysisSkill
- storage-managementSkill
- visualizationSkill
- admet-property-predictionSkill
- artifact-conventionsSkill
- binding-mode-analysisSkill
- bioactivity-landscapeSkill
- brain-atlasSkill
- citation-resolutionSkill
- citation-verificationSkill
- competitive-differentiationSkill
- compound-identity-resolutionSkill
- compound-property-profileSkill
- debate-protocolSkill
- disease-transcriptomicsSkill
- elo-tournamentSkill
- evolution-operatorsSkill
- hypex-tool-setupSkill
- hypothesis-entrySkill
- hypothesis-run-corpusSkill
- hypothesis-schemaSkill
- in-vivo-pk-analysisSkill
- literature-searchSkill
- manufacturing-feasibilitySkill
- meta-review-protocolSkill
- model-organism-phenotypeSkill
- pocket-druggabilitySkill
- preclinical-safety-assessmentSkill
- program-state-managementSkill
- protein-structure-confidenceSkill
- regulatory-variant-effectSkill
- review-rubricSkill
- run-protocolSkill
- safety-screenSkill
- The first 60 shown.
Does 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.

