agentleFS
tteontteon/seocho/AGENTS.md

seocho

AGENTS.md59 starsChanged 6 months agoMITView on GitHub

Coding-agent guide for SEOCHO. SEOCHO is ontology-aligned middleware between agents and graph databases. Keep the public repository focused on the SDK, runtime, examples, docs, and tests. Do not commit local agent/editor state. Read these first for non-trivial work: Also read docs/GRAPH_RAG_AGENT_HANDOFF_SPEC.md when touching semantic retrieval, public memory answering, Graph-RAG behavior, routing policy, or multi-agent query flow. This file (AGENTS.md) is the canonical execution contract — coding standards, repo map, review discipline. The dotfile docs/maintainers/AGENT_EXECPLAN_CONVENTIONS.md is a thin supplement that defines…

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository3 other files it gives its agents.

The file

Show its rules and text

We split this AGENTS.md into the rules it gives an agent

21 rules. About 1 is common, 15 are distinctive, and 5 are very specific to this project.

  • ≈1

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈15

    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
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Do not commit local agent/editor state.

    line 7
  2. Distinctive:

    Read these first for non-trivial work:

    line 11
  3. Distinctive:

    Use this map before editing code.

    line 61
  4. Distinctive:

    When a change touches a concern below, include the matching validation and docs surface in the same commit or PR.

    line 78
  5. Distinctive:

    If a change crosses more than one of these areas, keep the PR explanation clear about ownership and risk.

    line 110
  6. Distinctive:

    Use GitHub issues and pull requests for public work tracking.

    line 113
  7. Distinctive:

    Use type hints for new or modified Python functions.

    line 118
  8. Distinctive:

    Keep changes scoped and testable.

    line 119
  9. Very specific:

    Use logging, not print, outside CLI/demo code.

    line 120
  10. Common:

    Do not hardcode secrets, keys, tokens, or local absolute paths.

    line 121
  11. Very specific:

    Prefer centralized config (extraction/config.py) where the existing code already uses it.

    line 122
  12. Distinctive:

    Keep public API changes deliberate.

    line 124
  13. Distinctive:

    Keep heavy ontology reasoning out of request-time code.

    line 127
  14. Very specific:

    Do not reintroduce root seocho/, root dataset/, root images/, root ontology/, root experiments/retrieval_comparison/, or tracked local tool …

    line 128
  15. Distinctive:

    Run the narrowest relevant command first, then broaden if the touched surface is shared.

    line 147
  16. Distinctive:

    If you do not run the full basic CI, state the exact commands run and the remaining validation gap.

    line 160
  17. Very specific:

    Do not edit generated mirrored docs under website/src/content/docs/docs/ directly.

    line 168
  18. Distinctive:

    Keep README product-first.

    line 170
  19. Distinctive:

    Never revert user changes you did not make.

    line 174
  20. Distinctive:

    Avoid destructive commands unless explicitly requested.

    line 175
  21. Very specific:

    Before landing, run relevant validation, git pull --rebase, push, and confirm git status --short --branch is clean and aligned with …

    line 177

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.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
AGENTS.md

AGENTS.md

Coding-agent guide for SEOCHO.

SEOCHO is ontology-aligned middleware between agents and graph databases. Keep the public repository focused on the SDK, runtime, examples, docs, and tests. Do not commit local agent/editor state.

Start Here

Read these first for non-trivial work:

  1. README.md
  2. CLAUDE.md
  3. docs/REPOSITORY_LAYOUT.md
  4. docs/WORKFLOW.md
  5. docs/ISSUE_TASK_SYSTEM.md
  6. docs/decisions/DECISION_LOG.md

Also read docs/GRAPH_RAG_AGENT_HANDOFF_SPEC.md when touching semantic retrieval, public memory answering, Graph-RAG behavior, routing policy, or multi-agent query flow.

AGENTS.md vs docs/maintainers/AGENT_EXECPLAN_CONVENTIONS.md

