clifcode 1.6.1

Open-source AI coding agent for your terminal โ€” tool-calling loop, streaming, sessions, any provider
clifcode-1.6.1 is not a library.

Cursor is 400MB. VS Code is 350MB. Zed doesn't do AI.

Clif is ~20MB. A native Rust binary with a 7KB SolidJS frontend. VS Code-quality editing via Monaco. Real terminal via PTY. Git built into the backend. AI when you want it, silence when you don't.

No Electron. No telemetry. No subscription. Open source.


๐Ÿ“ฆ Get It

ClifPad โ€” Desktop IDE

macOS "App can't be opened"? โ€” Run xattr -cr /Applications/ClifPad.app then open normally. Why?

ClifCode โ€” Terminal Agent

cargo install --git https://github.com/DLhugly/Clif-Code.git --path clif-code-tui

Run clifcode in any project directory.

npm i -g clifcode โ€” coming soon ย |ย  cargo install clifcode โ€” coming soon

# Or clone and build locally
git clone https://github.com/DLhugly/Clif-Code.git
cd Clif-Code/clif-code-tui && cargo install --path .

All releases & checksums


๐Ÿ–ฅ๏ธ ClifPad

๐Ÿ“ Monaco Editor โ€” 70+ languages, IntelliSense, multi-cursor, minimap, code folding. Same engine as VS Code.

๐Ÿ–ฅ๏ธ Real Terminal โ€” Native PTY via Rust. Your actual shell with 256-color, resize, 10K scrollback.

๐Ÿ” Dev Preview โ€” One-click npm run dev, auto-detects localhost, live iframe preview.

๐ŸŒฟ Git โ€” Branch, status, stage, commit, per-file +/- diff stats, visual commit graph. All Rust.

๐Ÿค– AI โ€” OpenRouter (100+ models), Ollama (fully local), Claude Code CLI. Ghost text completions. All opt-in.

๐ŸŽจ 5 Themes โ€” Midnight, Graphite, Dawn, Arctic, Dusk. Editor, terminal, and UI stay in sync.

โŒจ๏ธ Keys โ€” Ctrl+`` terminal, Ctrl+B sidebar, Ctrl+S save, Ctrl+Shift+P palette.

๐Ÿ“Š The Size Flex

Binary Runtime RAM idle
ClifPad ~20MB 7KB ~80MB
Cursor ~400MB ~50MB ~500MB+
VS Code ~350MB ~40MB ~400MB+
Zed ~100MB native ~200MB

Tauri 2 compiles to a single native binary. SolidJS has no virtual DOM overhead. Rust handles file I/O, git, PTY, AI streaming โ€” zero garbage collection.


โšก ClifCode

