oh-my-claude-code

command module
v0.0.0-...-7396b42 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2026 License: MIT Imports: 2 Imported by: 0

README

oh-my-claude-code (omcc)

Claude Code's brain, OpenCode's beauty.

A polished Bubble Tea TUI that wraps Claude Code's full agent engine. You get Claude Code's complete capabilities — tools, hooks, MCP servers, custom agents, plan mode — rendered in OpenCode's beautiful terminal interface.

Why?

Claude Code has the best AI coding agent capabilities but basic terminal output. OpenCode has a gorgeous TUI but its own AI backend. omcc combines them: Claude Code does the thinking, OpenCode does the rendering.

Prerequisites

Install

go install github.com/Krontx/oh-my-claude-code@latest

Or build from source:

git clone https://github.com/Krontx/oh-my-claude-code.git
cd oh-my-claude-code
go build -o omcc .

Usage

# Interactive mode
omcc

# Non-interactive prompt
omcc -p "Explain the use of context in Go"

# With debug logging
omcc -d

How It Works

omcc spawns claude as a subprocess with --output-format stream-json, mapping Claude Code's streaming events to OpenCode's TUI components:

  • Text streaming renders incrementally in the chat view
  • Tool uses (Bash, Read, Edit, Write, etc.) display as collapsible panels
  • Thinking/reasoning shows in a dedicated section
  • Session resume works across restarts via --resume

Claude Code manages its own agentic loop — tool execution, permission handling, MCP servers, hooks, and .claude/ configuration all work exactly as they do in the native CLI.

Configuration

Config file: ~/.omcc.json or .omcc.json in your project directory.

{
  "providers": {
    "claude-code": {}
  },
  "agents": {
    "coder": { "model": "claude-code-sonnet" }
  }
}

Available models: claude-code-sonnet, claude-code-opus, claude-code-haiku

Set CLAUDE_CODE_PATH environment variable to use a custom Claude Code binary location.

Attribution

Based on OpenCode (MIT License). See NOTICE.md for details.

License

MIT — see LICENSE

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
schema command
internal
app
config
Package config manages application configuration from various sources.
Package config manages application configuration from various sources.
db
lsp
Generated code.
Generated code.
tui

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL