coro-code

作者 Blushyes已验证

Open-source CLI coding agent, a free alternative to Claude Code. Generate, debug, and manage code seamlessly.

368
Stars
24
Forks
Rust
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/Blushyes/coro-code

快速入门

使用 coro-code 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

🚀 Coro Code

Language: English | 中文

A high-performance AI coding agent written in Rust with a rich terminal UI

demo

Rust License


Coro Code is a high-performance AI coding agent written in Rust with a rich terminal UI. Formerly known as Trae Agent Rust, it remains compatible with the original tool spec while focusing on speed, reliability, and great UX.

✨ Highlights

  • 🚀 High Performance: Written in Rust for speed and memory safety
  • 🎨 Rich Terminal UI: Beautiful, interactive interface with real-time updates
  • 🔧 Easy Configuration: Support for multiple LLM providers with flexible config options
  • 🛠️ Powerful Tools: Built-in bash execution, file operations, and extensible tool system
  • 🔄 Environment Variables: Comprehensive support for API keys, base URLs, and model configuration
  • 📦 Cross-Platform: Works seamlessly on macOS, Linux, and Windows

🚀 Quick Start

📋 Prerequisites

  • 🦀 Rust stable (1.70+)
  • 🔑 An API key (OpenAI recommended; Anthropic/Google coming soon)

📦 Install

cargo install --git https://github.com/Blushyes/coro-code --bin coro

▶️ Run

# Interactive mode (recommended)
coro

# Single task
coro "Fix the bug in main.rs"

Configuration

Option A: Environment variables

# OpenAI
export OPENAI_API_KEY="your_openai_api_key"
export OPENAI_MODEL="gpt-4o"

# Optional: Custom base URL and model for OpenAI-compatible APIs
export OPENAI_BASE_URL="https://api.deepseek.com"
export OPENAI_MODEL="deepseek-chat"

# Or use generic overrides for any protocol
export CORO_BASE_URL="https://api.custom.com"
export CORO_MODEL="custom-model"

Option B: Configuration file

Create a coro.json file:

{
  "protocol": "openai",
  "base_url": "https://api.deepseek.com",
  "api_key": "your-api-key",
  "model": "deepseek-chat",
  "params": {
    "max_tokens": 131072,
    "temperature": 0.7,
    "top_p": 0.9
  }
}

Usage

# Interactive mode
coro

# Direct command
coro "Help me refactor this function"

# With specific config
coro --config custom.json "Analyze this codebase"

🤖 Supported Models

ProviderModelsStatus
🟢 OpenAIgpt-4o, gpt-4o-mini✅ Ready
🟡 Anthropicclaude-3.5 family🚧 Coming
🔵 Googlegemini-1.5 family🚧 Coming

🔧 Environment Variables Reference

VariableDescriptionExample
OPENAI_API_KEYOpenAI API keysk-...
OPENAI_BASE_URLCustom base URL for OpenAI-compatible APIshttps://api.deepseek.com
OPENAI_MODELCustom model for OpenAI-compatible APIsgpt-4o, deepseek-chat
ANTHROPIC_API_KEYAnthropic API keysk-ant-...
ANTHROPIC_BASE_URLCustom base URL for Anthropic APIhttps://api.anthropic.com
ANTHROPIC_MODELCustom model for Anthropic APIclaude-3-5-sonnet-20241022
GOOGLE_API_KEYGoogle AI API keyAIza...
GOOGLE_BASE_URLCustom base URL for Google AI APIhttps://generativelanguage.googleapis.com
GOOGLE_MODELCustom model for Google AI APIgemini-pro, gemini-1.5-pro
AZURE_OPENAI_API_KEYAzure OpenAI API key...
AZURE_OPENAI_BASE_URLAzure OpenAI endpointhttps://your-resource.openai.azure.com
AZURE_OPENAI_MODELCustom model for Azure OpenAIgpt-4, gpt-35-turbo
CORO_BASE_URLGeneric base URL override (any protocol)https://api.custom.com
CORO_PROTOCOLForce specific protocolopenai, anthropic
CORO_MODELGeneric model override (any protocol)gpt-4o, claude-3-5-sonnet

🗺️ Roadmap

Status Legend: ✅ Completed | 🚧 In Progress | 📋 Planned

