Skip to content

docs: GitHub Training Pipeline Architecture - #170

Merged
joelteply merged 1 commit into
mainfrom
docs/github-training-pipeline
Nov 12, 2025
Merged

joelteply merged 1 commit into
mainfrom
docs/github-training-pipeline

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

GitHub Training Pipeline Architecture

This PR adds comprehensive documentation for the killer feature that makes Continuum better than GitHub Copilot: personalized AI trained on YOUR specific repo and style.

What's Added

GITHUB-TRAINING-PIPELINE.md - Complete architecture document covering:

  • Training Data Extraction - GitHub API integration for PRs, issues, reviews, commits
  • JSONL Training Format - Compatible with Unsloth/OpenAI fine-tuning
  • Continuous Learning Loop - Auto fine-tune when 50+ examples accumulated
  • Multi-Persona Specialization - Code Sentinel, Testing AI, Documentation AI
  • Privacy-First - All training happens locally via Ollama, no cloud dependency
  • 4-Phase Implementation Roadmap - Clear path from data extraction to production

Key Architecture

// Training data flows through single prepared dataset
$DATASET_PATH/prepared/training-data.db

// Multiple hooks feed this dataset:
- GitHub PRs/commits
- IDE events  
- Terminal commands
- Code review feedback

Why This Matters

Instead of generic AI like GitHub Copilot, Continuum AIs:

  • Learn your codebase - Understand your architecture patterns
  • Learn your style - Match your code review preferences
  • Improve continuously - Get better with every PR merged
  • Stay private - All training data and models stay on your machine

Next Steps

As clarified by the user:

"a team of experts in all domains they need as a developer, and github is one of many hooks. we just need to turn it into our training entities, dataset, continuously append to this $DATASET_PATH/prepared db"

The implementation will create:

  1. Training Data Entity system
  2. Unified prepared dataset database
  3. Multiple hooks (GitHub, IDE, terminal, etc.)
  4. Continuous append-only training pipeline
  5. Auto fine-tuning when thresholds reached

🤖 Generated with Claude Code

Co-Authored-By: Claude [email protected]

Add comprehensive architecture document for self-improving code review AI
that learns from GitHub activity (PRs, issues, reviews, commits).

Key features:
- Training data extraction from GitHub API
- JSONL format compatible with Unsloth/OpenAI
- Continuous learning loop (50 examples → auto fine-tune)
- Multi-persona specialization (Code Sentinel, Testing AI, Doc AI)
- Privacy-first local training via Ollama
- 4-phase implementation roadmap

This is the killer feature that makes the system better than GitHub
Copilot - personalized AI trained on YOUR specific repo and style.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Copilot AI review requested due to automatic review settings November 12, 2025 19:08
@joelteply
joelteply merged commit 22a01f3 into main Nov 12, 2025
@joelteply
joelteply deleted the docs/github-training-pipeline branch November 12, 2025 19:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds comprehensive documentation for Continuum's GitHub training pipeline architecture, which aims to create personalized AI code reviewers that learn from individual codebases and developer styles.

Key changes:

  • Added detailed architecture documentation for the GitHub training pipeline
  • Documented the 4-phase implementation roadmap for continuous AI learning
  • Updated the main README to reference the new documentation file

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.

File Description
src/debug/jtag/docs/README.md Updated documentation index to include new GitHub training pipeline doc and incremented file count
src/debug/jtag/docs/GITHUB-TRAINING-PIPELINE.md New comprehensive architecture document covering data extraction, training format, continuous learning loop, multi-persona specialization, privacy considerations, and implementation phases

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +85 to +90
│ LoRA Training Pipeline │
│ • Monitor: When 50+ new examples accumulated │
│ • Train: Fine-tune adapter on new data (nightly) │
│ • Evaluate: Test on validation set │
│ • Deploy: Hot-swap new adapter into PersonaUser │
└───────────────────────┬─────────────────────────────────────┘

Copilot AI Nov 12, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Inconsistent terminology: The document uses both "LoRA adapter" and "adapter" interchangeably. While this is generally clear from context, consider defining the term once early in the document (e.g., "LoRA (Low-Rank Adaptation) adapters, referred to as 'adapters' throughout this document") to establish consistent terminology.

Copilot uses AI. Check for mistakes.
Comment on lines +29 to +36
```typescript
// You write:
function processUser(user: any) { // ← any type
return user.name.toUpperCase(); // ← No null check
}

// Generic AI says: "Consider adding error handling"
// YOUR AI says: "Use UserEntity type (line 12 of UserEntity.ts) and check user.name exists. This pattern failed in PR #142."

Copilot AI Nov 12, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The example shows user: any as a problem, but then suggests using UserEntity type. However, the validation logic user.name.toUpperCase() would still fail if user.name is undefined or null, even with proper typing. The corrected code should include the actual null check: user.name?.toUpperCase() ?? '' or similar. The comment stating the AI suggests checking user.name exists is good, but the example code doesn't show this fix.

Copilot uses AI. Check for mistakes.
Comment on lines +272 to +290
"rating": 5,
"accepted": true,
"timestamp": "2025-11-12T18:00:00Z",
"feedbackType": "architecture-review"
}
}
```

### **Example Types**

**1. Architecture Review**
```json
{
"messages": [...],
"metadata": {
"type": "architecture-review",
"filesChanged": ["PersonaGenome.ts"],
"linesChanged": 346,
"rating": 5

Copilot AI Nov 12, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The training format example shows rating: 5 in the metadata (line 272), but later examples show ratings from 1-5 without explaining the rating scale. Consider adding documentation about what each rating value means (e.g., 1=rejected, 5=excellent) and how ratings are determined from GitHub interactions.

Copilot uses AI. Check for mistakes.

### **Democratization of AI Code Review**

**Today**: Only companies like Google, Meta, Facebook can afford:

Copilot AI Nov 12, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The phrase "Google, Meta, Facebook" includes both "Meta" and "Facebook," but Facebook is now part of Meta. This is redundant. Consider using "Google, Meta" or "Google, Meta, Microsoft" instead.

Suggested change
**Today**: Only companies like Google, Meta, Facebook can afford:
**Today**: Only companies like Google, Meta, Microsoft can afford:

Copilot uses AI. Check for mistakes.
const securityConfig = {
github: {
tokenEnvVar: 'GITHUB_TOKEN', // Never commit token
tokenScopes: ['repo:read'], // Read-only access

Copilot AI Nov 12, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The config shows tokenScopes: ['repo:read'] but this is not a valid GitHub OAuth scope. The correct scope should be repo (full access) or public_repo (for public repos only). GitHub doesn't offer a granular repo:read scope. Consider using the actual valid scope names in the documentation.

Suggested change
tokenScopes: ['repo:read'], // Read-only access
tokenScopes: ['repo'], // Full access (required for private repos; use 'public_repo' for public-only)

Copilot uses AI. Check for mistakes.
joelteply added a commit that referenced this pull request Nov 30, 2025
Add comprehensive architecture document for self-improving code review AI
that learns from GitHub activity (PRs, issues, reviews, commits).

Key features:
- Training data extraction from GitHub API
- JSONL format compatible with Unsloth/OpenAI
- Continuous learning loop (50 examples → auto fine-tune)
- Multi-persona specialization (Code Sentinel, Testing AI, Doc AI)
- Privacy-first local training via Ollama
- 4-phase implementation roadmap

This is the killer feature that makes the system better than GitHub
Copilot - personalized AI trained on YOUR specific repo and style.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants