Skip to content

interchain-indexer: Sync CodeRabbit Review Rules into Memory Bank #1638

@fedor-ivn

Description

@fedor-ivn

Description

CodeRabbit AI accumulates project-specific review rules over time through code review interactions. These rules should be periodically synced with the memory bank to maintain a single source of truth for conventions, gotchas, and best practices across all AI tooling.

Motivation

CodeRabbit enforces conventions and patterns at review time that may not be documented in the memory bank. Over time, this creates fragmentation where:

  • Review-time rules may contradict or duplicate memory bank guidance
  • Valuable insights captured by CodeRabbit remain siloed and unavailable to other AI assistants
  • New team members or AI tools lack access to accumulated project knowledge
  • Maintenance burden increases as rules drift apart

A periodic sync process ensures consistency and consolidates all project knowledge into the memory bank.

Current State

The project uses:

  1. Memory bank (.memory-bank/) — contains architecture docs, rules, gotchas, ADRs, and workflows used by Claude Code and other AI assistants
  2. CodeRabbit AI — performs automated code reviews and accumulates custom review rules specific to this project

These two knowledge bases evolve independently. CodeRabbit's rules are not currently exported or reconciled with the memory bank, leading to potential conflicts and knowledge silos.

Proposed Changes

  1. Establish a reusable workflow for importing CodeRabbit rules into the memory bank, including comparison logic, categorization criteria, and update procedures

  2. Implement a sync log to track which rules have been processed, preventing duplicate work across syncs and maintaining an audit trail

  3. Define integration points with the existing memory bank structure, clarifying how CodeRabbit rules map to rules files, gotchas, architecture docs, and ADRs

  4. Document the workflow in the canonical workflows index so it's discoverable alongside other maintenance procedures

  5. Execute an initial sync using the current CodeRabbit rules export to validate the workflow and incorporate relevant rules

Expected Benefits

  • Consistency: Single source of truth for all conventions and best practices
  • Knowledge preservation: CodeRabbit insights become available to all AI tools and team members
  • Reduced maintenance: No need to maintain parallel rule sets across tools
  • Better onboarding: Consolidated documentation for humans and AI assistants
  • Conflict prevention: Early detection of contradictory guidance across tools

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions