AGF(1)

NAME

agfAgent Finder — One TUI to find, resume, and manage AI coding agent sessions (Claude Code, Codex, Opencode, Gemini)

SYNOPSIS

$brew install subinium/tap/agf

INFO

107 stars
7 forks
0 views

DESCRIPTION

Agent Finder — One TUI to find, resume, and manage AI coding agent sessions (Claude Code, Codex, Opencode, Gemini)

README

agf

CI Release License: MIT

A fast TUI to find, resume, and manage your AI coding agent sessions. Supports Claude Code, Codex, OpenCode, pi, Kiro, Cursor CLI, and Gemini — all in one place.

agf demo

Quick Start

brew install subinium/tap/agf
agf setup

Restart your shell. Then just type agf.

Quick Resume (no TUI)

agf resume project-name   # fuzzy-matches and resumes the best match directly

Why agf?

If you use AI coding agents, you've probably done this:

  1. Forget which project you were working on
  2. cd into the wrong directory
  3. Try to remember the session ID
  4. Give up and start a new session

agf fixes that. It scans all your agent sessions, shows them in a searchable list, and lets you resume with one keystroke.

Features

  • Unified view — Claude Code, Codex, OpenCode, pi, Kiro, Cursor CLI, and Gemini sessions in one list
  • Fuzzy search — find any session by project name or summary
  • One-key resume — select a session and hit Enter
  • Agent filter — Tab to cycle through agents
  • Smart cd — jump to any project directory
  • Bulk deleteCtrl+D to multi-select and batch-delete sessions
  • New session — launch a new agent session with optional permission mode
  • Quick resumeagf resume <query> to skip the TUI and resume directly
  • Auto-detection — only shows agents installed on your system
  • Git branch — shows the current branch of each project's working directory
  • Worktree support — detects Claude Code --worktree sessions; shows worktree name in the list and parent branch in the detail view

Keybindings

Browse

KeyAction
Type anythingFuzzy search
/ Ctrl+K Ctrl+JNavigate
Shift+↑ Shift+↓Cycle session summary
EnterOpen action menu
/ Ctrl+LPreview session details
Tab / Shift+TabCycle agent filter
Ctrl+SCycle sort (time / name / agent)
Ctrl+DEnter bulk delete mode
EscQuit

Bulk Delete (Ctrl+D)

KeyAction
SpaceToggle selection + move down
/ Ctrl+K Ctrl+JNavigate
EnterConfirm deletion (when items selected)
EscCancel and return to browse

New Session (Agent Select)

KeyAction
1-9Quick select agent
TabOpen permission/approval mode picker
EnterLaunch with default mode
EscBack

Config

Optional. Create ~/.config/agf/config.toml:

sort_by = "time"            # "time" | "name" | "agent"
max_sessions = 200
search_scope = "name_path"  # "name_path" (default) | "all" (include summaries)
summary_search_count = 5    # number of summaries included when search_scope = "all"

You can also edit search_scope and summary_search_count interactively by pressing ? in the TUI.

Supported Agents

AgentResume CommandData Source
Claude Codeclaude --resume <id>~/.claude/history.jsonl + ~/.claude/projects/
Codexcodex resume <id>~/.codex/sessions/**/*.jsonl
OpenCodeopencode -s <id>~/.local/share/opencode/opencode.db
pipi --resume~/.pi/agent/sessions/<cwd>/*.jsonl
Kirokiro-cli chat --resume~/Library/Application Support/kiro-cli/data.sqlite3
Cursor CLIcursor-agent --resume <id>~/.cursor/projects/*/agent-transcripts/*.txt
Geminigemini --resume <id>~/.gemini/tmp/<project>/chats/session-*.json

Session Storage Paths

AgentFormatDefault Path
Claude CodeJSONL~/.claude/history.jsonl (sessions)
~/.claude/projects/*/ (worktree detection)
CodexJSONL~/.codex/sessions/YYYY/MM/DD/rollout-*.jsonl
OpenCodeSQLite~/.local/share/opencode/opencode.db
piJSONL~/.pi/agent/sessions/--<encoded-cwd>--/<ts>_<id>.jsonl
KiroSQLitemacOS: ~/Library/Application Support/kiro-cli/data.sqlite3
Linux: ~/.local/share/kiro-cli/data.sqlite3
Cursor CLISQLite + TXT~/.cursor/chats/*/<id>/store.db
~/.cursor/projects/*/agent-transcripts/<id>.txt
GeminiJSON~/.gemini/tmp/<project>/chats/session-<date>-<id>.json
<project> is a named dir or SHA-256 hash of the project path
Project paths resolved via ~/.gemini/projects.json

Install (other methods)

From source
git clone https://github.com/subinium/agf.git
cd agf
cargo install --path .
agf setup

Requirements

  • macOS or Linux
  • One or more of: claude, codex, opencode, pi, kiro-cli, cursor-agent

Contributing

Issues and PRs are welcome.

Contributors

Contributors

License

MIT


Agent Support Roadmap

Amp is not yet supported. Amp stores sessions on a remote server, making it difficult to reliably resolve project paths from session metadata. We are monitoring upstream changes and will add support when feasible.

SEE ALSO

clihub3/4/2026AGF(1)