Files
codewhale/docs/RLM.md
T
Hunter Bown 6f1158a2d7 Initial release v0.1.0
DeepSeek TUI - Unofficial terminal UI + CLI for DeepSeek models.

Features:
- Interactive TUI with multiple modes (Normal, Plan, Agent, YOLO, RLM, Duo)
- Comprehensive tool access with approval gating
- File operations, shell execution, task management
- Sub-agent system for parallel work
- MCP integration for external tool servers
- Session management and skills system
- Cross-platform support (macOS, Linux, Windows)

🤖 Generated with [Claude Code](https://claude.ai/code)
2026-01-20 08:57:35 -06:00

55 lines
1.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# RLM Mode
RLM mode (“Recursive Language Model” mode) is DeepSeek CLIs long-context workflow: it stores large context externally (Aleph-style external memory) and provides REPL-like tools to explore and query it without stuffing everything into the models context window.
If youre curious about the research inspiration and implementation notes, see:
- `docs/rlm-paper.txt`
- `docs/rlm_gap_analysis.md`
## When To Use It
RLM mode is best for:
- “Analyze this large file / doc”
- “Summarize the whole repository”
- “Search for every occurrence of X and explain it”
- Big pasted blocks of text
The UI may auto-switch to RLM for large file requests, “largest file”, explicit “RLM” requests, and large pastes.
## How To Use It
### Switch modes
- Press `Tab` until you reach **RLM**
- Or type `/rlm` (or `/aleph`) to jump directly into RLM mode
### Load context
In RLM mode, `/load` loads external context (in other modes, `/load` loads a saved chat JSON):
```text
/load @path/to/file.rs
```
`@path` is workspace-relative.
### Inspect and query
- `/status` shows which contexts are loaded and basic usage totals.
- `/repl` toggles expression input mode.
Typical REPL helpers include:
- `lines(1, 80)` (show a slice of the context)
- `search("pattern")`
- `chunk(2000)` (create fixed-size chunks for later querying)
Under the hood, the model uses tools like `rlm_load`, `rlm_exec`, `rlm_status`, and `rlm_query`.
## Cost and Safety Notes
- `rlm_query` can be expensive because it triggers additional model calls. Prefer batching related questions.
- RLM mode auto-approves tools; keep `--workspace` scoped to the repo you want it to access.