Claude Editor Hook — Development skill for Claude Code
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
$PROMPTenv 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
menuormcommands
**📋 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
┌───────────
Related Skills
Claudebot Claude Runner
Claude CLI 整合細節:spawn 參數、stream-json 解析、session 管理、prompt 建構。
Claude Wire
TypeScript SDK for Claude Code - spawn, stream, and control the CLI programmatically
Claude Playbooks
Isolated Claude Code instances to keep things separated and clean.
Claude Pc Cleanup
Claude Code skill: scan a macOS machine for reclaimable disk space and clean it up safely, tier by tier, with
Claude Code Thinking Patch
Make Claude Code's thinking blocks visible by default without pressing ctrl+o.
Winclipshot
Windows clipboard-to-path helper for terminal CLIs like Claude Code. Screenshot with Win+Shift+S, paste the sa
Related Agents
Staging Log Verifier
Use this agent to fetch staging service logs for a deploy window, scan them for errors, warnings, and stack tr
Content Editor
Content editor for marketing copy, SEO/GEO/AEO optimization, and conversion-focused content. Deploy N instance
SDK Adapter Reviewer
Reviews SDK integration layer code - validates stream event conversion, hook handling, client lifecycle, and e