lazyopencode

内容来源:README.md(说明文档) · 原始地址 · 查看安装指南

原始内容

LazyOpenCode

A keyboard-driven TUI for managing OpenCode customizations.

LazyOpenCode Screenshot

Features

  • Visual discovery of all OpenCode customizations
  • Keyboard-driven navigation (lazygit-inspired)
  • View commands, agents, skills, rules, MCPs, and plugins
  • Filter by configuration level (global/project)
  • Search within customizations
  • Claude Code compatibility mode (--claude-code)

Installation

uvx lazyopencode

Or install with pip:

pip install lazyopencode

Keyboard Shortcuts

Key Action
j / Move down
k / Move up
Tab Next panel
[ / ] Prev/Next view
1-7 Jump to panel
a All filter
g Global filter
p Project filter
/ Search
e Edit selected
c Copy to level
C Copy path
r Refresh
ctrl+u User Config
? Help
q Quit

Configuration Paths

LazyOpenCode discovers customizations from:

Type Global Project
Commands ~/.config/opencode/command/ .opencode/command/
Agents ~/.config/opencode/agent/ .opencode/agent/
Skills ~/.config/opencode/skill/ .opencode/skill/
Rules ~/.config/opencode/AGENTS.md AGENTS.md
MCPs ~/.config/opencode/opencode.json opencode.json
Tools ~/.config/opencode/tool/ .opencode/tool/
Plugins ~/.config/opencode/plugin/ .opencode/plugin/

Claude Code Mode

Enable Claude Code compatibility to also discover customizations from ~/.claude/:

lazyopencode --claude-code

This discovers commands, agents, and skills from:

Scope Path
User ~/.claude/commands/, ~/.claude/agents/
Project .claude/commands/, .claude/agents/
Plugins Installed plugins from registry

Claude Code items are marked with 👾 and can be copied to OpenCode paths using c.

Inspired By

Development

# Clone and install
git clone https://github.com/yourusername/lazyopencode
cd lazyopencode
uv sync

# Run
uv run lazyopencode

# Run tests
uv run pytest

# Lint and format
uv run ruff check .
uv run ruff format .

License

MIT