alosec

Claude Editor Hook — Development skill for Claude Code

Development community

Command palette for Claude Code via Ctrl-G hook.

How to install Claude Editor Hook

This entry records only its repository, not the path inside it, so there is no exact command to give. Open alosec/claude-editor-hook and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Claude Editor Hook does

Command palette for Claude Code via Ctrl-G hook. Spawn parallel Claude instances, stream logs, run tools - anything executable with clean return paths.

Alternatives in Development

  • Connect — Fancy stream processing made operationally mundane 8608 114 1 8.6k ★
  • Beautiful Feishu Whiteboard — 35 curated colour palette styles for building beautiful, editable Feishu / Lark (飞书) whiteboards 687 ★
  • Pi Reserved Keybindings — Extensions cannot override these shortcuts — they are silently skipped by registerShortcut() 526 ★

README

claude-editor-hook

A command palette for Claude Code that intercepts `Ctrl-G` to launch editors, tools, and specialized agents.

**Note:** Also available as `g-menu` for convenience.

Current Status

✅ **Working and Simple** - FZF command palette with persistent sessions.

**✅ Working Now:**

  • FZF command palette with 8+ options
  • Edit with Emacs/Vi/Nano (returns to Claude Code when done)
  • Open Terminal (full shell with $PROMPT env var set to temp file path)
  • Recent Files - Query JSONL logs for last 25 files Claude touched (with intelligent caching)
  • Subagent Context Package - Spawn Claude instances with rich parent context (conversation + tools + files)
  • Interactive + non-interactive prompt enhancement
  • Universal command palette accessible from any terminal via menu or m commands

**📋 Future Exploration (Not Actively Planned):**

  • Menu extensions based on real usage needs (git ops, log streaming, test runners)
  • Enhanced history viewer - "Better Ctrl-O" parsing ~/.claude/projects
  • Context file system for multi-file opening (may revisit if use cases emerge)
  • Multi-pane tmux layouts with logs
  • MCP tool for Claude to write context files
  • Multi-agent orchestration (interesting theory, likely overkill)

What Is This?

When you press `Ctrl-G` in Claude Code to edit a prompt, it launches whatever is in your `$EDITOR` environment variable. This project intercepts that hook to provide a command palette that can launch:

  • ✅ Interactive menus with FZF for choosing editors and tools
  • ✅ Prompt enhancement agents that investigate your codebase and rewrite prompts
  • ✅ Any editor (emacs, vi, nano) or viewer (batcat)
  • ✅ Anything scriptable - the menu accepts any command or script
  • 📋 Multiple files at specific line numbers (requires context file system - planned)
  • 📋 Tmux layouts with editor, logs, and test panes (planned)
  • 📋 Log streams from servers or browsers (planned)

How It Works

┌───────────