agentleFS
berntpoppberntpopp/spliceailookup-link/AGENTS.md

spliceailookup-link

AGENTS.md0 starsChanged 5 months agoMITView on GitHub

Shared repository instructions for agentic coding tools working in spliceailookup-link. spliceailookup-link is an MCP server for splice-impact prediction. It wraps the Broad Institute SpliceAI Lookup backends (the same SpliceAI / Pangolin / SAI-10k predictions the website at spliceailookup.broadinstitute.org surfaces) plus an Ensembl-VEP-backed variant resolver. FastAPI is a thin host providing /health only; the MCP facade is the product. Primary areas: - spliceailookup_link/ - Python package: MCP facade, HTTP clients, services, models, transports, server management - spliceailookup_link/mcp/ - hand-authored MCP facade…

The file

Show its rules and text

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

14 rules. About 0 are common, 9 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    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. Distinctive:

    Use this file for shared repo-wide agent guidance.

    line 43
  2. Distinctive:

    Keep CLAUDE.md lean and Claude-specific.

    line 44
  3. Very specific:

    Prefer Makefile targets over ad hoc commands.

    line 45
  4. Very specific:

    Use uv.lock as the dependency lock source of truth.

    line 46
  5. Distinctive:

    Do not revert or overwrite changes you did not make unless explicitly asked.

    line 52
  6. Distinctive:

    Keep edits scoped; avoid unrelated refactors.

    line 53
  7. Very specific:

    Put tests under tests/; do not create alternate test roots.

    line 54
  8. Distinctive:

    Use ASCII unless a file already requires non-ASCII content.

    line 55
  9. Distinctive:

    Treat the SpliceAI Lookup APIs as external research data services.

    line 56
  10. Very specific:

    Keep live upstream calls out of default local CI.

    line 58
  11. Very specific:

    Use uv for dependency management.

    line 97
  12. Distinctive:

    Keep MCP tool behavior and service behavior covered by unit tests.

    line 100
  13. Distinctive:

    Default the image command to the unified FastAPI host plus MCP HTTP.

    line 103
  14. Distinctive:

    Treat failing checks as real issues unless you have clear evidence otherwise.

    line 120

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

Shared repository instructions for agentic coding tools working in spliceailookup-link.

Project

spliceailookup-link is an MCP server for splice-impact prediction. It wraps the Broad Institute SpliceAI Lookup backends (the same SpliceAI / Pangolin / SAI-10k predictions the website at spliceailookup.broadinstitute.org surfaces) plus an Ensembl-VEP-backed variant resolver. FastAPI is a thin host providing /health only; the MCP facade is the product.

Primary areas:

  • spliceailookup_link/ - Python package: MCP facade, HTTP clients, services, models, transports, server management
  • spliceailookup_link/mcp/ - hand-authored MCP facade (tools, resources, errors)
  • spliceailookup_link/api/ - httpx clients for the scoring APIs and Ensembl VEP
  • tests/ - unit (deterministic, respx-mocked) and integration (live) tests
  • docs/ - API contract, architecture, MCP connection docs
  • docs/superpowers/specs/ - design specs; docs/superpowers/plans/ - plans
  • docker/ - Dockerfile + Compose

Upstream contract (load-bearing facts)

  • Scoring: GET {spliceai|pangolin}-{37|38}-xwkwwwxdwq-uc.a.run.app/{spliceai|pangolin}/ with query params variant (chrom-pos-ref-alt), hg (37|38), distance, mask (0|1), bc (basic|comprehensive), optional raw, variant_consequence.
  • Errors are returned as HTTP 200 with an error field in the JSON body, not as HTTP error codes. The client MUST inspect the body. Map "Unable to parse variant" -> invalid_input; "did not return any scores" -> not_found; 5xx / timeout -> upstream_unavailable.
  • SAI-10k consequence prediction is embedded under sai10kPredictions in the SpliceAI response (no separate endpoint).
  • Resolver: Ensembl VEP /vep/human/hgvs/<hgvs>?vcf_string=1 returns vcf_string (= chrom-pos-ref-alt) and most_severe_consequence.
  • Upstream is "interactive use only, several requests per user per minute" and individual calls can take 30s+. Keep MAX_CONCURRENCY low, timeouts generous, caching aggressive, and carry the research-use disclaimer everywhere.

