seocho
CLAUDE.md59 starsChanged 6 months agoMITView on GitHub
Claude-specific execution guide for SEOCHO. Use AGENTS.md as the primary coding-agent guide; this file adds SEOCHO product context and review discipline. SEOCHO is middleware, not an experiment dump. Public code should help users build ontology-aligned graph memory systems through the SDK, runtime, examples, and docs. Current product consensus: - agent runtime: OpenAI Agents SDK - graph backend: DozerDB - tenancy: single-tenant MVP, with workspace_id propagated end-to-end - tracing: vendor-neutral contract, no third-party observability vendor — none | console | jsonl…
In this repository3 other files it gives its agents.
- AGENTS.mdAGENTS.md
- llms.txtllms.txt
- seocho-e2eSkill
The file
We split this CLAUDE.md into the rules it gives an agent
12 rules. About 0 are common, 7 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 54
Keep canonical SDK behavior in src/seocho/.
- Very specific: line 64
Prefer elementId(...) over deprecated id(...) in runtime/query Cypher.
- Distinctive: line 65
Keep ontology reasoning and SHACL-style governance out of hot request paths.
- Distinctive: line 74
Start from the user request and repo contracts, not from speculative cleanup.
- Distinctive: line 75
Keep one cohesive change per PR/commit unless the user explicitly asks for a broader sweep.
- Very specific: line 80
Do not commit local agent/editor/tool state directories.
- Distinctive: line 84
Before landing, answer these questions from the diff:
- Distinctive: line 90
If it changed query, retrieval, or answering behavior, did it preserve Cypher validation, read-safety, and Graph-RAG handoff contracts?
- Very specific: line 92
If it changed runtime APIs, did it preserve workspace_id, policy checks, and typed response models?
- Distinctive: line 94
If it changed public repository structure, did it update layout docs and the root hierarchy contract?
- Distinctive: line 101
Use the risk of the touched surface to choose validation:
- Very specific: line 128
Use scripts/, examples/, docs/, .github/, or src/seocho/ instead.
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md 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
CLAUDE.md
Claude-specific execution guide for SEOCHO. Use AGENTS.md as the primary
coding-agent guide; this file adds SEOCHO product context and review discipline.
Product Frame
SEOCHO is middleware, not an experiment dump. Public code should help users build ontology-aligned graph memory systems through the SDK, runtime, examples, and docs.
Current product consensus:
- agent runtime: OpenAI Agents SDK
- graph backend: DozerDB
- tenancy: single-tenant MVP, with
workspace_idpropagated end-to-end - tracing: vendor-neutral contract, no third-party observability vendor —
none | console | jsonl | otlp, with metrics insrc/seocho/metrics.py(ADR-0172 defines the supported backend contract) - ontology governance: Owlready2 only in offline governance paths
Read Order
For most changes:
README.mdAGENTS.mddocs/REPOSITORY_LAYOUT.mddocs/WORKFLOW.mddocs/decisions/DECISION_LOG.md
For Graph-RAG, semantic retrieval, public memory answering, or multi-agent query
flow, also read docs/GRAPH_RAG_AGENT_HANDOFF_SPEC.md.
Architecture Boundaries
Control-plane surfaces:
runtime/agent_server.pyruntime/policy.pyruntime/memory_service.py.github/docs/decisions/
Data-plane surfaces:
src/seocho/index/src/seocho/query/src/seocho/ontology.pysrc/seocho/store/extraction/only where legacy service or compatibility behavior is still explicitly owned there
Keep canonical SDK behavior in src/seocho/. Do not put new canonical logic in
root compatibility surfaces just because imports currently allow it.
Runtime Guardrails
- Runtime write/compute paths must preserve
workspace_id. - New endpoint/action paths must pass policy checks.
- Dynamic labels, relationship types, properties, and database names must be validated before Cypher interpolation.
- Query tools should remain read-safe unless write mode is explicitly required.
- Prefer
elementId(...)over deprecatedid(...)in runtime/query Cypher. - Keep ontology reasoning and SHACL-style governance out of hot request paths.
- DozerDB procedure privileges stay scoped to
apoc.*,n10s.*,semantics.*,gds.*(no wildcard unrestricted;gds.*serves OpenGDS forexamples/mdm/, jar installed byexamples/mdm/01_install_gds.sh). Compose config env vars must use theNEO4J_-prefixed underscore form — raw dotted keys are silently ignored by the image.
Agent Behavior
- Start from the user request and repo contracts, not from speculative cleanup.
- Keep one cohesive change per PR/commit unless the user explicitly asks for a broader sweep.
- Surface tradeoffs when changing public SDK/runtime behavior.
- For docs-only changes, avoid pretending runtime behavior changed.
- For architecture changes, update docs and ADRs in the same change.
- Do not commit local agent/editor/tool state directories.
Review Stance
Before landing, answer these questions from the diff:
- Did the change keep canonical SDK/engine behavior in
src/seocho/and deployment-shell behavior inruntime/? - Did it avoid adding new product behavior to compatibility-only extraction shims?
- If it changed query, retrieval, or answering behavior, did it preserve Cypher validation, read-safety, and Graph-RAG handoff contracts?
- If it changed runtime APIs, did it preserve
workspace_id, policy checks, and typed response models? - If it changed public repository structure, did it update layout docs and the root hierarchy contract?
- Is the validation proportional to the blast radius, and is every skipped check named explicitly?
Testing Discipline
Use the risk of the touched surface to choose validation:
- Runtime/API/SDK behavior:
bash scripts/ci/run_basic_ci.sh - Docs contract:
bash scripts/ci/check-doc-contracts.sh - Root/public hierarchy:
scripts/ci/check-root-hierarchy-contract.sh - Runtime ownership:
bash scripts/ci/check-runtime-shell-contract.sh - Module ownership:
bash scripts/ci/check-module-ownership-contract.sh
Report exact commands and gaps. Do not say "tested" without the command.
Public Repo Hygiene
These are intentionally not tracked public surfaces:
.agents/.beads/.claude/— except.claude/skills/, which is version-controlled shared project tooling (ADR-0113). Claude Code auto-loads project skills from there on clone; everything else under.claude/(settings, local state) stays untracked..githooks/.jules/.serena/experiments/retrieval_comparison/- root
setup_*.sh - root
dataset/,images/,ontology/, orseocho/
Use scripts/, examples/, docs/, .github/, or src/seocho/ instead.
Shareable Claude Code skills go in .claude/skills/<name>/SKILL.md.
Landing
Before pushing:
- run relevant validation
- check
git diff --check git pull --rebase- push to
main - confirm
git status --short --branchis clean and aligned withorigin/main
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.

