Skip to content
ch1lamPublic

About

A small, batteries-included open-source AI coding agent for your terminal—one Go binary with multi-provider LLM support, guarded execution, and recoverable branching sessions.一个小而完整的终端 AI coding agent:以单个 Go 二进制交付,支持多 Provider,内置安全门控与可恢复、可分支的 Session。

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

4 stars

Watchers

0 watching

Forks

AICE

An open-source coding agent harness for long-term software maintenance

Go version License Build status Latest release

AICE coding agent

English · 简体中文
Quickstart · Documentation · Roadmap · Contributing

Install

AICE ships as a single Go binary for macOS, Linux and Windows. No Go toolchain is needed to install a release.

macOS or Linux:

curl -fsSL https://raw.githubusercontent.com/ch1lam/aice-cli/main/scripts/install.sh | sh

Windows PowerShell:

iwr -useb https://raw.githubusercontent.com/ch1lam/aice-cli/main/scripts/install.ps1 | iex

AICE provisions helper tools as needed; browser and desktop automation have additional platform requirements. See Installation for details, manual downloads and source builds. Update with aice update.

Quickstart

Open a terminal in your project:

cd /path/to/project
aice
  1. Run /login to configure a provider using an API key or a supported subscription account.
  2. Run /model to choose a model.
  3. Enter a task, for example:
Explain how this project is organized and where I should start reading.
  • Add @src/main.go to reference a file; use Ctrl+V or Alt+V to paste an image with a vision model.
  • While AICE works, press Enter to send a correction, Tab to queue a follow-up, or Esc to cancel.
  • Use /resume to resume a session, /settings to change preferences, and /help or ? for commands and shortcuts.

Interactive preference changes save to your user settings. On restart, flags, environment variables or trusted project settings can override them; see configuration precedence and lifetimes.

After configuring a provider, use --print for non-interactive tasks or scripts:

aice --print "Summarize the changes in this repository."

Add --output-format json for NDJSON events or --session <path> to save or resume a session. Print mode has no interactive approval prompts: in the default auto mode the classifier decides eligible calls, and any call that would still ask a person is denied. See CLI options.

Who is it for?

Developers and maintainers working on long-lived codebases. AICE aims to improve code quality, with a focus on readability, testability and the cost of future changes.

Work Example request
Everyday development “Implement this feature using the project's conventions, with tests and docs.”
Incremental refactoring “Simplify this module while preserving its behavior, and verify it with tests.”
Large-scale refactoring “Map the dependencies, plan the migration, and work through it in verified steps.”
Documentation maintenance “Check the docs against the code, remove outdated content, and reorganize the guides.”

Current capabilities

AICE manages model calls, tools, context and sessions through a TUI and non-interactive CLI.

  • Choose your model. Use OpenAI, Claude, DeepSeek, Kimi and other providers, or a custom OpenAI-compatible endpoint. See supported providers.
  • Work on your codebase. Read, search and edit files; run shell commands, builds and tests, and keep servers or long builds running as background tasks. Delegate investigations to subagents that return only their findings, running in parallel in the background while the TUI shows what each one is doing and lets you open or stop any of them, and message them to follow up or correct course without starting over; background writers get their own git worktree and return their changes as a branch.
  • Guide the agent. Attach files and screenshots, send corrections while the agent works, queue follow-ups, or stop a run.
  • Resume your work. Search saved sessions, pick up a previous conversation, or branch from an earlier message. Automatic context compaction supports longer tasks.
  • Extend your workflow. Connect tools through MCP and reuse task instructions with Agent Skills.

Tools and integrations

Capability Setup and documentation
Web search and fetch /web — provider-native search for supporting models, Exa or DeepSeek search, and public-page fetching; guide
Browser automation /browser — set up agent-browser as the ordinary MCP service user:browser on macOS/Linux; guide
Computer Use /desktop — set up Cua Driver as the ordinary MCP service user:cua; Computer Use
MCP servers /mcp or aice mcp — connect external tools and resources; guide
Editors and evaluation harnesses aice acp — serve AICE over the Agent Client Protocol; guide
Agent Skills /skills — list the startup SKILL.md catalog; restart after changing Skills; guide

AICE runs tools with your local user permissions; the workspace is not an OS sandbox. Inside the workspace, ordinary reads, writes and commands run without prompts; access outside it and outbound, destructive or privileged commands ask, and credential files are denied. permissions rules in settings can allow, ask for or deny specific commands and paths (not MCP or web tools, which have their own permissions). By default an action classifier decides most of those prompts (permission_mode: auto); default asks you instead; see auto mode. Model requests send task context to your configured provider. See tool permissions and Project Trust before working with sensitive projects.

Roadmap

The next priorities are authentication and connection management, reliable everyday use, code quality evaluation and maintenance workflows. Later directions include a shared runtime across interfaces, MCP specification alignment, a cloud agent bot and harness self-improvement. See the Roadmap for current foundations, priorities and future work.

Documentation and community

  • Documentation: setup, configuration, integrations and architecture.
  • Issues: ask questions, report bugs or propose improvements. English and Chinese are welcome.
  • Contributing: development setup, verification and pull requests.
  • Security and Code of Conduct: reporting channels and community expectations.
  • Releases: downloads and release notes.

AICE is maintained by @ch1lam and is under active development. Session and configuration formats may change before a stable release.

License

Apache-2.0.

About

A small, batteries-included open-source AI coding agent for your terminal—one Go binary with multi-provider LLM support, guarded execution, and recoverable branching sessions.一个小而完整的终端 AI coding agent:以单个 Go 二进制交付,支持多 Provider,内置安全门控与可恢复、可分支的 Session。

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages