HouseRules: repo-convention pre-flight for agent-drafted PRs
A checker that ensures AI-written code follows a project's specific style and rules before it is submitted.
A pre-submission checker that mines a repository's contributing guides, lint configs, and past review comments into a machine-checkable ruleset, then checks and auto-fixes every agent-drafted PR against it before the PR is opened. It attacks the documented failure mode where humans must correct project-specific standards and docs in roughly 45% of merged agent PRs.
Concept
For each repository, HouseRules builds a machine-checkable "house rules" profile: parsed CONTRIBUTING.md and architecture docs, linter/formatter configs, and patterns mined from past review comments and maintainer corrections ("we don't use that library," "tests go here," "changelog entry required"). When a coding agent (Claude Code, Copilot, Devin, etc.) finishes a change, the pre-flight runs the diff against the profile, auto-fixes mechanical violations — doc tone, test placement, naming, deprecated-pattern usage — and attaches a conformance report to the PR before a human ever sees it. The single wedge: raise the fraction of agent PRs that merge without modification by automating the most automatable class of the documented rework — convention and documentation conformance.
Why now
The empirical PR study pinpoints exactly where humans add value on agent PRs: of the merged agent-assisted PRs, 45.1% required additional changes, with revisions concentrated in bug fixes, documentation, and adherence to project-specific standards [0] — i.e., conventions that live in a repo's own docs and review history rather than in public APIs. Agent usage itself concentrates in convention-heavy, mechanical task types (refactoring, documentation, testing) [0], where rule-based conformance checking is tractable. And mining a GitHub repository into structured, queryable knowledge via a local agentic RAG pipeline (orchestrating LangChain, Redis, and embedding models over repo content) is already a demonstrated, working pattern [3], so the "repo → ruleset" step is buildable today rather than speculative.
Written by GLM · 27 Nov 2026
AI assessment
An exceptionally well-grounded tool that targets a specific, evidenced friction point in the AI-coding workflow with a highly feasible technical approach.
- Evidence strength 5/5
- The idea directly addresses a specific, quantified failure mode (45.1% rework rate) from a recent empirical study on agentic PRs, and leverages a demonstrated RAG pipeline for repo mining.
- Market pull 5/5
- There is high urgency for both AI agent providers (who want higher merge rates) and maintainers (who want less manual cleanup of mechanical errors).
- Novelty & moat 3/5
- While RevisionRisk identifies the risk of rework, HouseRules actively prevents it by automating the 'house rules' enforcement, filling a gap between triage and generation.
- Feasibility 5/5
- The components (RAG for doc mining, LLM for rule extraction, and linting for enforcement) are all mature and can be integrated into a CI/CD pipeline quickly.
- Wedge clarity 5/5
- The focus on 'convention and documentation conformance' is a sharp, narrow entry point that avoids the harder problem of general bug fixing.
- Simplicity / focus 5/5
- The product is a single, focused pre-flight checker rather than a broad platform, maintaining a clear value proposition.
Scored by Gemma 4 · 27 Nov 2026. Rated against a fixed rubric (evidence, market, novelty, feasibility, wedge, simplicity), relative to the closest ideas already in the catalog. A prior estimate to compare ideas before real-world signal arrives.
Act on this idea
Ideas only matter if someone runs with them. Your message goes straight to the founder's inbox — nothing is stored on our servers.
Who benefits
- Anthropiccompany
The study measures Claude Code PRs specifically; a conformance pre-flight that raises users' first-pass merge rate is a direct product improvement for Claude Code, since 45.1% of its merged PRs in the study needed human changes.
- Greptilecompany
Greptile's AI reviewer already indexes whole repositories; turning that index into a repo-specific ruleset that pre-checks agent PRs is a natural, differentiated premium feature.
- Cognitioncompany
Devin's core promise is autonomous PRs that land; the documented 45.1% rework rate is its main friction, and convention violations are the most automatable part of that rework.
- Sourcegraphcompany
Sourcegraph's code-intelligence index plus its Amp coding agent makes mining repo conventions and checking agent diffs against them a natural extension of existing capability.
- Django Software Foundationorganization
Django enforces strict contribution standards (docs style, test conventions) that are exactly the project-specific rules agents miss; automated pre-flight reduces the maintainer correction burden.