ai-setup
CLAUDE.md1.3k starsChanged 7 months agoMITView on GitHub
@rely-ai/caliber — CLI that keeps AI agent configs in sync with your codebase. Generates and refreshes CLAUDE.md, .cursor/rules/, AGENTS.md, .github/copilot-instructions.md, and skills across Claude Code, Cursor, Codex, OpenCode, and GitHub Copilot. Supports Anthropic, OpenAI, Google Vertex AI, OpenAI-compatible endpoints, Claude Code CLI, and Cursor ACP. Entry: src/bin.ts → src/cli.ts (Commander.js) · Config: tsconfig.json · tsup.config.ts · vitest.config.ts · eslint.config.js · .prettierrc Commands (src/commands/): init.ts · score.ts · refresh.ts · regenerate.ts · config.ts · hooks.ts · insights.ts · learn.ts · recommend.ts…
Trending
Less talk lately.about the whole repository
Who's talking about caliber-ai-org/ai-setup
- sudosubin/agents.nix“agent-skills.github.caliber-ai-org.ai-setup: 1.55.1 → 1.55.2”GitHub · Oct 3, 2026
- FlorianBruniaux/claude-code-ultimate-guide“Broken links detected in guide markdown”GitHub · Oct 1, 2026
- sudosubin/agents.nix“agent-skills.github.caliber-ai-org.ai-setup: init at 1.55.1”GitHub · Sep 26, 2026
- FlorianBruniaux/claude-code-ultimate-guide“Broken links detected in guide markdown”GitHub · Sep 2, 2026
- FlorianBruniaux/claude-code-ultimate-guide“Broken links detected in guide markdown”GitHub · Sep 1, 2026
The biggest 5 of 22 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 22
Talked about on GitHub (22 times).
On GitHub · 22
- Oct 3, 2026agent-skills.github.caliber-ai-org.ai-setup: 1.55.1 → 1.55.2 — sudosubin/agents.nix0 reactions
- Oct 1, 2026Broken links detected in guide markdown — FlorianBruniaux/claude-code-ultimate-guide0 reactions
- Sep 26, 2026agent-skills.github.caliber-ai-org.ai-setup: init at 1.55.1 — sudosubin/agents.nix0 reactions
- Sep 2, 2026Broken links detected in guide markdown — FlorianBruniaux/claude-code-ultimate-guide0 reactions · 1 comment
- Sep 1, 2026Broken links detected in guide markdown — FlorianBruniaux/claude-code-ultimate-guide0 reactions · 1 comment
17 more on GitHub
- Sep 1, 2026Broken links detected in guide markdown — AMusso19/CUSTOM-claude-code-ultimate-guide-Florian0 reactions
- Sep 1, 2026Broken links detected in guide markdown — alexica00/claude-code-ultimate-guide0 reactions
- Aug 1, 2026Broken links detected in guide markdown — AMusso19/CUSTOM-claude-code-ultimate-guide-Florian0 reactions
- Aug 1, 2026Broken links detected in guide markdown — alexica00/claude-code-ultimate-guide0 reactions
- Aug 1, 2026Broken links detected in guide markdown — FlorianBruniaux/claude-code-ultimate-guide0 reactions · 1 comment
- Jul 1, 2026Broken links detected in guide markdown — AMusso19/CUSTOM-claude-code-ultimate-guide-Florian0 reactions
- Jul 1, 2026Broken links detected in guide markdown — alexica00/claude-code-ultimate-guide0 reactions
- Jul 1, 2026Broken links detected in guide markdown — FlorianBruniaux/claude-code-ultimate-guide0 reactions · 1 comment
- Jun 1, 2026Broken links detected in guide markdown — alexica00/claude-code-ultimate-guide0 reactions
- Jun 1, 2026Broken links detected in guide markdown — FlorianBruniaux/claude-code-ultimate-guide0 reactions · 1 comment
- May 18, 2026Broken links detected in guide markdown — FlorianBruniaux/claude-code-ultimate-guide0 reactions · 1 comment
- May 18, 2026Broken links detected in guide markdown — FlorianBruniaux/claude-code-ultimate-guide0 reactions · 1 comment
- May 18, 2026Broken links detected in guide markdown — FlorianBruniaux/claude-code-ultimate-guide0 reactions · 1 comment
- May 18, 2026Broken links detected in guide markdown — FlorianBruniaux/claude-code-ultimate-guide0 reactions · 1 comment
- Apr 18, 2026Audit candidate: caliber-ai-org/ai-setup — xiaolai/nlpm0 reactions · 4 comments
- Mar 28, 2026Add Caliber — AI config generation & sync CLI — roboco-io/awesome-vibecoding0 reactions · 1 comment
- Mar 26, 2026feat: charter score — zero-install AI-readiness audit for any repo — Stackbilt-dev/charter0 reactions · 1 comment
In this repository38 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .cursor/rules/caliber-conventions.mdcCursor rule
- .cursor/rules/caliber-learnings.mdcCursor rule
- .cursor/rules/caliber-pre-commit.mdcCursor rule
- .cursor/rules/llm-layer.mdcCursor rule
- .cursor/rules/testing.mdcCursor rule
- adding-a-commandSkill
- caliber-testingSkill
- find-skillsSkill
- llm-providerSkill
- save-learningSkill
- scoring-checksSkill
- setup-caliberSkill
- writers-patternSkill
- adding-a-commandSkill
- caliber-testingSkill
- find-skillsSkill
- llm-providerSkill
- save-learningSkill
- scoring-checksSkill
- setup-caliberSkill
- writers-patternSkill
- adding-a-commandSkill
- caliber-testingSkill
- find-skillsSkill
- llm-providerSkill
- save-learningSkill
- scoring-checksSkill
- setup-caliberSkill
- writers-patternSkill
- adding-a-commandSkill
- caliber-testingSkill
- find-skillsSkill
- llm-providerSkill
- save-learningSkill
- scoring-checksSkill
- setup-caliberSkill
- writers-patternSkill
The file
We split this CLAUDE.md into the rules it gives an agent
7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 81
IMPORTANT: Before every git commit, you MUST ensure Caliber syncs agent configs with the latest code changes.
- Distinctive: line 88
If hook-active: the hook handles sync automatically — just commit normally.
- Distinctive: line 89
If no-hook: run Caliber manually before committing:
- Distinctive: line 92
After it completes, briefly tell the user what Caliber updated.
- Very specific: line 94
If caliber is not found, tell the user: "This project uses Caliber for agent config sync.
- Very specific: line 100
Read CALIBER_LEARNINGS.md for patterns and anti-patterns learned from previous sessions.
- Very specific: line 109
If the pre-commit hook is not set up, run /setup-caliber to configure everything automatically.
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 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.
Files
Caliber
What Is This
@rely-ai/caliber — CLI that keeps AI agent configs in sync with your codebase. Generates and refreshes CLAUDE.md, .cursor/rules/, AGENTS.md, .github/copilot-instructions.md, and skills across Claude Code, Cursor, Codex, OpenCode, and GitHub Copilot. Supports Anthropic, OpenAI, Google Vertex AI, OpenAI-compatible endpoints, Claude Code CLI, and Cursor ACP.
Commands
npm run build # tsup → dist/
npm run dev # watch mode
npm run test # vitest run
npm run lint # eslint src/
npx tsc --noEmit # type check
npx vitest run src/scoring/__tests__/accuracy.test.ts # single test
caliber sync --status # what each agent holdsArchitecture
Entry: src/bin.ts → src/cli.ts (Commander.js) · Config: tsconfig.json · tsup.config.ts · vitest.config.ts · eslint.config.js · .prettierrc
Commands (src/commands/): init.ts · score.ts · refresh.ts · regenerate.ts · config.ts · hooks.ts · insights.ts · learn.ts · recommend.ts · sources.ts · publish.ts · undo.ts · status.ts · bootstrap.ts · uninstall.ts · Helpers: init-helpers.ts · init-prompts.ts · init-display.ts · setup-files.ts · interactive-provider-setup.ts
LLM (src/llm/): anthropic.ts · vertex.ts · openai-compat.ts · cursor-acp.ts · claude-cli.ts · types.ts · config.ts · utils.ts · usage.ts · model-recovery.ts · seat-based-errors.ts · index.ts
AI (src/ai/): generate.ts · refine.ts · refresh.ts · detect.ts · learn.ts · score-refine.ts · prompts.ts · stream-parser.ts · index.ts
Fingerprint (src/fingerprint/): index.ts · file-tree.ts · code-analysis.ts · existing-config.ts · sources.ts · git.ts · cache.ts
Scoring (src/scoring/): index.ts · display.ts · constants.ts · utils.ts · history.ts · dismissed.ts · Checks (src/scoring/checks/): existence.ts · quality.ts · grounding.ts · accuracy.ts · freshness.ts · bonus.ts · sources.ts
Writers (src/writers/): index.ts · claude/index.ts · cursor/index.ts · codex/index.ts · opencode/index.ts · github-copilot/index.ts · refresh.ts · staging.ts · backup.ts · manifest.ts · pre-commit-block.ts
Scanner (src/scanner/): index.ts — detects local MCP servers, rules, skills and enabled plugins across platforms
Sync (src/sync/): types.ts · adapters.ts · reconcile.ts · state.ts · frontmatter.ts · plugins.ts · index.ts
Compaction (src/compaction/): index.ts · transcript.ts · cursor-transcript.ts · generic-transcript.ts · detect-transcript.ts · Vendor (src/vendor/caliber-jev-compaction/) — MIT upstream copy, see VENDOR.md
Lib (src/lib/): hooks.ts · learning-hooks.ts · state.ts · resolve-caliber.ts · builtin-skills.ts · sanitize.ts · notifications.ts · git-diff.ts · lock.ts · debug-report.ts · config-discovery.ts · terminal.ts
Utils (src/utils/): parallel-tasks.ts · spinner-messages.ts · editor.ts · review.ts · prompt.ts · version-check.ts · dependencies.ts · waiting-content.ts · waiting-cards.json
Telemetry (src/telemetry/): index.ts · config.ts · events.ts · Learner (src/learner/): writer.ts · storage.ts · attribution.ts · roi.ts · utils.ts · stdin.ts
Other: github-action/action.yml · github-action/index.js · assets/video/ (Remotion) · scripts/ · docs/FLOW.md · src/constants.ts · src/test/setup.ts · CHANGELOG.md · TODOS.md
@./CONTRIBUTING.md
Conventions
- ESM with
.jsimport extensions · Tests in__tests__/dirs · Setup:src/test/setup.ts unknownoverany· Conventional commits (feat:,fix:,refactor:)- Dev:
nextbranch · Stable:master· Node >= 20 - Config:
~/.caliber/config.json(mode0600) · Constants:src/constants.ts package.jsonscripts:build,dev,test,lint,lint:fix,format,format:check
Key Patterns
- Providers: implement
LLMProviderfromsrc/llm/types.ts(call(),stream()) - Writers:
src/writers/claude/index.ts·src/writers/cursor/index.ts·src/writers/codex/index.ts·src/writers/opencode/index.tseach returnstring[] - Scoring: checks in
src/scoring/checks/returnCheck[], constants insrc/scoring/constants.ts - No hardcoded mappings: detection is LLM-driven via
src/ai/detect.ts collectFingerprint()insrc/fingerprint/index.ts— async with LLM enrichmentresolveCaliber()fromsrc/lib/resolve-caliber.tsfor CLI binary resolution- Cursor provider:
agent --print --trust --workspace /tmpinsrc/llm/cursor-acp.ts getFastModel()insrc/llm/config.ts:ANTHROPIC_SMALL_FAST_MODELscoped to anthropic/vertexvalidateModel()skips seat-based providers (isSeatBased()insrc/llm/types.ts)- Scoring: deterministic, no LLM · Backups via
src/writers/backup.ts - Scanner:
src/scanner/index.tsdetects local MCP servers, rules, skills for state comparison - Config discovery:
src/lib/config-discovery.ts - Sync adapters: implement
ProviderAdapterfromsrc/sync/types.ts(project()+read()); capability matrix drives degradation - Sync is deterministic (no LLM) —
refreshowns prose,syncowns skills/rules/plugins/MCP src/vendor/**holds byte-for-byte upstream copies: do not reformat, keep changes insrc/compaction/- Builtin skills (
src/lib/builtin-skills.ts):find-skills,save-learning,setup-caliber
<!-- caliber:managed:pre-commit -->Before Committing
IMPORTANT: Before every git commit, you MUST ensure Caliber syncs agent configs with the latest code changes.
First, check if the pre-commit hook is already installed:
grep -q "caliber" .git/hooks/pre-commit 2>/dev/null && echo "hook-active" || echo "no-hook"- 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."
- If no-hook: run Caliber manually before committing:
- Tell the user: "Caliber: Syncing agent configs with your latest changes..."
- Run:
caliber refresh && git add CLAUDE.md .claude/ .cursor/ .cursorrules .github/copilot-instructions.md .github/instructions/ AGENTS.md CALIBER_LEARNINGS.md .agents/ .opencode/ 2>/dev/null - After it completes, briefly tell the user what Caliber updated. Then proceed with the commit.
If caliber is not found, tell the user: "This project uses Caliber for agent config sync. Run /setup-caliber to get set up."
<!-- /caliber:managed:pre-commit --><!-- caliber:managed:learnings -->Session Learnings
Read CALIBER_LEARNINGS.md for patterns and anti-patterns learned from previous sessions.
These are auto-extracted from real tool usage — treat them as project-specific rules.
<!-- /caliber:managed:learnings --><!-- caliber:managed:sync -->Context Sync
This project uses Caliber to keep AI agent configs in sync across Claude Code, Cursor, Copilot, and Codex.
Configs update automatically before each commit via caliber refresh.
If the pre-commit hook is not set up, run /setup-caliber to configure everything automatically.
<!-- /caliber:managed:sync -->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
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.

