buildbuddy-io

Bazel rules and hermetic toolchain for Claude Code - Anthropic's AI coding assistant CLI.

20
0
100% credibility
Found Feb 05, 2026 at 16 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Starlark
AI Summary

rules_claude provides Bazel rules and a hermetic toolchain to run Anthropic's Claude Code AI coding assistant as build actions, tests, and interactive runs.

How It Works

1
💡 Discover AI Build Helper

You hear about a handy tool that lets a smart AI assistant help with coding tasks right inside your project builds.

2
📥 Add to Your Project

You simply include the AI helper into your project's main setup file with a quick copy-paste.

3
🔗 Connect AI Service

You link your AI account so the assistant can access its thinking power securely.

4
📝 Describe What You Want

You write a plain English instruction, like 'generate docs from this code' or 'refactor for modern features'.

5
🚀 Run Your Build

You launch your project build, and the AI springs into action, creating files, testing, or even guiding interactive changes.

6
🧪 Test and Refine

You use the AI to check if things work, like validating instructions or summarizing files.

🎉 Smarter Projects Ready

Your project now has AI-generated docs, improved code, passed tests, and feels effortlessly enhanced.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 16 to 20 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is rules_claude?

rules_claude brings Anthropic's Claude Code AI coding assistant into Bazel as hermetic rules and a cross-platform toolchain written in Starlark. Developers add it as a bazel github dependency via MODULE.bazel, then use simple rules to run Claude prompts in build steps, tests, or interactive bazel run commands—generating docs from Python sources, refactoring Rust code, summarizing protos, or even deploying Java apps. It solves the pain of non-reproducible AI tools in CI by pinning Claude versions with SHA verification and handling auth via env vars or local creds.

Why is it gaining traction?

Unlike loose CLI wrappers, it hooks directly into Bazel workflows for hermetic execution, remote caching in bazel github actions, and seamless integration with bazel rules_python, bazel rules_rust, bazel rules_cc, bazel rules_go, bazel rules_java, bazel rules_oci, bazel rules_pkg, and bazel rules_proto. Bazel github examples show it auto-registering toolchains for genrules or custom rules, with claude_test for AI-driven validation and claude_run for interactive deploys. The real draw: turning Claude into a first-class build primitive without sandbox auth hassles.

Who should use this?

Bazel monorepo maintainers automating claude code project rules like doc gen or README validation in bazel github repos. Teams on bazel rules_python or bazel rules_rust needing AI refactoring in CI, or ops folks scripting deploys via claude code coding rules and bazel github actions cache. Skip if you're not deep into Bazel—it's for hermetic builds, not casual scripting.

Verdict

Promising experiment for anthropic claude rules in Bazel (18 stars, solid docs with bazel github workflow examples), but 1.0% credibility signals early immaturity—test locally before prod. Worth a spin if AI fits your pipeline; otherwise, wait for more adoption.

(198 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.