detoks is a wrapper system that operates in front of an LLM CLI.
User Input
↓
Prompt Compiler
↓
Translation Guardrails
↓
Request Analyzer
↓
Task Graph Builder
↓
Context Optimizer
↓
LLM CLI (Codex / Gemini)
↓
Output Processor
↓
State Manager
↓
User Output
- User interface
- REPL
- Pipeline orchestration
- Prompt processing
- Translation guardrails
- Request analysis
- LLM client boundary
- Prompt processing
- Translation guardrails
- LLM client boundary
- State management
- in-process
node-llama-cppinference runtime - Model loading and chat completion configuration
- CLI adapters
- Subprocess execution
- Unidirectional data flow
- State-driven execution
- Clear separation between model responsibilities and code responsibilities