RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/AGENTS.md/caliber-ai-org/ai-setup

AGENTS.md

AGENTS.md
AGENTS.mdroot

Quality

97/100

Scores the file, not the repository.

Length

442 words

6 headings · 2 code blocks

Repository

1.2k

— · pushed 8 days ago

Last changed

3 days ago

First indexed 3 days ago.
caliber-ai-org/ai-setup/AGENTS.mdRawGitHub
1# Caliber
2 
3`@rely-ai/caliber` — AI context infrastructure CLI. Scores, generates, and syncs agent configs.
4 
5## Commands
6 
7```bash
8npm run build # tsup → dist/
9npm run dev # watch mode
10npm run test # vitest run
11npm run lint # eslint src/
12npx tsc --noEmit # type check
13```
14 
15## Architecture
16 
17**Entry**: `src/bin.ts` → `src/cli.ts` · **Build**: `tsup.config.ts` · **Test**: `vitest.config.ts` · **Lint**: `eslint.config.js`
18 
19**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`
20 
21**LLM** (`src/llm/`): `anthropic.ts` · `vertex.ts` · `openai-compat.ts` · `cursor-acp.ts` · `claude-cli.ts` · `types.ts` · `config.ts` · `model-recovery.ts`
22 
23**AI** (`src/ai/`): `generate.ts` · `refine.ts` · `refresh.ts` · `detect.ts` · `learn.ts` · `score-refine.ts` · `prompts.ts`
24 
25**Fingerprint** (`src/fingerprint/`): `index.ts` · `file-tree.ts` · `code-analysis.ts` · `sources.ts` · `cache.ts`
26 
27**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`
28 
29**Writers** (`src/writers/`): `index.ts` · `claude/index.ts` · `cursor/index.ts` · `codex/index.ts` · `github-copilot/index.ts` · `staging.ts` · `manifest.ts` · `backup.ts`
30 
31**Lib** (`src/lib/`): `hooks.ts` · `state.ts` · `resolve-caliber.ts` · `builtin-skills.ts` · `sanitize.ts` · `git-diff.ts`
32 
33**Other**: `src/constants.ts` · `src/test/setup.ts` · `github-action/` · `packages/mcp-server/` · `packages/shared/` · `apps/`
34 
35## Conventions
36 
37- 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/`
45 
46<!-- caliber:managed:pre-commit -->
47## Before Committing
48 
49**IMPORTANT:** Before every git commit, you MUST ensure Caliber syncs agent configs with the latest code changes.
50 
51First, check if the pre-commit hook is already installed:
52```bash
53grep -q &quot;caliber&quot; .git/hooks/pre-commit 2&gt;/dev/null && echo &quot;hook-active&quot; || echo &quot;no-hook&quot;
54```
55 
56- 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.
61 
62If `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 -->
64 
65<!-- caliber:managed:learnings -->
66## Session Learnings
67 
68Read `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 

Commands it names

  • npm run build
  • npm run dev
  • npm run test
  • npm run lint
  • npx tsc --noEmit
  • vitest.config.ts
  • eslint.config.js
  • git-diff.ts

Sections

  • Caliber
  • Commands
  • Architecture
  • Conventions
  • Before Committing
  • Session Learnings

What it covers

buildtestlint-formatcode-stylegit-pr

Stack — with the evidence

typescript

(1.00)

vitest

(1.00)

eslint

(1.00)

node

(0.95)

react

(0.70)

javascript

(0.60)

github-actions

(0.60)

Format

AGENTS.md

A plain-markdown README for coding agents, deliberately unopinionated: no frontmatter, no globs, no vendor keys. That minimalism is why it became the one file a dozen different agents will read, and why it carries the least per-file targeting power of any format here.

What the corpus says about it

Repository

Owner
caliber-ai-org
Language
—
License
—
Archived
no

All configs in this repo

Also in caliber-ai-org/ai-setup

Diff this repo’s formats

One 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?

The other instruction files in this repository
RepositoryFormatStackCoversScoreChanged
caliber-ai-org/ai-setup.cursor/rules/caliber-pre-commit.mdc · 1.2kCursor rulestypescriptvitest+5no sections16/1003 days ago
caliber-ai-org/ai-setup.cursor/rules/llm-layer.mdc · 1.2kCursor rulestypescriptvitest+5no sections24/1003 days ago
caliber-ai-org/ai-setup.cursor/rules/testing.mdc · 1.2kCursor rulestypescriptvitest+5testtesting-strategy43/1003 days ago
caliber-ai-org/ai-setup.cursor/rules/caliber-conventions.mdc · 1.2kCursor rulestypescriptvitest+5lint-formatgit20/1003 days ago
caliber-ai-org/ai-setupCLAUDE.md · 1.2kCLAUDE.mdtypescriptnode+5buildtestlint-formatstyle+197/1003 days ago
Diff against .cursor/rules/caliber-pre-commit.mdc Diff against .cursor/rules/llm-layer.mdc Diff against .cursor/rules/testing.mdc Diff against .cursor/rules/caliber-conventions.mdc Diff against CLAUDE.md

Similar configs

Same format, overlapping stack, ranked by quality.

Same format, overlapping stack, ranked by quality
RepositoryFormatStackCoversScoreChanged
mui/material-uiAGENTS.md · 99kAGENTS.mdtypescriptjavascript+13setupbuildtestlint-format+9100/1003 days ago
TryGhost/Ghoste2e/AGENTS.md · 55kAGENTS.mdtypescriptjavascript+12setupteststylearch+2100/1003 days ago
SkeneTechnologies/skene-cookbookAGENTS.md · 51AGENTS.mdpythoneslint+4setupbuildtestlint-format+7100/1002 days ago
duckduckgo/content-scope-scriptsspecial-pages/AGENTS.md · 70AGENTS.mdtypescriptjavascript+5buildteststylearch+3100/1003 days ago
n8n-io/n8npackages/@n8n/agents/AGENTS.md · 199kAGENTS.mdtypescriptlangchain+16buildteststylearch+3100/1003 days ago
aaif-goose/gooseAGENTS.md · 52kAGENTS.mdrusttypescript+2setupbuildtestlint-format+6100/1003 days ago
trick77/agents-md-syncAGENTS.md · 2AGENTS.mdtypescriptnode+4setupbuildteststyle+5100/1003 days ago
code-yeongyu/oh-my-openagentpackages/web/AGENTS.md · 67kAGENTS.mdtypescriptbun+10setupbuildtestlint-format+6100/1002 days ago
RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack