terraphim / terraphim/terraphim-ai

Phase 3: Complete REPL Implementation (Week 3)

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

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

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.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.