Skip to content

feat: autonomous LLM-driven lifting (rpg-lift crate)#67

Merged
userFRM merged 1 commit intomainfrom
feat/autonomous-lift
Feb 27, 2026
Merged

feat: autonomous LLM-driven lifting (rpg-lift crate)#67
userFRM merged 1 commit intomainfrom
feat/autonomous-lift

Conversation

@userFRM
Copy link
Owner

@userFRM userFRM commented Feb 27, 2026

Summary

  • New rpg-lift crate with LlmProvider trait abstracting Anthropic (Haiku) and OpenAI (GPT-4o-mini) APIs
  • Full autonomous pipeline: auto-lift → LLM lifting → synthesis → hierarchy construction
  • CLI lift subcommand with --dry-run cost estimation, --provider/--model selection
  • Crash recovery via per-batch graph saves, retry logic with exponential backoff
  • Behind default-enabled feature flag for optional compilation

Closes #66

Test plan

  • cargo build --workspace — compiles
  • cargo clippy --workspace --all-targets -- -D warnings — zero warnings
  • cargo test --workspace — all 640+ tests pass
  • cargo build -p rpg-cli --no-default-features — builds without lift feature
  • rpg-encoder lift --help — shows correct subcommand help
  • rpg-encoder lift --dry-run — cost estimation on a real repo
  • rpg-encoder lift --provider anthropic — end-to-end with API key

🤖 Generated with Claude Code

New `rpg-lift` crate provides fire-and-forget semantic lifting via cheap
LLM APIs (Anthropic Haiku, OpenAI GPT-4o-mini). Matches Microsoft
RPG-ZeroRepo's autonomous pipeline approach while reusing our existing
rpg-encoder lifting utilities.

- LlmProvider trait with Anthropic Messages API and OpenAI Chat
  Completions API implementations (blocking HTTP via ureq v3)
- Full pipeline: auto-lift → LLM entity lifting → module aggregation →
  file synthesis → domain discovery → hierarchy construction
- Cost estimation with --dry-run support
- Crash recovery via per-batch graph saves
- Terminal progress bars with running cost ticker
- CLI `lift` subcommand behind default-enabled feature flag
- Retry logic with exponential backoff (2 retries per batch)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@userFRM userFRM merged commit 1121a13 into main Feb 27, 2026
3 checks passed
@userFRM userFRM deleted the feat/autonomous-lift branch February 27, 2026 15:39
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.

feat: autonomous LLM-driven lifting (rpg-lift crate)

1 participant