Skip to content

feat: Dispatch v2 Community Edition — full implementation#3

Open
nomadicmehul wants to merge 3 commits intomainfrom
feat/dispatch-v2-community-full
Open

feat: Dispatch v2 Community Edition — full implementation#3
nomadicmehul wants to merge 3 commits intomainfrom
feat/dispatch-v2-community-full

Conversation

@nomadicmehul
Copy link
Copy Markdown
Owner

@nomadicmehul nomadicmehul commented Mar 30, 2026

Summary

Complete implementation of the Dispatch v2 Community Edition, delivering on the architecture proposal with smart model routing, a 3-tier memory system, cost tracking, and a polished CLI experience.

New Features

  • ModelRouter in Pipeline — per-phase model selection (cheap for classify/score, strong for solve) with cost tracking
  • Cost Reporting — breakdown by phase/provider shown in run summary and saved to last-run.json
  • OpenAI Engine — direct OpenAI API support (GPT-4.1, GPT-4.1 Mini, o3-mini) via --provider openai
  • dispatch providers — diagnostic command showing detected providers, routing config, and registered models
  • dispatch learn — scans Dispatch PRs for review feedback, extracts lessons to .dispatch/memory/lessons.json with 30-day decay
  • dispatch status --memory — shows memory state (context cache, lessons, checkpoint), provider config
  • Checkpoint/Resume--resume flag to continue from crashed runs; progress saved after each issue
  • Lessons in Memory — lessons from dispatch learn injected into solve prompts at low priority
  • Version bumpv0.2.0-beta

New Files (7)

  • src/engine/openai.ts
  • src/commands/providers.ts
  • src/commands/learn.ts
  • test/providers.test.ts, test/learn.test.ts, test/openai.test.ts, test/checkpoint.test.ts

Modified Files (14)

  • Pipeline, run command, status, summary, router, memory manager, GitHub client, index exports, CLI entry, docs

Stats

  • 198 tests (22 new) — all passing
  • 1,511 lines added, 43 removed across 21 files
  • Clean build, clean lint

Test plan

  • npm run build — clean compile
  • npm test — 198 tests pass
  • dispatch providers — shows detected providers and routing
  • dispatch status — shows last run with memory/cost info
  • dispatch learn --show — shows lesson state
  • dispatch run --dry-run — preview with routing info
  • dispatch run --resume — resumes from checkpoint
  • dispatch run --provider openai — uses OpenAI engine
  • 2-week testing period before npm publish

…ch v2

- Add ModelRouter with per-phase model selection (auto, provider-locked, pinned strategies)
- Add model registry with cost tracking for Anthropic, Gemini, and GitHub Models
- Add provider auto-detection from environment variables and CLI tools
- Add MemoryManager with Tier 1 codebase context caching and Tier 2 cross-issue insights
- Add ContextBudgetManager for token budget allocation across context sections
- Implement real scoreConfidence() in all three engines (replacing stubs)
- Add post-solve test verification that lowers confidence on test failures
- Replace Promise.all with batched pipeline processing for cross-issue learning
- Add --provider, --strategy, --no-memory CLI flags with backward compatibility
- Add new config fields: provider, routingStrategy, enableCodebaseContext, enableCrossIssue
Smart model routing, memory system, cost tracking, OpenAI engine,
checkpoint/resume, dispatch learn, and dispatch providers commands.

- ModelRouter wired into pipeline for per-phase cost tracking
- Cost breakdown by phase/provider in run summary
- OpenAI engine (GPT-4.1, GPT-4.1 Mini, o3-mini)
- dispatch providers and dispatch learn commands
- Checkpoint/resume system (--resume flag)
- Lessons from PR reviews injected into solve prompts
- Version bump to v0.2.0-beta
- CLAUDE.md and README.md updated for v2
@nomadicmehul nomadicmehul self-assigned this Mar 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant