Original Reddit post

My colleagues kept asking me for my setup, so I decided to turn it into a universal plugin: Agent Code Navigator

  • a universal code-navigation plugin for Claude Code, Codex, Cursor, Gemini, and OpenCode. In my benchmark, semantic code discovery became 5.1x faster and used about 5x fewer tokens . Repo: https://github.com/777genius/universal-plugins-for-ai-agents/tree/main/plugins/agent-code-navigator What It Does Coding agents waste tokens when they search blindly. This plugin teaches agents to route code-navigation tasks to the right tool: exact strings, config keys, env vars, errors -> rg semantic discovery and similar code -> Semble definitions, references, refactors -> Serena call graphs, complexity, architecture maps -> CodeGraphContext / CGC durable project facts and decisions -> existing memory / Graphiti, when available Benchmark Real repo-navigation benchmark: rg : 1.395s total Semble MCP: 0.273s total Result: 5.1x faster semantic code discovery Tokenizer-measured context: about 5x fewer tokens CGC is not a grep replacement. It is useful for graph and architecture tasks. One complexity benchmark: CGC answer: ~1.3k tokens raw rg baseline: ~6.7k tokens Serena is also not a faster grep. It gives agents a compact map of code structure: functions, references, and symbols. One file-map benchmark: Serena: 35 tokens raw rg : 167 tokens Result: ~4.8x fewer tokens That can make the agent workflow faster because the agent reads less noise and needs fewer follow-up searches. Memory is optional here and is not installed by this plugin. When a memory system is available, it is for durable facts agents can read, update, and delete. In my local memory check, write/read/edit/delete was about 0.10s median and correctness passed 15/15 . Install One command installs the plugin and then offers optional setup for Semble, CGC, and Serena. It needs Bash, curl , and git , but no preinstalled plugin-kit-ai, npm, or Node. curl -fsSL https://raw.githubusercontent.com/777genius/universal-plugins-for-ai-agents/main/plugins/agent-code-navigator/scripts/install.sh | bash The optional setup is transparent. It prints what is installed, missing, skipped, or manual. With a global plugin-kit-ai install: brew install 777genius/homebrew-plugin-kit-ai/plugin-kit-ai # or npm install -g plugin-kit-ai@latest plugin-kit-ai version plugin-kit-ai add github:777genius/universal-plugins-for-ai-agents//plugins/agent-code-navigator If you already have plugin-kit-ai , use 1.2.4 or newer for Cursor support. The agent CLIs you want to configure still need to be installed and available in PATH . The installer is Bash-based: macOS/Linux are tested; Windows should use WSL or Git Bash. Notes The plugin works immediately with routing rules and rg -first fallback behavior. Semble, CGC, and Serena are opt-in. I kept heavy tools explicit because generic auto-MCP setup can make some agent CLIs slow or flaky. I tested clean GitHub install, curl | bash , Cursor local plugin materialization, Claude visibility, Gemini visibility, OpenCode visibility, Codex metadata, and marketplace CI. submitted by /u/IlyaZelen

Originally posted by u/IlyaZelen on r/ClaudeCode