AGENTS.md
AGENTS.mdAGENTS.mdroot
Quality
97/100
Scores the file, not the repository.Length
442 words
6 headings · 2 code blocksRepository
1.2k
— · pushed 8 days agoLast changed
3 days ago
First indexed 3 days ago.1# Caliber23`@rely-ai/caliber` — AI context infrastructure CLI. Scores, generates, and syncs agent configs.45## Commands67```bash8npm run build # tsup → dist/9npm run dev # watch mode10npm run test # vitest run11npm run lint # eslint src/12npx tsc --noEmit # type check13```1415## Architecture1617**Entry**: `src/bin.ts` → `src/cli.ts` · **Build**: `tsup.config.ts` · **Test**: `vitest.config.ts` · **Lint**: `eslint.config.js`1819**Commands** (`src/commands/`): `init.ts` · `score.ts` · `refresh.ts` · `regenerate.ts` · `config.ts` · `hooks.ts` · `learn.ts` · `recommend.ts` · `sources.ts` · `undo.ts` · `status.ts` · `setup-files.ts`2021**LLM** (`src/llm/`): `anthropic.ts` · `vertex.ts` · `openai-compat.ts` · `cursor-acp.ts` · `claude-cli.ts` · `types.ts` · `config.ts` · `model-recovery.ts`2223**AI** (`src/ai/`): `generate.ts` · `refine.ts` · `refresh.ts` · `detect.ts` · `learn.ts` · `score-refine.ts` · `prompts.ts`2425**Fingerprint** (`src/fingerprint/`): `index.ts` · `file-tree.ts` · `code-analysis.ts` · `sources.ts` · `cache.ts`2627**Scoring** (`src/scoring/`): `index.ts` · `constants.ts` · `display.ts` · Checks: `checks/existence.ts` · `checks/quality.ts` · `checks/grounding.ts` · `checks/accuracy.ts` · `checks/freshness.ts` · `checks/bonus.ts`2829**Writers** (`src/writers/`): `index.ts` · `claude/index.ts` · `cursor/index.ts` · `codex/index.ts` · `github-copilot/index.ts` · `staging.ts` · `manifest.ts` · `backup.ts`3031**Lib** (`src/lib/`): `hooks.ts` · `state.ts` · `resolve-caliber.ts` · `builtin-skills.ts` · `sanitize.ts` · `git-diff.ts`3233**Other**: `src/constants.ts` · `src/test/setup.ts` · `github-action/` · `packages/mcp-server/` · `packages/shared/` · `apps/`3435## Conventions3637- ESM with `.js` extensions · Tests in `__tests__/` dirs · `unknown` over `any`38- Conventional commits (`feat:`, `fix:`, `refactor:`) · Dev: `next`, Stable: `master`39- Providers implement `LLMProvider` from `src/llm/types.ts`40- Writers in `src/writers/claude/index.ts` · `src/writers/codex/index.ts` return `string[]`41- Scoring checks in `src/scoring/checks/` return `Check[]`42- No hardcoded mappings — LLM-driven via `src/ai/detect.ts`43- `collectFingerprint()` async with LLM enrichment (`src/fingerprint/index.ts`)44- MCP server workspace: `packages/mcp-server/`4546<!-- caliber:managed:pre-commit -->47## Before Committing4849**IMPORTANT:** Before every git commit, you MUST ensure Caliber syncs agent configs with the latest code changes.5051First, check if the pre-commit hook is already installed:52```bash53grep -q "caliber" .git/hooks/pre-commit 2>/dev/null && echo "hook-active" || echo "no-hook"54```5556- If **hook-active**: the hook handles sync automatically — just commit normally. Tell the user: "Caliber will sync your agent configs automatically via the pre-commit hook."57- If **no-hook**: run Caliber manually before committing:58 1. Tell the user: "Caliber: Syncing agent configs with your latest changes..."59 2. Run: `caliber refresh && git add CLAUDE.md .claude/ .cursor/ .cursorrules .github/copilot-instructions.md .github/instructions/ AGENTS.md CALIBER_LEARNINGS.md 2>/dev/null`60 3. After it completes, briefly tell the user what Caliber updated. Then proceed with the commit.6162If `caliber` is not found, tell the user: "This project uses Caliber for agent config sync. Run /setup-caliber to get set up."63<!-- /caliber:managed:pre-commit -->6465<!-- caliber:managed:learnings -->66## Session Learnings6768Read `CALIBER_LEARNINGS.md` for patterns and anti-patterns learned from previous sessions.69These are auto-extracted from real tool usage — treat them as project-specific rules.70<!-- /caliber:managed:learnings -->71
Also in caliber-ai-org/ai-setup
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| caliber-ai-org/ai-setup.cursor/rules/caliber-pre-commit.mdc · 1.2k | Cursor rules | no sections | 16/100 | 3 days ago | |
| caliber-ai-org/ai-setup.cursor/rules/llm-layer.mdc · 1.2k | Cursor rules | no sections | 24/100 | 3 days ago | |
| caliber-ai-org/ai-setup.cursor/rules/testing.mdc · 1.2k | Cursor rules | testtesting-strategy | 43/100 | 3 days ago | |
| caliber-ai-org/ai-setup.cursor/rules/caliber-conventions.mdc · 1.2k | Cursor rules | lint-formatgit | 20/100 | 3 days ago | |
| caliber-ai-org/ai-setupCLAUDE.md · 1.2k | CLAUDE.md | buildtestlint-formatstyle+1 | 97/100 | 3 days ago |
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| mui/material-uiAGENTS.md · 99k | AGENTS.md | setupbuildtestlint-format+9 | 100/100 | 3 days ago | |
| TryGhost/Ghoste2e/AGENTS.md · 55k | AGENTS.md | setupteststylearch+2 | 100/100 | 3 days ago | |
| SkeneTechnologies/skene-cookbookAGENTS.md · 51 | AGENTS.md | setupbuildtestlint-format+7 | 100/100 | 2 days ago | |
| duckduckgo/content-scope-scriptsspecial-pages/AGENTS.md · 70 | AGENTS.md | buildteststylearch+3 | 100/100 | 3 days ago | |
| n8n-io/n8npackages/@n8n/agents/AGENTS.md · 199k | AGENTS.md | buildteststylearch+3 | 100/100 | 3 days ago | |
| aaif-goose/gooseAGENTS.md · 52k | AGENTS.md | setupbuildtestlint-format+6 | 100/100 | 3 days ago | |
| trick77/agents-md-syncAGENTS.md · 2 | AGENTS.md | setupbuildteststyle+5 | 100/100 | 3 days ago | |
| code-yeongyu/oh-my-openagentpackages/web/AGENTS.md · 67k | AGENTS.md | setupbuildtestlint-format+6 | 100/100 | 2 days ago |
