Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

aider-factory ๐Ÿญ

โš ๏ธ Active Development: This repository is currently being prepared for its official open-source release. Feel free to explore, star, and watch the repo as we finalize the initial stable version!

License: MIT Python: 3.12 Platform: Linux Powered by Aider

aider-factory is a modular, lightweight, YAML-driven automation harness, grounding validator, and RAG/debate engine built on top of Aider.

Designed with a "bolt-on, bolt-off" UNIX philosophy, aider-factory can be run as a complete file-coupled DAG pipeline, or its components can be used as standalone command-line clients in your standard terminal, shell scripts, or CI/CD pipelines.


๐Ÿš€ The Core Draws

1. A Barebones, YAML-Configured Aider Harness

If you want a simple, lightweight, and repeatable way to automate Aider without the bloat of heavy agent frameworks, aider-factory does this out of the box.

  • Fully customizable options through a simple .env.yml file to cater to your specific pipeline or workflow needs.
  • Easily define phase-based tasks, manage target/editable files, and run test-driven self-healing loops.

2. Modular, Standalone CLI Clients

You do not have to buy into a monolithic ecosystem. Each component of aider-factory is exposed as a global, standalone command-line client that you can lift and use anywhere:

  • aider-oracle: A blazing-fast local RAG client.
  • aider-validate: A deterministic fact-checker and quote-sticher for CI/CD.
  • aider-research: A private metasearch CLI.
  • aider-factory: The pipeline orchestrator.

3. Deterministic Grounding & Validation (Code & Review)

A multi-tiered, deterministic-first validation system that can be used in both code or review paths, and in autonomous or pair programming modes.

  • The tags are the state: The LLM cannot award itself a passing grade. Only the deterministic validator promotes tags from [evidence] to [validated] or [fixed].
  • Exact Substring Proof: A quote is either an exact verbatim substring of the source, or it is a tripwire. No fuzzy thresholds.
  • Free Ellipsis Auto-Stitching: Automatically splits quotes on ..., matches the fragments in the source, and auto-replaces them with the continuous source span if the gap is smallโ€”saving massive token costs with 0 LLM calls.
  • Unique commands and flags make it a treat to use across different workflows.

4. Structured, Refereed Debates Anywhere

Run structured, adversarial debates between the Architect and a specialized, reactive Knowledge Oracle.

  • Can be run anywhere, in both autonomous or pair programming modes.
  • Persistent Oracle Sessions: Unlike standard RAG which flushes context on every turn, the Oracle session accumulates and persists context across debate turns and rounds, ensuring deep, multi-turn reasoning.
  • Deterministic Referee: A simple script reads the PROPOSAL: and VERDICT: lines to resolve the debate (agreement or deadlock), preventing credit-burning loops.

๐Ÿ› ๏ธ The Four Superpowers

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                           aider-factory (DAG)                             โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
               โ”‚                      โ”‚                      โ”‚
               โ–ผ                      โ–ผ                      โ–ผ
      โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
      โ”‚  aider-oracle   โ”‚    โ”‚ aider-validate  โ”‚    โ”‚ aider-research  โ”‚
      โ”‚   (Local RAG)   โ”‚    โ”‚  (Grounding)    โ”‚    โ”‚  (Private Web)  โ”‚
      โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

1. ๐Ÿญ aider-factory (The Orchestrator)

Automates multi-phase development workflows. It manages file context, coordinates the split Architect/Editor model pattern, captures test suite failures, and drives iterative self-healing loops.

2. ๐Ÿ”ฎ aider-oracle (The Local Knowledge Oracle)

A standalone, terminal-first RAG client. It parses codebases structurally using tree-sitter AST chunking, indexes literature into LanceDB, and answers queries using local or cloud models. It includes a built-in two-party referee debate engine for high-stakes architectural decisions.

3. ๐Ÿ›ก๏ธ aider-validate (The Fact-Checker)

A deterministic validator designed for CI/CD. It audits generated text against source documents. It features an exact-substring check and a free, deterministic ellipsis auto-stitcher that repairs split quotes without calling an LLM. It integrates with MiniCheck for sentence-level entailment verification.

4. ๐Ÿ” aider-research (The Private Search Agent)

A vendor-free metasearch CLI. It auto-provisions a local, rootless SearXNG container via Podman/Docker, aggregates search engines, applies academic filters, and generates clean Markdown research reports.


๐Ÿ“ฆ Installation

Ensure you have Python 3.12 and uv installed.

Global Installation (Recommended)

uv tool install --force git+ssh://git@gitlab.com/bryanrod182/aider-factory.git

Editable Installation (For Developers)

git clone git+ssh://git@gitlab.com/bryanrod182/aider-factory.git
cd aider-factory
uv tool install --force --editable .

To support private, vendor-free web research, install Podman (or Docker):

sudo apt install -y podman

โฑ๏ธ Quick Start in 60 Seconds

1. Initialize Your Workspace

Navigate to any codebase and initialize the zero-clutter workspace:

cd /path/to/your-project
aider-factory

This bootstraps .aiderignore and a default configuration template at .aider_factory/.env.yml.

2. Configure Your Keys

Export your API keys (globally in your shell profile or locally in a .env file):

export GEMINI_API_KEY=\"AIzaSy...\"
export OPENAI_API_KEY=\"sk-proj...\"

3. Run Your First Pipeline

Open .aider_factory/.env.yml, configure your target files, and run:

aider-factory

๐Ÿ“– Standalone CLI Examples

Metasearch the Web Privately

aider-research search \"negative income tax labor supply\" --academic --top 5

Ingest and Query Local Documentation

# Ingest a web page or PDF into your active collection
aider-oracle --add-web https://example.com/api-docs.html --collection my_project

# Query the Oracle
aider-oracle \"What is the rate limit for the API?\"

Run a Refereed Architectural Debate

aider-oracle --debate code \"Should we migrate from SQLite to PostgreSQL?\"

Run Deterministic Quote Validation (CI/CD Ready)

aider-validate --file review.md --source source_ocr.md --report report.md --autofix

๐Ÿ—บ๏ธ Architecture & Workflow Skeleton

graph TD
    A[Start Phase] --> B{toggles.run_ocr_rag}
    B -- True --> C[Ingest Docs/Code to LanceDB]
    B -- False --> D[Skip Ingestion]
    C --> E[Initialize Aider Session]
    D --> E
    E --> F[Architect Model: Plan & Diagnose]
    F --> G[Editor Model: Apply Minimal-Delta Edits]
    G --> H{toggles.iterate_test}
    H -- True --> I[Run Test Runner / Validator]
    I --> J{Tests Pass?}
    J -- Yes --> K[Promote/Finalize State]
    J -- No --> L{Retries Exhausted?}
    L -- No --> F
    L -- Yes --> M{debate_loops > 0?}
    M -- Yes --> N[Two-Party Debate Escalation]
    M -- No --> O[Soft Fail / Hold for Human]
    N --> P[Apply Agreed Verdict]
    P --> K
    H -- False --> K
Loading

๐Ÿ“œ License & Disclaimer

This project is licensed under the MIT License - see the LICENSE file for details.

aider-factory is an independent, community-driven open-source project. It is not affiliated with, sponsored by, endorsed by, or associated with Paul Gauthier, the official Aider project, or Oracle Corporation.

About

high-precision AI orchestrator workflow and validation engine

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages