Getting Started β’ Key Features β’ Usage Guide β’ Core Philosophy
β οΈ Currently in Beta
Tempurai Coder is still under active development. Features and behaviors may change frequently.
An AI-Powered Command-Line Assistant for Complex Software Engineering
Tempurai Coder is a sophisticated, terminal-based AI assistant built for developers who need a powerful partner for complex coding tasks. It moves beyond simple code completion, employing an intelligent, multi-agent architecture to understand high-level goals, formulate detailed execution plans, and safely interact with your development environment.
It's a tool designed to augment your workflow, handling the heavy lifting of multi-step refactoring, codebase analysis, and feature implementation, all without leaving the comfort of your terminal.
Tempurai Coder is built on two fundamental principles that guide its behavior:
-
Plan-then-Execute: For any non-trivial task, the agent's first step is to stop and think. It uses a
TodoManagerto create a structured, transparent plan that breaks the problem down into logical steps. This avoids reactive, error-prone behavior and ensures a methodical approach to complex problems. You always know what the agent is planning to do and why. -
Shell First, Safety Always: The agent's primary tool for interacting with your project is the shell. This gives it the same power and flexibility as a human developer, allowing it to use
git,grep,ls, and run project-specific scripts. This power is balanced by a robust safety layer, including aSecurityPolicyEngineto block dangerous commands and aHuman-in-the-Loopconfirmation system for all file modifications.
- Node.js (v18.0 or higher recommended)
- A supported LLM API key (e.g., OpenAI, Google, Anthropic)
# Assuming the package is published to npm under this name
npm install -g tempurai-coderOn the first run, the application will create a global configuration directory and files at ~/.tempurai/.
- Open
~/.tempurai/config.jsonin your editor. - In the
modelsarray, specify your provider, model name, and add your API key. - (Optional) To enable web search, add your Tavily API key under
tools.tavilyApiKey.
{
"models": [
{
"provider": "openai",
"name": "gpt-4o",
"apiKey": "sk-..."
}
],
"tools": {
"tavilyApiKey": "tvly-..."
}
}Navigate to your project's root directory and run the command:
tempurai- Submit a Task: Type your request (e.g.,
Add a new endpoint '/status' to the main server that returns { status: 'ok' }) and pressEnter. - Open Execution Mode Selector: Type
:to choose betweenPlan ModeandCode Mode. - Open Command Palette: Type
/to access internal commands like/helpor/theme.
| Hotkey | Action | Description |
|---|---|---|
Shift + Tab |
Cycle Edit Mode | Toggle between Normal (confirm every edit) and Always Accept (auto-approve edits for the session). |
Ctrl + T |
Cycle Theme | Quickly switch between available UI themes. |
Esc |
Interrupt Agent | Stop the agent's current operation. |
Ctrl + C (x2) |
Exit Application | Forcefully exit the application. |
- Hierarchical Agent System: Employs a
SmartAgentfor high-level strategy, which delegates tasks to a tacticalToolAgent. For highly complex sub-problems, it can even spawn a specializedSubAgentto work autonomously. - Structured Task Planning: Automatically generates a step-by-step
Todolist for complex requests, providing a clear and predictable execution path. - Contextual Compression: Features a
CompressedAgentthat intelligently summarizes long conversations, ensuring the agent maintains critical context over extended tasks without hitting token limits.
- Automatic Snapshots: Before executing any task, the system automatically creates a git-based snapshot of your project's current state. This acts as a safety net, allowing you to instantly revert any changes if needed.
- Human-in-the-Loop (HITL) Confirmation: You are always in control. The agent will pause and ask for explicit permission before creating, modifying, or deleting any files.
- Configurable Security Engine: A
SecurityPolicyEnginevalidates all shell commands against allow/block lists and internal heuristics to prevent the execution of dangerous or unintended operations.
- Interactive Terminal UI: A rich, responsive interface built with React (Ink) that feels like a native part of the modern terminal workflow.
- Dual Execution Modes:
Code Mode: Full development capabilities, enabling the agent to write and modify files.Plan Mode: A read-only sandbox for research, analysis, and strategy formulation without any risk of side effects.
- Customizable Themes: Choose from multiple built-in color schemes to match your terminal setup.
Tempurai Coder operates on a decoupled, event-driven architecture. The terminal UI is a pure rendering layer that subscribes to a stream of events from the backend. The backend is coordinated by a SessionService which manages state and invokes the Agentic Core.
The Agentic Core is where the real intelligence lies. A SmartAgent analyzes the user's request, creates a plan using the TodoManager, and then executes the plan step-by-step by instructing a ToolAgent to use tools like the ShellExecutor or FilePatcher.
For a detailed breakdown of the components and their interactions, see our ARCHITECTURE.md.
Tempurai Coder finds its niche by combining the power of an agentic framework with a terminal-native workflow:
- vs. Gemini CLI / Cline: These are excellent general-purpose AI CLIs. Tempurai is hyper-focused on the in-project software development lifecycle, integrating deeply with the file system, version control, and safety mechanisms like snapshots.
- vs. Continue / iFlow: These tools excel as IDE extensions. Tempurai is designed for developers who prefer a terminal-native, keyboard-driven workflow, offering a powerful, self-contained environment without leaving the command line.
- vs. Qwen-Code / Raw LLM CLIs: Tempurai provides a robust agentic framework around the LLM. Instead of simple prompt-in/code-out, it performs multi-step reasoning, planning, and safe tool execution, enabling it to handle much more complex, long-running tasks.
Apache-2.0 License with amendments - see LICENSE for details.