🚀 Phase 1: Core Experience
PriorityStatusFeatureDescription
🔥 High🚧First-time Setup ManagementGuided wizard (detect/create openai.json or env vars), API key validation, default models & examples
🔥 HighRefactor Config Loading LogicUnified priority (CLI args > env vars > JSON file), friendly error messages & diagnostics, optional hot reload
🔥 High📋Tool Call Permission SystemTool/command/directory whitelist, interactive confirmation, privilege escalation & sensitive operation warnings
🎨 Phase 2: User Experience Enhancement
PriorityStatusFeatureDescription
🟡 Medium📋CORO.md Custom Prompts SupportProject/subdirectory level overrides, scenario templates (bugfix/refactor/docs/test)
🟡 Medium🚧UI Layout Optimization & UnificationHeader/Status/Input style consistency, keyboard shortcuts & interaction consistency optimization
🟡 Medium📋Trajectory Replay & ExportTrajectory visualization, one-click replay, export to JSON/Markdown
🎨 Low📋Logo Design (gemini-cli style)Visual identity design
🤖 Phase 3: Intelligence & Performance
PriorityStatusFeatureDescription
🟡 Medium📋Multi-model & Auto RoutingAuto model selection by task type, failure auto-downgrade & retry strategies
🟡 Medium📋Context Optimization & CachingFile summary caching, duplicate reference deduplication, token budget control
🟡 MediumToken CompressionIntelligent context compression, selective token reduction, adaptive context windows
🔵 Low📋MCP Extension EcosystemCommon provider presets & templates, one-click start/stop external tools
🌐 Phase 4: Platform & Ecosystem
PriorityStatusFeatureDescription
🔵 Low📋Core WASM SupportBrowser/plugin environment ready, isomorphic tool interface & minimal runtime
🔵 Low📋Cross-platform EnhancementmacOS/Linux/Windows/WSL detail adaptation & stability improvements
🔵 Low📋Plugin Tool SystemThird-party tool registration spec, version & dependency declaration
🛡️ Phase 5: Security & Quality
PriorityStatusFeatureDescription
🟡 Medium📋Security & Rate LimitingSandbox mode (restricted bash/network switches), concurrency & rate limiting
🔵 Low📋Testing & BenchmarksEnd-to-end test cases, performance benchmarks & comparison reports

🛠️ Development

Context Export/Restore (Persistence)

The core supports exporting the conversation and execution context to JSON and restoring it later:

use coro_core::agent::{AgentBuilder, PersistedAgentContext};

// Export
let json = agent.export_context_json()?;                    // as JSON string
agent.export_context_to_file(".coro/context.json")?;       // or to file

// Restore
agent.restore_context_from_json(&json)?;                    // from JSON
agent.restore_context_from_file(".coro/context.json")?;    // or from file

// Work with the structured snapshot directly:
let snap = agent.export_context_snapshot()?;
let json2 = snap.to_json()?;
let snap2 = PersistedAgentContext::from_json(&json2)?;
agent.restore_context_from_snapshot(snap2)?;

Notes:

  • Snapshot contains conversation_history, AgentExecutionContext, and optional AgentConfig.
  • On restore, saved config (if present) is applied; missing tool-result pairs are handled automatically on next execution.
  • No need to manually re-inject a system prompt; the agent handles that as needed.

Pre-commit Hooks

We strongly recommend setting up pre-commit hooks to maintain code quality. The repository includes scripts to automatically install hooks that run formatting, linting, and tests before each commit.

Choose the appropriate script for your platform:

# Linux/macOS
./scripts/setup-pre-commit-hooks.sh

# Windows PowerShell
.\scripts\setup-pre-commit-hooks.ps1

# Windows Command Prompt
scripts\setup-pre-commit-hooks.bat

The pre-commit hook will automatically run:

  • Code formatting (cargo fmt --check)
  • Linting (cargo clippy)
  • Tests (cargo test)

For more details, see scripts/README.md.

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Set up pre-commit hooks (recommended)
  4. Make your changes
  5. Ensure all tests pass
  6. Submit a pull request

📄 License

Dual licensed under your choice of:

🙏 Acknowledgments

  • Trae Agent for the original Python implementation and spec
  • iocraft for the beautiful terminal UI framework
  • OpenAI, Anthropic, and Google for model APIs
  • Rust community for the amazing ecosystem

Made with ❤️ in Rust

常见问题

What is coro-code?

coro-code is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by Blushyes. Open-source CLI coding agent, a free alternative to Claude Code. Generate, debug, and manage code seamlessly. It has 368 GitHub stars.

Is coro-code safe to use?

Yes. coro-code passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install coro-code?

Clone the repository with "git clone https://github.com/Blushyes/coro-code" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is coro-code written in?

coro-code is primarily written in Rust. It is open-source under Blushyes on GitHub, so you can review or fork the full source.

Are there alternatives to coro-code?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh coro-code against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI 智能体
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情