Open-source AI coding agent for your terminal. Like Claude Code โ€” but you own it.

   _____ _ _  __ _____          _
  / ____| (_)/ _/ ____|        | |
 | |    | |_| || |     ___   __| | ___
 | |    | | |  _| |    / _ \ / _` |/ _ \
 | |____| | | | | |___| (_) | (_| |  __/
  \_____|_|_|_|  \_____\___/ \__,_|\___|

  AI coding assistant โ€” works anywhere, ships fast

  โ—† Model  anthropic/claude-sonnet-4    โ—† Mode  auto-edit
  โ—† Path   ~/projects/my-app

  Type a task to get started, or /help for commands
  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€

  โฏ refactor the auth module to use JWT tokens

  [1/7] โ€ขโ€ขโ€ข thinking
    โ–ถ read  src/auth/mod.rs
    โ–ถ read  src/auth/session.rs
    โ—‡ find  config.toml
    โœŽ edit  src/auth/mod.rs  +42 -18
    โœŽ edit  src/auth/session.rs  +15 -8
    โ–ธ run   cargo test
    โœ“ All 23 tests passed

  โœฆ ClifCode  Refactored auth module to use JWT tokens.
              Replaced session-based auth with stateless JWT
              verification. Added token expiry and refresh logic.

  โˆ™ 2.1k tokens  โˆ™ ~$0.0312

What it does: Tool-calling AI agent that reads your codebase, writes code, runs commands, searches files, and auto-commits โ€” all from a TUI.

Agentic loop โ€” up to 7 tool calls per turn Any provider โ€” OpenRouter, OpenAI, Anthropic, Ollama Parallel tools โ€” concurrent read-only calls
3 autonomy modes โ€” suggest, auto-edit, full-auto Sessions โ€” auto-save, resume, cost tracking 9 built-in tools โ€” read, write, edit, find, search, run, list, cd, submit
clifcode                                        # interactive mode
clifcode -p "explain this codebase"             # non-interactive
clifcode --backend ollama                       # local models
clifcode --autonomy suggest                     # confirm every write
clifcode --resume                               # resume last session
  โ—† Session     /new  /sessions  /resume  /cost  /clear  /quit
  โ—† Workspace   /cd   /add       /drop    /context
  โ—† Settings    /mode /backend   /config
  โ—† Git         /status  /undo
Provider Config
OpenRouter (default) CLIFCODE_API_KEY โ€” access to 100+ models
OpenAI --api-url https://api.openai.com/v1
Anthropic Via OpenRouter or compatible proxy
Ollama --backend ollama โ€” fully local, no API key
Any OpenAI-compatible --api-url <your-endpoint>

๐Ÿ› ๏ธ Build & Contribute

# ClifPad โ€” desktop IDE
cd clif-pad-ide
npm install && npm run tauri dev        # dev mode + hot reload
npm run tauri build                     # production binary

# ClifCode โ€” terminal agent
cd clif-code-tui
cargo run --release                     # run directly
cargo install --path .                  # install to PATH

Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚             Tauri 2 (Rust)              โ”‚
โ”‚  File I/O ยท Git ยท PTY ยท AI ยท Search    โ”‚
โ”‚                  โ”‚                      โ”‚
โ”‚            IPC (invoke/events)          โ”‚
โ”‚                  โ”‚                      โ”‚
โ”‚           SolidJS + TypeScript          โ”‚
โ”‚       Monaco Editor ยท xterm.js          โ”‚
โ”‚           Tailwind CSS 4                โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
Layer Tech Size
Backend Tauri 2 + Rust ~20MB compiled
UI SolidJS 7KB runtime
Editor Monaco tree-shaken
Terminal xterm.js + portable-pty real PTY
Styles Tailwind CSS 4 zero runtime
Build Vite 6 <5s HMR
CI/CD Semantic Release auto-versioned

Project Structure

Clif-Code/
โ”œโ”€โ”€ clif-pad-ide/    ๐Ÿ–ฅ๏ธ  Desktop IDE โ€” Tauri 2 + SolidJS + Monaco
โ”œโ”€โ”€ clif-code-tui/   โšก  Terminal AI agent โ€” pure Rust, any API
โ””โ”€โ”€ .github/         ๐Ÿ”„  CI/CD (auto-release, npm publish)
clif-pad-ide/
โ”œโ”€โ”€ src/                     # SolidJS frontend
โ”‚   โ”œโ”€โ”€ components/          # editor, terminal, layout, explorer
โ”‚   โ”œโ”€โ”€ stores/              # reactive state (signals + stores)
โ”‚   โ”œโ”€โ”€ lib/                 # IPC wrappers, keybindings, themes
โ”‚   โ””โ”€โ”€ types/               # TypeScript interfaces
โ”œโ”€โ”€ src-tauri/src/           # Rust backend
โ”‚   โ”œโ”€โ”€ commands/            # fs, git, pty, ai, search, settings
โ”‚   โ””โ”€โ”€ services/            # file watcher, ai providers
โ””โ”€โ”€ www/                     # Landing page (clifcode.io)

clif-code-tui/
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ main.rs              # CLI, TUI loop, agent orchestration
โ”‚   โ”œโ”€โ”€ backend.rs           # API backend (OpenRouter, OpenAI, Ollama)
โ”‚   โ”œโ”€โ”€ tools.rs             # Tool definitions and execution
โ”‚   โ”œโ”€โ”€ ui.rs                # Terminal UI rendering
โ”‚   โ”œโ”€โ”€ session.rs           # Session persistence
โ”‚   โ”œโ”€โ”€ config.rs            # Config (API keys, provider setup)
โ”‚   โ”œโ”€โ”€ git.rs               # Git integration
โ”‚   โ””โ”€โ”€ repomap.rs           # Workspace structure analysis
โ”œโ”€โ”€ npm/                     # npm distribution packages
โ”‚   โ”œโ”€โ”€ clifcode/            # Main wrapper (npm i -g clifcode)
โ”‚   โ””โ”€โ”€ @clifcode/cli-*/     # 6 platform-specific binaries
โ””โ”€โ”€ scripts/
    โ””โ”€โ”€ bump-version.js      # Syncs versions across Cargo.toml + npm

Conventional commits โ€” feat: bumps minor, fix: bumps patch, feat!: bumps major. Semantic release handles the rest.


โ“ FAQ

Why does macOS say "App can't be opened"? macOS Gatekeeper blocks apps that aren't signed with a $99/year Apple Developer certificate. ClifPad is open source and safe โ€” run xattr -cr /Applications/ClifPad.app in Terminal to remove the quarantine flag, then open normally.

Is Clif safe? 100% open source. Read every line: github.com/DLhugly/Clif-Code. No telemetry, no network calls unless you enable AI. The xattr command just removes Apple's download flag โ€” it doesn't disable any security.

Why not just pay for code signing? We will. For now, the $99/year Apple Developer fee goes toward more important things. Proper signing + notarization is on the roadmap.

Does it work offline? ClifPad: Yes โ€” AI features are opt-in. Without API keys, it's a fully offline editor with terminal and git. ClifCode: Needs an API provider (but Ollama runs fully local with no internet).

What models does ClifCode support? Any OpenAI-compatible API. Default is anthropic/claude-sonnet-4 via OpenRouter. Also works with GPT-4o, Gemini, Llama, Qwen, Mistral, DeepSeek โ€” anything on OpenRouter or Ollama.


๐Ÿ“œ License

MIT โ€” use it however you want.