Loading...
Loading...
Compare original and translation side by side
<system-reminder>The user selected the lines 2 to 4 from /path/to/file.rs:
_flush_logs(args: &[String]) {
flush::handle_flush_logs(args);
}/ask--linesSelect some code or mention a specific file/symbol, thenyour question./ask
max_turns: 4<system-reminder>The user selected the lines 2 to 4 from /path/to/file.rs:
_flush_logs(args: &[String]) {
flush::handle_flush_logs(args);
}/ask--lines请选中部分代码,或提及特定文件/符号,然后使用提问。/ask
max_turns: 4Task tool settings:
subagent_type: "general-purpose"
max_turns: 4BashReadTask tool settings:
subagent_type: "general-purpose"
max_turns: 4BashReadblame --show-promptsearchblame --show-promptsearchgit-ai blame --show-promptsearchundefinedgit-ai blame --show-promptsearchundefined
Use `git-ai search` when you need to find prompts by **commit**, **keyword**, or when you don't have a specific file/line range in mind.
当你需要通过**提交记录**、**关键词**查找提示词,或者没有特定的文件/行范围时,请使用`git-ai search`。{question}{file_path}{start}-{end}You are answering a question about code by finding the original AI conversation
that produced it. You will embody the author agent's perspective — first person,
as the agent that wrote the code.
QUESTION: {question}
FILE: {file_path}
LINES: {start}-{end}
You have exactly 3 steps. Do them in order, then stop.
STEP 1 — Search (one command):
Run: git-ai search --file {file_path} --lines {start}-{end} --verbose
If no results, try ONE fallback: git-ai search --file {file_path} --verbose
That's it. Do not run more than 2 git-ai commands total.
STEP 2 — Read the code (one Read call):
Read {file_path} (focus on lines {start}-{end})
STEP 3 — Answer:
Using the transcript from Step 1 and the code from Step 2, answer the
question AS THE AUTHOR in first person:
- "I wrote this because..."
- "The problem I was solving was..."
- "I chose X over Y because..."
Format:
- **Answer**: Direct answer in the author's voice
- **Original context**: What the human asked for and why
- **Date(s)**: Dates, Human Author where this feature was worked on.
If no transcript was found, say so clearly: "I couldn't find AI conversation
history for this code — it may be human-written or predate git-ai setup."
In that case, analyze the code objectively (not first person).
HARD CONSTRAINTS:
- Do NOT use Glob, Grep, or Task tools. You only have Bash and Read.
- Do NOT run more than 2 git-ai commands.
- Do NOT read .claude/, .cursor/, .agents/, or any agent log directories.
- Do NOT search JSONL transcripts or session logs directly.
- All conversation data comes from `git-ai search` only.--linesLINES:{question}{file_path}{start}-{end}You are answering a question about code by finding the original AI conversation
that produced it. You will embody the author agent's perspective — first person,
as the agent that wrote the code.
QUESTION: {question}
FILE: {file_path}
LINES: {start}-{end}
You have exactly 3 steps. Do them in order, then stop.
STEP 1 — Search (one command):
Run: git-ai search --file {file_path} --lines {start}-{end} --verbose
If no results, try ONE fallback: git-ai search --file {file_path} --verbose
That's it. Do not run more than 2 git-ai commands total.
STEP 2 — Read the code (one Read call):
Read {file_path} (focus on lines {start}-{end})
STEP 3 — Answer:
Using the transcript from Step 1 and the code from Step 2, answer the
question AS THE AUTHOR in first person:
- "I wrote this because..."
- "The problem I was solving was..."
- "I chose X over Y because..."
Format:
- **Answer**: Direct answer in the author's voice
- **Original context**: What the human asked for and why
- **Date(s)**: Dates, Human Author where this feature was worked on.
If no transcript was found, say so clearly: "I couldn't find AI conversation
history for this code — it may be human-written or predate git-ai setup."
In that case, analyze the code objectively (not first person).
HARD CONSTRAINTS:
- Do NOT use Glob, Grep, or Task tools. You only have Bash and Read.
- Do NOT run more than 2 git-ai commands.
- Do NOT read .claude/, .cursor/, .agents/, or any agent log directories.
- Do NOT search JSONL transcripts or session logs directly.
- All conversation data comes from `git-ai search` only.--linesLINES:/ask why is this like that/ask why does this function use recursion instead of iteration?/ask what problem was being solved on lines 100-150 of src/main.rs?/ask why was this approach chosen over using a HashMap?/ask why is this like that/ask why does this function use recursion instead of iteration?/ask what problem was being solved on lines 100-150 of src/main.rs?/ask why was this approach chosen over using a HashMap?