agentleFS
tteontteon/seocho/CLAUDE.md

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…

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
  1. Very specific:

    Keep canonical SDK behavior in src/seocho/.

    line 54
  2. Very specific:

    Prefer elementId(...) over deprecated id(...) in runtime/query Cypher.

    line 64
  3. Distinctive:

    Keep ontology reasoning and SHACL-style governance out of hot request paths.

    line 65
  4. Distinctive:

    Start from the user request and repo contracts, not from speculative cleanup.

    line 74
  5. Distinctive:

    Keep one cohesive change per PR/commit unless the user explicitly asks for a broader sweep.

    line 75
  6. Very specific:

    Do not commit local agent/editor/tool state directories.

    line 80
  7. Distinctive:

    Before landing, answer these questions from the diff:

    line 84
  8. Distinctive:

    If it changed query, retrieval, or answering behavior, did it preserve Cypher validation, read-safety, and Graph-RAG handoff contracts?

    line 90
  9. Very specific:

    If it changed runtime APIs, did it preserve workspace_id, policy checks, and typed response models?

    line 92
  10. Distinctive:

    If it changed public repository structure, did it update layout docs and the root hierarchy contract?

    line 94
  11. Distinctive:

    Use the risk of the touched surface to choose validation:

    line 101
  12. Very specific:

    Use scripts/, examples/, docs/, .github/, or src/seocho/ instead.

    line 128

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

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_id propagated end-to-end
  • tracing: vendor-neutral contract, no third-party observability vendor — none | console | jsonl | otlp, with metrics in src/seocho/metrics.py (ADR-0172 defines the supported backend contract)
  • ontology governance: Owlready2 only in offline governance paths

Read Order

For most changes:

  1. README.md
  2. AGENTS.md
  3. docs/REPOSITORY_LAYOUT.md
  4. docs/WORKFLOW.md
  5. docs/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.py
  • runtime/policy.py
  • runtime/memory_service.py
  • .github/
  • docs/decisions/

Data-plane surfaces:

  • src/seocho/index/
  • src/seocho/query/
  • src/seocho/ontology.py
  • src/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 deprecated id(...) 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 for examples/mdm/, jar installed by examples/mdm/01_install_gds.sh). Compose config env vars must use the NEO4J_-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 in runtime/?
  • 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/, or seocho/

Use scripts/, examples/, docs/, .github/, or src/seocho/ instead. Shareable Claude Code skills go in .claude/skills/<name>/SKILL.md.

Landing

Before pushing:

  1. run relevant validation
  2. check git diff --check
  3. git pull --rebase
  4. push to main
  5. confirm git status --short --branch is clean and aligned with origin/main

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.