Source Of Truth

  • Use this file for shared repo-wide agent guidance.
  • Keep CLAUDE.md lean and Claude-specific; it references this file.
  • Prefer Makefile targets over ad hoc commands.
  • Use uv.lock as the dependency lock source of truth.
  • For multi-step work, write/update the spec in docs/superpowers/specs/ and the plan in docs/superpowers/plans/ before broad edits.

Working Rules

  • Do not revert or overwrite changes you did not make unless explicitly asked.
  • Keep edits scoped; avoid unrelated refactors. Prefer existing patterns.
  • Put tests under tests/; do not create alternate test roots.
  • Use ASCII unless a file already requires non-ASCII content.
  • Treat the SpliceAI Lookup APIs as external research data services. Keep MCP tools research-use scoped; never imply clinical decision support.
  • Keep live upstream calls out of default local CI. Tests requiring API availability must be marked integration.
  • MCP tool names, schemas, resources, and response modes are owned by spliceailookup_link/mcp/. REST is intentionally minimal (/health only).

Commands

Required before claiming completion: make ci-local.

Useful: make install lock format lint lint-fix lint-loc typecheck test test-fast test-integration test-cov dev run-prod docker-build docker-up.

Fleet Deploy Contract

docker/docker-compose.npm.yml is the file the GeneFoundry fleet controller (strato_v6_docker_npm) deploys and validates. The service it declares must set user: "<uid>:<gid>" numerically -- this image's own value, read from docker/Dockerfile (currently 999:999), never copied from a sibling -link repo.

user must NOT appear in the Compose files listed in container-release.json (docker/docker-compose.yml, docker/docker-compose.prod.yml) -- the shared release gate (container_release.py validate-compose) forbids it there.

Guard test: tests/unit/test_deploy_overlay_user.py asserts both halves of the contract (numeric user in the npm overlay, no user in the release Compose files).

Release checklist this repo enforces: bump pyproject.toml version, run uv lock, add a CHANGELOG.md heading ## [x.y.z] - YYYY-MM-DD, bump CITATION.cff version: -- no test here ties date-released to the CHANGELOG date (CITATION.cff is regenerated externally by genefoundry-router), so update version: only and leave date-released as-is -- tag vx.y.z, then approve the release environment gate (it can fire twice) via gh api repos/berntpopp/spliceailookup-link/actions/runs/<id>/pending_deployments (status: waiting is the gate).

Coding Standards

  • Use uv for dependency management; never direct pip installs.
  • Modern Python typing: list[str], dict[str, int], str | None.
  • Format and lint with Ruff; type check with mypy targeting Python 3.12.
  • Keep MCP tool behavior and service behavior covered by unit tests.
  • Preserve MCP tool names and response schemas unless the task calls for a breaking change.
  • Default the image command to the unified FastAPI host plus MCP HTTP.

File Size Discipline

Hard cap: 600 lines per Python module in spliceailookup_link/. Enforced by make lint-loc (wired into ci-local and pre-commit). Tests are exempt. When a file approaches 500 lines, plan a cohesive split (one module per responsibility) and keep facades/tool names stable so call sites do not churn. Grandfather exceptions in .loc-allowlist with an explicit ceiling only as a tracked temporary measure.

Testing Notes

  • make test runs deterministic unit tests from tests/unit/.
  • make test-integration runs live SpliceAI/Pangolin/VEP tests; may fail when the upstream rate-limits or cold-starts.
  • make ci-local runs formatting, linting, line-budget, type checking, tests.
  • Treat failing checks as real issues unless you have clear evidence otherwise.

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.