AIToday
Large Language ModelsAI Coding AssistantsZenn AI/MLPublished: Oct 15, 2026, 10:00 JST

Rule Branch links GitHub rules to AI files via Draft PR

Rule Branch links GitHub rules to AI files via Draft PR

3 Key Points

  1. What happened

    Rule Branch connects to GitHub and extracts rule candidates from a repository's README, existing AI instruction files, and dependency configs, then detects drift between approved rules and package.json declarations.

  2. Why it matters

    Approved rules are converted by a deterministic compiler into AI instruction files delivered as a Draft PR, which a human must merge, keeping rule maintenance tied to the repository's state and history.

WHO IT HITSDevelopment teams using AI coding assistants and maintaining AI instruction files across multiple repositories may find this useful, though it requires a working backend and a GitHub App connection.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, in your inbox every morning.

Context & Analysis

Rule Branch addresses a gap: teams update libraries and code, but the AI instruction files (AGENTS.md, CLAUDE.md) that AI coding tools read often retain outdated guidance. The app links a GitHub repository to a set of development rules, so changes to dependencies can be checked against approved rules over time. A specific workflow: first analysis extracts rule candidates from README, instruction files, dependency configs, and some source code; rules are organized into L1, L2, and L3 layers by abstraction level and tracked with versions and rationale. Drift detection compares approved rules mainly against package.json declarations — it does not cover all source or design changes. When drift is found, an AI-drafted revision is generated and can be reviewed with its evidence, then approved, rejected, or revised by a human. Approved rules are compiled deterministically into AI instruction files for AGENTS.md, CLAUDE.md, .github/copilot-instructions.md, and .rulebranch/rules/, delivered as a Draft PR that a person merges on GitHub. Rule Branch does not implement application features itself; it prepares and hands off rules with evidence and history. It also notes that data — code, configs, rule text, and evidence excerpts — is sent to a configured AI provider, so teams handling business repositories should check usage terms and operational policy before connecting. Auto-approval exists but is disabled by default and limited to low-risk L3 maintenance under conditions including Gemini and Vertex AI evaluation and Model Armor checks; insufficient information or failed evaluation returns the proposal to human review. Organization features (organization Workspace with roles, override, extend, deny) are based on public source and manuals, not demonstrated behavior in the screenshots shown.

FAQ
Is Rule Branch a finished product I can use now?
The Web UI is accessible from a public repository's README, but actually running analysis and distribution requires login, a GitHub App connection to the target repository, and a working backend.
Does Rule Branch automatically approve rule changes?
No. Auto-approval is disabled by default (manual) and only applies to low-risk L3 rule maintenance under limited conditions after human consent to AI data use. First-time adoption, drift responses, and GitHub merges remain human tasks.
Does Rule Branch overwrite my existing AI instruction files?
No. It updates only the marker-delimited managed section inside existing files and preserves handwritten parts outside that section. If the markers or existing file integrity are inconsistent, it stops rather than overwriting.

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleWordCraft, a Rust-built open-source Word alternative, hits v0.6.1