agentleFS
Agents4Academia-AIAgents4Academia-AI/citation_verification/CLAUDE.md

citation_verification

CLAUDE.md8 starsChanged 10 days agoMITView on GitHub

Short pointer file. The real, maintained guidance lives elsewhere — read these first and do not duplicate them here: - AGENTS.md — how to run/test/lint, conventions, off-limits, and where everything lives. Start here every session. - docs/architecture.md — the layered design, the (claim, citation) data flow, the two backends, and the extension points. - docs/DECISIONS.md — the frozen decisions (the seam, derived severity, anti-circularity) and the open [change] proposals. - docs/DATASET.md — CitationHallucinationBench design. - .claude/skills/verify-citations/SKILL.md — the verification method…

  • Reads credentials
  • Installs packages

The file

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

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

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

    If a task touches a contract file (schema.py, interfaces.py, spec/…/record.schema.json, SKILL.md), stop and flag it for team sign-off — …

    line 51

≈ “Common” is an estimate: at least 1 in 5 of the 29,248 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 Code session guide

Short pointer file. The real, maintained guidance lives elsewhere — read these first and do not duplicate them here:

  • AGENTS.md — how to run/test/lint, conventions, off-limits, and where everything lives. Start here every session.
  • docs/architecture.md — the layered design, the (claim, citation) data flow, the two backends, and the extension points.
  • docs/DECISIONS.md — the frozen decisions (the seam, derived severity, anti-circularity) and the open [change] proposals.
  • docs/DATASET.md — CitationHallucinationBench design.
  • .claude/skills/verify-citations/SKILL.md — the verification method and the frozen output table + enum vocabularies.

Team workflow & deployment

  • Team: Agents4Academia. The benchmark dataset is shared at /scratch/datasets/citation_verification_benchmark/ (not in the repo; built by src/chbench/, $CHBENCH_DATA_DIR overrides). Everyone works on their own branch and merges into main via PR — never push directly to main (see AGENTS.md).
  • main is the deployment branch. It must stay deployable at all times: the Discord front-end bot (/check) is run from main. Keep it green (make smoke) and free of personal/machine-specific config.
  • Local bot setup (gitignored — never committed): cp .claude/settings.json.example .claude/settings.json, then put your DISCORD_BOT_TOKEN in .claude/channels/discord/.env. The live .claude/settings.json, .claude/channels/ (token + allowlist) are per-deployer state and stay out of git. Only .claude/skills/ (the team contract) and *.example templates are committed.

The one thing to remember

This repo is four modules behind one frozen contract. Depend only on citation_verifier.schema (CitationRecord + enums) and citation_verifier.interfaces (the Protocols) — never another module's internals. The core must import and run without claude-agent-sdk and without network; the SDK is a lazy/optional import and network calls fail soft.

Fast loop

make install   # uv pip install -e '.[dev]'  — offline floor
make test      # full pytest suite, offline
make smoke     # tests + run_eval on the in-repo smoke gold
make schema    # regenerate + drift-check spec/v0.1/record.schema.json

If a task touches a contract file (schema.py, interfaces.py, spec/…/record.schema.json, SKILL.md), stop and flag it for team sign-off — those are frozen seams the other branches build against.

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.