Phase 5: Recovery & Advanced Features (Week 5)

Open
#275 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
git, rust
Domain
ai, backend, devtools

Research direction

Start by reviewing the existing git2 dependency and the current implementation under crates/terraphim_multi_agent/. Then inspect the proposed crates/terraphim_lsp/ boundary and how rust-genai is used for agent calls. Done means the listed recovery, LSP validation, multi-agent execution, and snapshot rollback success criteria work together.

Written by the indexing model from the issue text.

Description

Part of Epic #270

Objective

Add recovery systems, LSP integration, and multi-agent orchestration.

Tasks

1. Git Integration & Recovery
  • Use existing git2 dependency
  • Auto-commit to MCP server post-tool hook
  • Undo command via git reset
  • Diff generation for all edits
2. LSP Integration

Location: crates/terraphim_lsp/ (new crate)

  • LSP client using tower-lsp
  • Diagnostics collection
  • Post-edit validation
  • Auto-fix attempts
3. Multi-Agent Orchestration

Location: crates/terraphim_multi_agent/

Leverage existing multi-agent:

  • Add specialized agents (code review, debugging)
  • Use rust-genai for all LLM calls
  • Parallel execution support
4. Snapshot System
  • Save state before operations
  • Restore on failure
  • User-triggered snapshots

Success Criteria

  • Git auto-commit working
  • LSP validates edits
  • Multi-agent execution
  • Snapshot rollback functional

Time: 1 week

Dominant language
Rust
Stars
62
Forks
5
Avg merge
2h 27m
Merged PRs (30d)
1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from terraphim/terraphim-ai

All issues in terraphim/terraphim-ai

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.