Copy Path For AI — AI skill for Claude Code
JetBrains plugin: inject @path#line into the IDE Terminal for Claude Code, Codex, Grok, and other AI agents.
How to install Copy Path For AI
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open bygo/copy-path-for-ai and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Copy Path For AI does
JetBrains plugin: inject @path#line into the IDE Terminal for Claude Code, Codex, Grok, and other AI agents.
Alternatives in AI
- Ccstatusline — by sirmalloc - A highly customizable status line formatter for Claude Code CLI that displays model info, git b 5.5k ★
- Vibe Coding Toolkit — A curated, battle-tested AI-coding toolkit: Claude Code plugins, subagent orchestration, quality gates, and re 297 ★
- Learn Skills.Dev — Curated high-quality AI Agent Skills 203 ★
README
Copy Path for AI
JetBrains IDE plugin that copies a file reference from the current editor caret or selection and injects it into the IDE Terminal — for **Claude Code**, **Codex**, **Grok**, OpenCode, Gemini CLI, and similar AI coding agents.
**Copy Path for AI** injects a paste-ready reference like **`@main.rs#L42`** into the selected IDE Terminal tab (and also copies it to the clipboard).
Works with **Claude Code**, **OpenAI Codex**, **Grok Build**, OpenCode, Gemini CLI, and other terminal AI agents that accept `@path` file references.
[Github](https://github.com/bygo/copy-path-for-ai)
Features
- One shortcut: ⌘3 (Windows/Linux: Ctrl+3)
- Editor context menu: Copy Path for AI
- Caret →
@path#Lline; selection →@path#Lstart-Lend(trailing space included) - Path is relative to the project root (absolute if outside the project)
- Auto-inject into the currently selected IDE Terminal tab
- Clipboard fallback if no Terminal is selected or inject fails
- Balloon confirms inject / copy
Requirements for auto-inject
Uses the IDE **Terminal** tool window. Keep the tab with your AI agent selected. External apps (iTerm, Terminal.app) are not targeted — use clipboard paste there.
Install (local)
- Clone and build the distribution:
git clone https://github.com/bygo/copy-path-for-ai.git
cd copy-path-for-ai
export JAVA_HOME=/opt/homebrew/opt/openjdk@21
./gradlew buildPlugin
- In the IDE: Settings → Plugins → ⚙️ → Install Plugin from Disk…
- Pick
build/distributions/copy-path-for-ai-1.0.0.zip
Usage
- Start Claude / Codex / Grok (or another agent) in an IDE Terminal tab and keep that tab selected
- In the editor, put the caret on a line, or select a range
- Press ⌘3 / Ctrl+3 (or use the editor context menu)
- The
@path is injected at the prompt (and also copied to the clipboard)
If inject fails (no Terminal selected), the referenc
Related Skills
Copy Selection Context
JetBrains IDE plugin to copy file paths, line numbers, and selected code in AI-ready formats for Claude, ChatG
NotePipe
One-click copy from Obsidian with file path and line number context — paste directly into AI agent terminals (
Ctxbox
Local-first AI context manager: scan, search, edit, copy and inject conversations across Claude Code, Codex, C
Moe S Tavern
AI agent task board for Claude Code, Codex, Gemini CLI and Grok Build: plan, approve, build and review inside
Teachable Course Builder Prompt
COPY AND PASTE INTO CLAUDE (claude.ai, Claude Code, or Claude in your IDE). Replace the items in [] with your
Vigen
Claude Code skill that turns a one-line idea into a complete AI video production plan: storyboard, shot design
Related Agents
Omg Tracer
Read-only runtime/path tracer for oh-my-grok. Follow control flow and cite file:line.
IDE Debugger
Autonomous debugging agent that uses IDE bridge debug and terminal tools. Sets breakpoints, evaluates expressi
Session Error Analyzer
Analyzes specific AI IDE sessions (Claude Code, OpenAI Codex, OpenCode) for LLM behavior errors and returns a