antri_cli
v1.57.4
Published
ANTRI Code - The Autonomous Agentic CLI & Desktop Assistant
Maintainers
Readme
ANTRI Code (antri_cli)
An intelligent, terminal-first AI coding chatbot, autonomous meta-agent, desktop control plane, and mobile ecosystem inspired by OpenCode.
Why ANTRI Code?
ANTRI Code turns your developer workspace into an integrated, autonomous coding ecosystem across the Terminal CLI, Desktop Control Plane, and Mobile App. It doesn't just wait for prompts — it breaks tasks down step-by-step, asks clarifying questions on architecture trade-offs, runs multi-iteration self-improvement loops, debates solutions against itself to hunt edge cases, and writes its own custom dynamic tools.
Visual Interfaces & Multi-Surface Ecosystem
1. Terminal CLI Interface
The lightning-fast, keyboard-driven terminal REPL with interactive @ file attachment picking, mode badges, and instant response streaming.
2. Desktop Control Plane
A minimalist cream-white desktop control center with visual agent studio, live dialectic debate cards, iterative goal pipelines, thinking profile editors, memory graph inspectors, + file/image uploader, and interactive prompt toolkit autocomplete menu.
3. Mobile App & PWA
A standalone, touch-optimized mobile control center designed for iOS and Android. Features a modern Gemini-style sliding side menu (Drawer) with a + New chat pill button, active session highlighting, click-and-hold (long-press) chat options to delete or rename sessions, standalone thinking profiles, camera/gallery + upload button, silent dialectic debates, and local memory.
Quick Start & One-Shot Setup
Global Installation
Install globally from npm with a single command:
npm install -g antri_cliLaunch Interactive CLI
Run antri anywhere in your terminal:
antriLaunch Desktop Control Plane
Open the lightweight desktop control plane in app mode:
antri desktop(or type /desktop from inside the CLI)
Launch Mobile App Server
Start the standalone mobile app server accessible on phone or local network:
antri mobile(or type /mobile from inside the CLI)
Zero-Lockfile Self-Updating
Update globally to the latest version anytime:
antri updateKey Highlights & Core Architecture
1. Plan Mode vs. Vibe Mode
- Plan Mode (
/planorantri --mode plan): The agent enters an interactive blueprinting session. It analyzes architecture, drafts roadmaps, specifies file changes, and asks clarifying questions before making code edits. - Vibe Mode (
/vibeorantri --mode vibe): Continuous conversational coding. The agent immediately writes code, creates files, executes tools, and builds solutions in real time.
2. Multi-File & Multimodal Uploads (+ Button & @ Mentions)
- Desktop & Mobile
+Attachment Button: Upload screenshots, code files, architecture diagrams, or take live camera photos directly in chat. - Interactive
@File Attachment Picker: Type@in the prompt box to trigger an interactive folder & file explorer. Navigate with arrow keys, hit Enter, and inject full file contexts directly into your conversation. - Interactive
/Prompt Toolkit Palette: Type/in the Desktop and Terminal prompt box for live command autocomplete with full keyboard navigation.
3. Comprehensive Workspace & Coding Tools (CLI & Desktop)
ANTRI includes surgical code manipulation and repository tools built directly into the agent:
edit_file: Precise search-and-replace block editing preserving indentation, comments, and structure without full rewrites.create_directory&delete_file: File and folder scaffolding and cleanup.find_files: Glob and extension file discovery (e.g.*.ts,src/**/*.tsx), filtering out noise.grep_search: Codebase-wide regex and literal pattern search with file paths, line numbers, and matching snippets.file_info&git_diff: File metadata inspection and uncommitted git diff analysis.read_file,write_file,list_dir,search_files,run_command,execute_python.
4. Autonomous Silent Debate & Goal Engines (Background Synthesis)
When asked for deep research, architectural tradeoffs, or multi-step goal execution, ANTRI runs reasoning engines secretly in the background without polluting your terminal or chat logs with intermediate chatter:
- Silent Dialectic Debate (
/silent-debate [query],/sdebate,run_silent_debate): The agent secretly pits a Proposer (Thesis), Adversary (Antithesis), and Researcher (Verification) against each other before delivering the final consensus under a badge:> ⚔️ [Dialectic Debate Synthesized] [Authoritative conclusion and hardened recommendations] - Silent Goal Loop (
/silent-goal [task],/sgoal,run_silent_goal): The agent runs a 3-stage optimization loop (Draft -> Adversarial Critique & Score -> Hardened Synthesis) and returns:> 🎯 [Goal Loop Plan Synthesized] [Production-ready implementation and architecture plan]
5. Claude-Style Interactive Artifacts, Visual Graphs & Mind Maps (/imagine, /mindmap, /view, Artifacts Hub)
ANTRI allows you to generate, preview, and interact with rich visual applications, plans, diagrams, and hierarchical concept mind maps directly inside the interface:
🧠 /mindmap [topic/concept]: Automatically generates rich, interactive, and beautifully styled hierarchical Visual Mind Maps (rendered with Mermaid 10 and dark cyber neon styling) complete with Zoom In/Out, Reset, Pan gestures, and code export on both Desktop and Mobile!📊 /imagine [topic/code]: Automatically crafts an interactive visual code architecture diagram and flowchart graph (rendered with Mermaid/SVG nodes).🌐 /view [plan/app]: Generates a complete, self-contained interactive HTML/CSS/JS application or plan (e.g. "generate me a 7-day workout plan", interactive habit tracker, dashboard, or calculator).- "👁️ View Artifact" In-Chat Action: Every generated artifact in chat displays a sleek interactive card. Tapping "View Artifact" launches the live, interactive app/diagram directly inside the app interface without exposing raw code!
- Dedicated "Artifacts" Hub (Side Drawer): Located directly above the
+ New chatbutton in the sliding navigation drawer. Displays all generated artifacts neatly separated and grouped by Chat Title / Session (e.g.Chat - 1with its 2 artifacts) with one-click interactive viewing and management.
6. Tasteful Emojis Directive (Max 2 Emojis)
ANTRI strictly adheres to a clean, professional communication standard with a hard limit of maximum 2 emojis per response, ensuring readability without clutter.
7. 100% Silent & Nuanced Philosophy Note Capture
ANTRI continuously listens and adapts to your thinking style without interruptive banners or snackbars:
- Completely Silent: Note capture happens 100% in the background.
- Minute Nuance & Philosophy Extraction: Automatically recognizes philosophical worldviews (stoicism, pragmatism, existentialism, ethics, first principles, epistemic humility), core values, thinking habits, and subtle personal preferences, compounding them into your active thinking profile (
~/.antri/profiles/profile_1.md). - View captured insights anytime with
/notes.
8. Multi-Profile Thinking System (/profile, /notes)
- Maintains distinct Markdown thinking profiles (
~/.antri/profiles/profile_1.md,profile_2.mdon Desktop/CLI, and on-device profiles on Mobile). - Interactive Profile Selector: Switch profiles on the fly with
/profile. - RAG Active Context: Profile rules and notes are seamlessly recalled into conversations.
9. Multi-Tiered Persistent Memory (Lifelong Learning)
- Episodic Store: Session transcripts and debate histories.
- Semantic Memory: Dense 128-dimensional vector store with cosine similarity.
- Workspace Conventions: Remembers repository-specific patterns (
.antri/conventions.md). - Autonomous Self-Recall: Queries past solutions before answering new prompts.
/memory(inspect store) ·/consolidate(run reflection) ·/learn <text>(save rule).
10. The Meta-Agent (Autonomous Self-Evolution)
- Sandboxed Python Runtime (
execute_python): Safe execution of code snippets. - Autonomous Self-Debugging: Intercepts stack traces, analyzes root causes, creates patches, and retries automatically.
- Dynamic Skill Synthesis (
synthesize_skill): The agent writes its own Python/JS tools, verifies them via dry-run, and persists them in~/.agent-cli/skills/. - Meta-Optimization (
/meta): Tracks tool latency, success rates, and refines prompt heuristics.
Supported AI Providers & Model Suites
ANTRI includes built-in support for 11+ AI providers with dedicated model catalogs:
| Provider | Description | Notable Models |
|---|---|---|
| Cerebras | Ultra-fast ~2,000 tok/sec CS-3 inference | llama-3.3-70b, llama3.1-70b, llama3.1-8b, qwen-2.5-coder-32b |
| Cohere | Enterprise reasoning & citations | command-r-plus-08-2024, command-r-08-2024, command-r7b-12-2024 |
| Vortex API | High-throughput GPU cluster | vortex-llama-3.3-70b, vortex-deepseek-r1-full, vortex-deepseek-v3 |
| OpenCode | Dedicated coding & architecture | opencode/deepseek-coder-v2.5, opencode/qwen2.5-coder-32b-instruct |
| DeepSeek | Frontier open-weights & reasoning | deepseek-chat (V3), deepseek-reasoner (R1), deepseek-v4-flash |
| NVIDIA NIM | 100+ Live NIM API cloud functions | meta/llama-3.1-8b-instruct, stepfun-ai/step-3.7-flash, nemotron-3 |
| OpenAI | Frontier reasoning & omni models | gpt-4o, gpt-4o-mini, o1, o3-mini, gpt-4.5-preview |
| Anthropic | Industry standard coding models | claude-3-7-sonnet, claude-3-5-sonnet, claude-3-5-haiku |
| Google Gemini | Massive context & agentic coding | gemini-2.5-flash, gemini-2.5-pro, gemini-2.0-flash |
| Ollama | Local offline GPU inference | llama3.3:70b, qwen2.5-coder:32b, deepseek-r1:latest |
| Custom | Custom endpoints | Any OpenAI-compatible server (vLLM, LocalAI, LM Studio) |
CLI Commands & Slash Shortcuts
Terminal CLI Options
antri # Launch interactive session
antri desktop # Launch desktop control plane
antri mobile # Launch standalone mobile PWA server
antri --mode plan # Launch in Plan Mode (collaborative architecture)
antri --mode vibe # Launch in Vibe Mode (direct coding flow)
antri -alwaysallow # Launch with tool permission prompts bypassed
antri update # Self-update to latest release without lockfile churn
antri -g, --goal "<task>" # Run autonomous multi-iteration refinement loop
antri -d, --debate "<topic>" # Run Dialectic multi-persona self-debate
antri --depth <quick|deep|rigorous> # Set debate depth
antri -p, --prompt "<text>" # Run one-shot query
antri -m, --model <name> # Specify model
antri --provider <name> # Specify providerInteractive REPL Slash Commands
| Command | Description |
|---|---|
| /plan | Switch to Plan Mode (collaborative architecture before coding) |
| /vibe | Switch to Vibe Mode (direct fast coding flow) |
| /desktop | Launch the Desktop Control Plane in standalone window |
| /imagine [code] | Create Visual Code Architecture Diagram & Graph artifact |
| /mindmap [topic] | Create Interactive Hierarchical Visual Mind Map artifact |
| /view [plan] | Generate Interactive HTML/JS Application & Plan artifact |
| /artifacts | List all generated interactive HTML, graph, and mind map artifacts |
| /mobile | Launch the Mobile App PWA server |
| /alwaysallow | Toggle permission prompts for sensitive tools |
| /goal [task] | Run autonomous goal execution & refinement loop with live stages |
| /silent-goal [task] | Run goal loop optimization silently in background with final plan |
| /loop [task] | Alias for /goal loop |
| /debate [query] | Launch Dialectic multi-persona self-debate with live argument streams |
| /silent-debate [q] | Run Dialectic debate silently in background with final consensus |
| /depth <level> | Set debate depth (quick, deep, rigorous) |
| /profile [name] | Open interactive profile switcher or switch thinking profile |
| /notes | View active profile notes & recorded style insights |
| /update | Self-update ANTRI Code CLI |
| /connect | Open interactive AI Provider selector |
| /models | Search and select from available models |
| /tools / Ctrl+O | Inspect recently executed workspace tools |
| /skills | List built-in and dynamically synthesized custom skills |
| /meta | View meta-optimization metrics and self-healing statistics |
| /memory | View persistent memory status across all tiers |
| /consolidate | Run reflection & knowledge compounding loop |
| /learn <text> | Manually record a rule or persistent insight |
| /history | View session conversation history |
| /export [file] | Export conversation transcript to Markdown |
| /clear | Start a clean new session |
| /help | Show command reference manual |
| /exit | Exit ANTRI Code |
Environment Configuration
You can configure API keys using /connect, /key <provider> <key>, or by creating a .env file in your workspace:
# Cerebras
CEREBRAS_API_KEY=csk-...
# Cohere
COHERE_API_KEY=...
# Vortex API
VORTEX_API_KEY=...
# OpenCode
OPENCODE_API_KEY=...
# DeepSeek
DEEPSEEK_API_KEY=sk-...
# NVIDIA NIM
NVIDIA_API_KEY=nvapi-...
# OpenAI
OPENAI_API_KEY=sk-...
# Anthropic Claude
ANTHROPIC_API_KEY=sk-ant-...
# Google Gemini
GEMINI_API_KEY=AIzaSy...
# Ollama (Local)
OLLAMA_BASE_URL=http://localhost:11434Local Development & Testing
# 1. Clone the repository
git clone https://github.com/ashu90-prog/antri_cli.git
cd antri_cli
# 2. Install dependencies
npm install
# 3. Build TypeScript & assets
npm run build
# 4. Run automated test suite (43 unit tests)
npm test
# 5. Run in dev mode
npm run devLicense
Distributed under the MIT License. See LICENSE for more information.
