Install

Getting started

StubForge is a Rust workspace. The current development binaries run from a source checkout; published cross-platform releases are planned but not available yet.

Requirements

Build and browse symbols

cargo build -p stubforge-lsp
cargo run -p stubforge-tui -- --root . --server target/debug/stubforge-lsp

The TUI starts the LSP server as a child process, opens eligible source files, requests stubforge/symbolsStatus, and displays the returned symbols. Use j/k to move, i to request an implementation, b to queue all unimplemented symbols for dependency-aware bounded parallel generation, j/k to scroll a diff, a to accept, d to reject, t to retry with optional guidance, h to view the selected symbol's proposal history, r to refresh, and q to quit. Proposals are reviewed individually, and an active batch resumes automatically on the next launch.

Run as an editor LSP process

Configure your editor to launch stubforge-lsp over stdio. The server implements standard initialization, document synchronization, textDocument/documentSymbol, stubforge/symbolsStatus, and single-symbol stubforge/implementSymbol proposals. The local TUI records review outcomes and proposal history, supports guided retries, and batches dependency-ready work with bounded parallel generation. Rejected dependencies cancel queued dependents; interrupted work resumes from the local project database.

Local project state

When the client supplies a file-based workspace root URI, symbol metadata is stored in <project>/.stubforge/state.db. The directory uses SQLite WAL mode and is ignored by Git.

Hosted Worker access

Hosted access is optional. On an interactive first run, the remote TUI opens the account portal and prompts for a one-time API key without echoing it to the terminal. Non-interactive use can set STUB_AGENT_API_KEY or pass --api-key. The TUI syncs eligible source files to the hosted service; use the local LSP/TUI if you do not want source transmitted.