This file (AGENTS.md) is the canonical execution contract — coding standards, repo map, review discipline. The dotfile docs/maintainers/AGENT_EXECPLAN_CONVENTIONS.md is a thin supplement that defines only SEOCHO's ExecPlan shorthand (per docs/maintainers/EXECPLAN_SPEC.md) for complex features/refactors; it does not restate or override anything here. Boundary: durable agent rules go in AGENTS.md; ExecPlan format/decision-style goes in docs/maintainers/AGENT_EXECPLAN_CONVENTIONS.md. The ADR index is validated by scripts/ci/check_adr_index.py (no new duplicate IDs; every DECISION_LOG reference resolves).

For task checkout, handoff and cache commands, use docs/AGENT_WORKFLOW.md. Run make agent-doctor before editing an unfamiliar workspace and make agent-start TASK=<id> for isolated work.

Repo Map

PathRole
src/seocho/Distributable Python SDK and canonical engine code
runtime/Deployment shell, runtime API wiring, policy checks
extraction/Extraction service plus compatibility shims
tests/seocho/SDK and engine regression tests
extraction/tests/Runtime/extraction compatibility tests
examples/Runnable examples, tutorials, small reference datasets
docs/Product, architecture, workflow, and operator contracts
.github/GitHub workflows and scheduled Codex prompt contracts
scripts/CI, setup, benchmark, and maintenance helpers
website/Tracked Astro/Starlight docs site

Local-only directories such as .agents/, .beads/, .githooks/, .jules/, .serena/, .seocho/, data/, logs/, and outputs/ must stay out of Git. The only .claude/ exception is .claude/skills/: shared, reviewable project skills may be tracked there so Claude Code and Codex-adjacent users can run SEOCHO workflows without hand-building local setup.

Module Playbook

Use this map before editing code. It keeps new behavior in the module that owns the architectural decision, not just the nearest import.

ConcernStart hereWatch for
Public SDK/session APIsrc/seocho/client*.py, src/seocho/session.py, src/seocho/models.py, src/seocho/http_transport.pyKeep the facade thin and preserve typed public contracts.
Agent runtime contractssrc/seocho/agent/, src/seocho/agents*.py, src/seocho/runtime_contract.pyPreserve OpenAI Agents SDK assumptions and trace payload shape.
Ontology and governancesrc/seocho/ontology*.py, src/seocho/fibo/, docs/ontology/Keep Owlready2/offline reasoning out of request-time code.
Indexing and graph shapingsrc/seocho/index/, src/seocho/rules.py, src/seocho/graph_projector.pyKeep schema/rule changes compatible with documented examples.
Query, retrieval, answeringsrc/seocho/query/, src/seocho/prompt_strategy.py, src/seocho/semantic_prompt_composer.pyValidate Cypher identifiers, preserve read-safety, and document Graph-RAG behavior changes.
Runtime API and policyruntime/agent_server.py, runtime/memory_service.py, runtime/policy.py, runtime/models/Preserve workspace_id, policy checks, and deployment-shell boundaries.
Extraction compatibilityextraction/Prefer wrappers and migration shims; do not add new canonical engine logic here.
Evaluation and benchmarkssrc/seocho/eval/, src/seocho/benchmarking.py, evaluation/, scripts/benchmarks/Keep one-off corpora/results private unless promoted to supported examples.
Public examples and docsexamples/, docs/, website/Keep README product-first and avoid editing generated website mirrors directly.

Impact Map

When a change touches a concern below, include the matching validation and docs surface in the same commit or PR.

If you touchAlso check
src/seocho/client*.py, src/seocho/session.py, or src/seocho/models.pySDK tests under tests/seocho/, README/QUICKSTART public API wording
src/seocho/query/ or Graph-RAG promptsdocs/GRAPH_RAG_AGENT_HANDOFF_SPEC.md, query tests, Cypher validation coverage
src/seocho/index/ or ontology shapingexamples/datasets assumptions, ontology docs, indexing tests
runtime/ route, model, or policy coderuntime/extraction compatibility tests and workspace_id propagation
.github/ or scripts/ci/docs/GITHUB_AUTOMATION.md, root hierarchy/doc contract checks
AGENTS.md, CLAUDE.md, or repository layout docsscripts/pm/lint-agent-docs.sh and scripts/ci/check-root-hierarchy-contract.sh

