Corox is no longer just a CLI tool. It is an Autonomous AI Agent designed to live inside your terminal and collaborate with you on your codebase.
Instead of just answering questions, Corox thinks, plans, and acts. It can explore your project, read your code, execute shell commands, and apply precise editsโall while keeping you in the loop.
Most AI tools are "Chat-and-Paste". You copy code, paste it into a browser, and paste the fix back. Corox eliminates this friction.
Corox operates on a Reasoning
- Plans: Defines a high-level goal and a strategic roadmap.
- Acts: Uses built-in tools to interact with your system.
- Observes: Analyzes the output of those tools to refine its next step.
Corox has "hands" to manipulate your environment. It doesn't just suggest code; it implements it:
shell: Execute any command in your system's default shell (bash, zsh, etc.).read: Deep-dive into any file in your project.write: Create new files or scaffold blueprints.edit: Perform surgical, precise text replacements without overwriting the whole file.list_files: Map out the project structure recursively.search_code: Find symbols or patterns across the entire codebase.
Corox doesn't just see the file you're in; it understands the entire project:
- Symbol Indexing: Automatically maps functions, classes, and interfaces across your project.
- Project Rules: Create a
.corox-context.mdfile in your root directory. Define your coding standards, architectural preferences, or "don'ts", and Corox will follow them strictly.
We believe in AI autonomy, but not at the cost of safety.
- Security Gate: Every dangerous action (
shell,write,edit) requires your approval. - Trust List: Once you trust a specific tool, you can mark it as "trusted" to allow seamless automation.
High-speed, prompt-driven interaction for quick tasks. Perfect for "one-off" fixes or system checks.
A full-screen TUI experience that reveals the AI's "brain".
- Reasoning Panel: Watch the AI's internal monologue and roadmap in real-time.
- Console Panel: See the raw output of tools and commands.
- System Monitor: Keep an eye on your CPU/RAM usage while the agent works.
npm install -g corox-cliInitialize your preferences and default AI provider:
corox configCreate a .env file in your home directory or project root:
OPENAI_API_KEY=sk-...
ANTHROPIC_API_KEY=sk-ant-...
GOOGLE_API_KEY=AIza...
GROQ_API_KEY=gsk_...
# For Local AI, install and run Ollama (ollama serve)The "Bug Hunter" Scenario:
"Corox, there's a bug in the authentication flow where the token doesn't expire. Can you find the cause and fix it?"
-
AI
$\rightarrow$ search_codefor "token expiry". -
AI
$\rightarrow$ readthe identified auth service file. -
AI
$\rightarrow$ editthe logic to correctly handle timestamps. -
AI
$\rightarrow$ shellto runnpm testand verify the fix.
The "New Feature" Scenario:
"Add a new 'User Profile' endpoint to the API following our project rules."
-
AI
$\rightarrow$ get_project_mapto see how other endpoints are structured. -
AI
$\rightarrow$ writethe new controller and route files. -
AI
$\rightarrow$ shellto restart the server.
Corox is built for scalability and extensibility:
- Provider Pattern: Easily switch between OpenAI, Claude, Gemini, Groq, or local Ollama models.
- Memory System: Session-based memory that persists in
~/.corox/memory.json. - Modular Command Pattern: Every CLI action is a decoupled module.
We welcome contributions! Please follow the Contributing Guide and use Conventional Commits.
Distributed under the ISC License. See LICENSE for more information.