terraphim / terraphim/terraphim-ai
Phase 3: Complete REPL Implementation (Week 3)
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 62
- Forks
- 5
- Avg merge
- 2h 27m
- Merged PRs (30d)
- 1
Description
Part of Epic #270
Objective
Complete all REPL stub implementations using new MCP tools.
Tasks
1. Complete chat.rs
Location: crates/terraphim_tui/src/repl/chat.rs
Use rust-genai for LLM calls with validation.
2. Complete file_operations.rs
Location: crates/terraphim_tui/src/repl/file_operations.rs
Use new MCP editing tools.
3. Add New Commands
Location: crates/terraphim_tui/src/repl/commands.rs
- /edit {file} {search} {replace}
- /undo
- /diff
- /validate
- /context
4. Connect MCP Client Haystack
Use terraphim_middleware MCP client to connect to server.
Success Criteria
- All REPL stubs completed
- Chat working with rust-genai
- File editing working via MCP
- All commands functional
Time: 1 week
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading crates/terraphim_tui/src/repl/chat.rs, file_operations.rs, and commands.rs, then inspect the terraphim_middleware MCP client connection. Verify the existing stubs and required command behavior before working through the listed REPL tasks. Done means the stubs are completed, rust-genai chat and MCP file editing work, and /edit, /undo, /diff, /validate, and /context are functional.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- ai, cli
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100