Stack Invariants

  • OpenAI Agents SDK is the agent runtime baseline.
  • DozerDB is the graph database backend baseline.
  • workspace_id must be propagated in runtime-facing models, APIs, and traces.
  • Tracing stays vendor-neutral (none|console|jsonl|otlp); use JSONL artifacts and an operator-selected OTLP backend (ADR-0172).
  • Owlready2 is allowed only in offline ontology governance paths, not hot request paths.

How To Choose The Edit Surface

  • SDK facade, ontology, indexing, query, stores: start in src/seocho/.
  • Runtime endpoints, auth/policy, memory service: start in runtime/.
  • Legacy import compatibility or extraction service behavior: start in extraction/, but keep new canonical behavior out of shim-only modules.
  • Public docs or onboarding: update README.md, QUICKSTART.md, or docs/*.
  • GitHub automation: update .github/ and reusable helpers in scripts/ci/.
  • Examples/tutorial data: keep them under examples/.

If a change crosses more than one of these areas, keep the PR explanation clear about ownership and risk.

Use GitHub issues and pull requests for public work tracking. Local trackers are private workspace aids only.

Coding Rules

  • Use type hints for new or modified Python functions.
  • Keep changes scoped and testable.
  • Use logging, not print, outside CLI/demo code.
  • Do not hardcode secrets, keys, tokens, or local absolute paths.
  • Prefer centralized config (extraction/config.py) where the existing code already uses it.
  • Keep public API changes deliberate. If a public SDK name, return model, or runtime response changes, update docs and tests in the same slice.
  • Preserve workspace_id and runtime policy checks for new endpoints/actions.
  • Keep heavy ontology reasoning out of request-time code.
  • Do not reintroduce root seocho/, root dataset/, root images/, root ontology/, root experiments/retrieval_comparison/, or tracked local tool state directories.

Validation

Live-evidence rule

  • Mocks and in-memory runners validate contracts, deterministic failure paths, and no-service CI only. They are never evidence for throughput, latency, scalability, production readiness, or external-system compatibility.
  • Performance and production claims require an actual run against every service named in the claim (for example PostgreSQL, DozerDB, etcd, Mara, or an OTel Collector). Reports must identify service versions, dataset, concurrency, hardware/container limits, warmup, and any skipped component.
  • A failed or unavailable live gate is reported as a gap, not replaced with a mock number. Keep the mock test, fix the integration, and rerun the same workload before making the claim.

Run the narrowest relevant command first, then broaden if the touched surface is shared.

ChangeCommand
Any behavior/config/CI changebash scripts/ci/run_basic_ci.sh
Docs contract onlybash scripts/ci/check-doc-contracts.sh
Runtime shell/import ownershipbash scripts/ci/check-runtime-shell-contract.sh
SDK/extraction ownershipbash scripts/ci/check-module-ownership-contract.sh
Package import boundariespython3 scripts/ci/check-import-boundaries.py
Root layout or public GitHub surfacescripts/ci/check-root-hierarchy-contract.sh
Python import smokeuv run python -c "import seocho; print(seocho.__file__)"

If you do not run the full basic CI, state the exact commands run and the remaining validation gap.

Documentation Rules

  • Architecture or workflow changes must update the relevant docs/* contract.
  • Significant architectural decisions need an ADR under docs/decisions/ and an entry in docs/decisions/DECISION_LOG.md.
  • Do not edit generated mirrored docs under website/src/content/docs/docs/ directly; regenerate them from repo-root docs.
  • Keep README product-first. Move operational detail to focused docs.

Git And Landing

  • Never revert user changes you did not make.
  • Avoid destructive commands unless explicitly requested.
  • Push target is main.
  • Before landing, run relevant validation, git pull --rebase, push, and confirm git status --short --branch is clean and aligned with origin/main.

Automation Boundaries

  • Scheduled Codex workflows must stay draft-only, small, reviewable, and non-destructive.
  • Comment merge is maintainer-triggered only: exact /go, write-or-higher permission, clean non-draft PR, squash merge.
  • Agent/tool-specific private state belongs in local ignored directories, not in the public repo.

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.