원클릭으로
autter-search
Search and restore AI conversation context from git history
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Search and restore AI conversation context from git history
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
Use this when you are exploring the codebase. It lets you ask the AI who wrote code questions about how things work and why they chose to build things the way they did. Think of it as asking the engineer who wrote the code for help understanding it.
Analyze AI prompting patterns and acceptance rates
SOC 직업 분류 기준
| name | autter-search |
| description | Search and restore AI conversation context from git history |
| argument-hint | [search query or workflow] |
| allowed-tools | ["Bash(autter:*)","Read","Glob","Grep"] |
Search and restore AI conversation context from git history using autter search and autter continue.
Autter tracks AI-generated code and the conversations that produced it. This skill helps you:
| You want to... | Use... |
|---|---|
| See what AI context exists for a commit | autter search --commit <sha> |
| See AI context for specific lines | autter search --file <path> --lines <range> |
| Read the full AI conversation | autter search --commit <sha> --verbose |
| Get machine-readable output | autter search --json |
| Find prompts mentioning a topic | autter search --pattern "keyword" |
| Continue someone's AI session | autter continue --commit <sha> |
| Continue working on a code region | autter continue --file <path> --lines <range> |
| Launch Claude with restored context | autter continue --commit <sha> --launch |
| View a specific prompt transcript | autter show-prompt <id> |
Understand what AI assistance was used in a specific commit:
# See a summary of AI sessions in the commit
autter search --commit abc1234
# View the full conversations
autter search --commit abc1234 --verbose
# Get JSON for programmatic processing
autter search --commit abc1234 --json | jq '.prompts | keys[]'
Find what AI sessions contributed to specific lines:
# Search by file
autter search --file src/main.rs
# Search specific lines
autter search --file src/main.rs --lines 100-150
# Multiple line ranges
autter search --file src/main.rs --lines 50-75 --lines 200-250
Pick up where a teammate left off:
# See what they were working on
autter search --commit abc1234 --verbose
# Restore context and continue in your shell
autter continue --commit abc1234
# Or launch directly into Claude Code
autter continue --commit abc1234 --launch
# Or copy context to clipboard to paste elsewhere
autter continue --commit abc1234 --clipboard
Understand AI involvement in a PR:
# Get all commits in the PR
COMMITS=$(gh pr view 123 --json commits -q '.commits[].oid')
# Search each commit
for sha in $COMMITS; do
echo "=== $sha ==="
autter search --commit $sha
done
# Or search the full range
BASE=$(gh pr view 123 --json baseRefOid -q '.baseRefOid')
HEAD=$(gh pr view 123 --json headRefOid -q '.headRefOid')
autter search --commit $BASE..$HEAD
See all AI sessions that touched a file:
# Full file history
autter search --file src/auth/login.rs
# Filter by author
autter search --file src/auth/login.rs --author "Alice"
# Filter by tool
autter search --file src/auth/login.rs --tool claude
Find prompts discussing specific topics:
# Search prompt content
autter search --pattern "authentication"
autter search --pattern "error handling"
# Combine with filters
autter search --pattern "refactor" --tool cursor
Integrate with scripts and workflows:
# Get prompt IDs only
autter search --commit abc1234 --porcelain
# Count matches
autter search --file src/main.rs --count
# JSON for processing
autter search --commit abc1234 --json | jq '.prompts[] | {tool, model, author: .human_author}'
# Find commits with AI-authored code
git log --oneline | while read sha msg; do
count=$(autter search --commit $sha --count 2>/dev/null || echo "0")
if [ "$count" != "0" ]; then
echo "$sha ($count sessions): $msg"
fi
done
Search for AI prompt sessions by various criteria.
autter search [OPTIONS]
Context Source (pick one):
--commit <rev> - Search a specific commit (or range with sha1..sha2)--file <path> - Search by file path--lines <range> - Filter to line range (requires --file, repeatable)--pattern <text> - Full-text search in prompt content--prompt-id <id> - Look up specific prompt by IDFilters (combinable):
--author <name> - Filter by human author (substring match)--tool <name> - Filter by tool (claude, cursor, etc.)--since <date> - Only prompts after date--until <date> - Only prompts before dateOutput Format (pick one):
--json - Full JSON output--verbose - Detailed output with full transcripts--porcelain - Machine-readable prompt IDs only--count - Just the count of matching promptsRestore AI session context for continuation.
autter continue [OPTIONS]
Context Source (pick one, or none for TUI):
--commit <rev> - Continue from a commit--file <path> - Continue from a file--lines <range> - Limit to line range (with --file)--prompt-id <id> - Continue specific promptAgent Selection:
--agent <name> - Target agent (claude, cursor; default: claude)--tool <name> - Alias for --agentOutput Mode (pick one):
--launch - Spawn agent CLI with context--clipboard - Copy context to clipboard--json - Output as structured JSONOptions:
--max-messages <n> - Limit messages per prompt (default: 50)Display the full transcript of a specific prompt.
autter show-prompt <prompt_id> [OPTIONS]
--json - Output as JSON--raw - Show raw internal formatHuman-readable summary:
Found 2 AI prompt session(s) for commit abc1234
[1] Prompt a1b2c3d4 (claude / claude-sonnet-4)
Author: Alice
Files: src/main.rs:10-50
[2] Prompt e5f6g7h8 (cursor / gpt-4)
Author: Bob
Files: src/lib.rs:100-150, src/utils.rs:20-30
Full structured data for programmatic use:
{
"source": {
"sha": "abc1234",
"author": "Alice",
"date": "2025-01-15",
"message": "Add authentication"
},
"prompts": [
{
"id": "a1b2c3d4",
"tool": "claude",
"model": "claude-sonnet-4",
"author": "Alice",
"messages": [...]
}
]
}
Full conversations inline:
=== Session 1: Prompt a1b2c3d4 ===
Tool: claude (claude-sonnet-4)
Author: Alice
**User**:
Help me implement user authentication...
**Assistant**:
I'll help you implement authentication. Here's my approach...
One prompt ID per line (for scripting):
a1b2c3d4
e5f6g7h8
Just the number:
2
Filters use AND semantics - prompts must match ALL specified filters:
# Claude prompts by Alice in the last 7 days
autter search --commit HEAD~10..HEAD --tool claude --author "Alice" --since 7d
Combine with git log to explore history:
# Find commits with high AI involvement
git log --oneline --since="1 week ago" | while read sha msg; do
autter search --commit $sha --count 2>/dev/null
done
# Search AI context for files changed in a commit
git diff-tree --no-commit-id --name-only -r abc1234 | while read file; do
autter search --file "$file"
done
The --agent flag controls context formatting:
# For Claude Code
autter continue --commit abc1234 --agent claude --launch
# For other tools, copy to clipboard
autter continue --commit abc1234 --clipboard
If search returns many results, drill down:
# Get the IDs
autter search --commit abc1234 --porcelain
# View a specific one
autter show-prompt a1b2c3d4
--commit for fastest results (direct note lookup)--file requires blame computation (slower for large files)--pattern searches the database (fast substring match)--count first to check result size before verbose output# Any AI in this commit?
autter search --commit HEAD --count
# What tools were used?
autter search --commit abc1234 --json | jq '.prompts[].tool' | sort -u
# Who used AI in this file?
autter search --file src/main.rs --json | jq '.prompts[].author' | sort -u
# Full context of the most recent AI session
autter search --commit HEAD --verbose | head -100
# Continue the exact session that wrote these lines
autter continue --file src/main.rs --lines 50-100 --launch
# In a PR check, report AI involvement
PROMPT_COUNT=$(autter search --commit $PR_HEAD --count 2>/dev/null || echo "0")
if [ "$PROMPT_COUNT" -gt 0 ]; then
echo "This PR includes $PROMPT_COUNT AI-assisted session(s)"
autter search --commit $PR_HEAD
fi