agf

by subiniumVerified

AI Agent Session Finder — TUI to find, resume and manage sessions across Claude Code, Codex, Gemini, Kiro, OpenCode, Cursor, pi

112
Stars
8
Forks
Rust
Language
8/23/2026
Added
View on GitHubDownload ZIP

⚠️ Third-Party Software Notice

This skill is third-party open-source software developed and hosted independently on GitHub. SkillTip is an informational directory and does not control or maintain the underlying repository. Any security checks displayed are automated and limited in scope. Review the source code before installing.

Read the Terms of Service

Installation

Add to your Claude Code skills directory:

# Add to your Claude Code skills
git clone https://github.com/subinium/agf

Getting Started

Guides for using skills like agf.

Security Report

Verified

Last scanned: —

{
  "status": "PASSED",
  "issues": []
}

README.md

agf

CI Release crates.io License: MIT

Find the AI coding session you meant to resume.

agf is a local-first fuzzy finder for AI coding-agent sessions. Search the sessions your terminal agents already keep locally, then resume the right one in a keystroke.

agf demo

Install

cargo install agf
agf setup
agf

Requires a Rust toolchain (rustup recommended). Prebuilt binaries for macOS, Linux, and Windows are also available on the Releases page.

Quick Resume (no TUI)

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

Why agf?

AI coding agents are great at keeping context — until you lose the terminal.

You switch projects, close a tab, forget the session ID, or resume the wrong agent. Then you either dig through history files or start over.

agf gives you one searchable list of local agent sessions and resumes the right one.

Supported agents

agf reads the session files each agent already stores locally. No account, no cloud sync, no extra agent process.

AgentResume commandLocal session source
Claude Codeclaude --resume <id>~/.claude/history.jsonl + ~/.claude/projects/
Codexcodex resume <id>~/.codex/sessions/**/*.jsonl
Grok Buildgrok --resume <id>$GROK_HOME/sessions/ or ~/.grok/sessions/
Kimi Codekimi --session <id>$KIMI_CODE_HOME/sessions/ or ~/.kimi-code/sessions/
Qwen Codeqwen --resume <id>$QWEN_RUNTIME_DIR/projects/ or ~/.qwen/projects/
Prime Agentprime-agent --resume <id>~/.prime/agent/sessions/<id>.jsonl
Gemini CLIgemini --resume <id>~/.gemini/tmp/<project>/chats/session-*.json
Cursor CLIcursor-agent --resume <id>~/.cursor/projects/*/agent-transcripts/<id>/<id>.jsonl (Composer 2+)
~/.cursor/projects/*/agent-transcripts/<id>.txt (legacy)
OpenCodeopencode -s <id>~/.local/share/opencode/opencode.db
Kirokiro-cli chat --resume-id <id>Kiro v2 SQLite + Kiro v3 ~/.kiro/sessions/cli/
pipi --session <id>~/.pi/agent/sessions/<cwd>/*.jsonl
Hermeshermes --resume <id> (cwd-independent — resumes in your current shell directory)~/.hermes/state.db
Oh My Piomp --resume <id>~/.omp/agent/sessions/<cwd>/*.jsonl
Yolopyolop --session <id>Platform data directory under yolop/sessions/
Full session storage paths
AgentFormatDefault Path
Claude CodeJSONL~/.claude/history.jsonl (sessions)
~/.claude/projects/*/ (worktree detection)
CodexJSONL~/.codex/sessions/YYYY/MM/DD/rollout-*.jsonl
Grok BuildJSON + JSONL$GROK_HOME/sessions/<encoded-cwd>/<id>/summary.json (default ~/.grok)
Activity, title, recap, branch, and worktree metadata come from the bounded summary document
Kimi CodeJSON + JSONL$KIMI_CODE_HOME/sessions/<workDirKey>/<id>/state.json (default ~/.kimi-code)
session_index.jsonl supplies cwd fallback for migrated legacy sessions
Qwen CodeJSONL$QWEN_RUNTIME_DIR/projects/<project>/chats/<id>.jsonl
Defaults to $QWEN_HOME or ~/.qwen; advanced.runtimeOutputDir and legacy tmp/<project>/chats/ are also supported
Prime AgentJSONL~/.prime/agent/sessions/<id>.jsonl (also honors Prime Agent environment/global settings overrides)
OpenCodeSQLite~/.local/share/opencode/opencode.db
piJSONL~/.pi/agent/sessions/--<encoded-cwd>--/<ts>_<id>.jsonl
Oh My PiJSONL~/.omp/agent/sessions/<encoded-cwd>/<ts>_<id>.jsonl
KiroSQLite + JSON/JSONLv2: macOS ~/Library/Application Support/kiro-cli/data.sqlite3, Linux ~/.local/share/kiro-cli/data.sqlite3
v3: $KIRO_HOME/sessions/cli/ or ~/.kiro/sessions/cli/
Cursor CLISQLite + JSONL/TXT~/.cursor/chats/<workspace>/<id>/store.db (metadata; required for .jsonl to be resumable)
~/.cursor/projects/*/agent-transcripts/<id>/<id>.jsonl (Composer 2+ transcript)
~/.cursor/projects/*/agent-transcripts/<id>.txt (legacy transcript)
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
HermesSQLite~/.hermes/state.db (sessions + messages)
JSON dumps in ~/.hermes/sessions/session_<id>.json
Hermes is cwd-independent — resume runs in your current shell directory
YolopJSONL + JSONmacOS: ~/Library/Application Support/yolop/sessions/<id>/
Linux: $XDG_DATA_HOME/yolop/sessions/<id>/
Windows: %APPDATA%\yolop\sessions\<id>\

Features

  • Cross-agent search — see all supported agents in one list
  • Fuzzy search — find sessions by project name, path, branch, or summary
  • One-key resume — resume the selected session with the right agent command
  • Quick resumeagf resume <query> skips the TUI entirely
  • Bulk deleteCtrl+D to multi-select and clean up stale sessions
  • Project awareness — git branches and Claude Code --worktree sessions surface in the UI

Also supports Unicode/CJK search, mouse navigation, agent filters, permission/approval-mode picker, agent auto-detection, and shell wrappers for zsh, bash, fish, and PowerShell.

Basic controls

KeyAction
Type anythingFuzzy search
/ Ctrl+K Ctrl+JNavigate
EnterOpen action menu
Tab / Shift+TabCycle agent filter
/ Ctrl+LPreview session
Ctrl+DBulk delete
?Help / settings
EscQuit
Full keybindings

Browse

KeyAction
Type anythingFuzzy search
/ Ctrl+K Ctrl+JNavigate
[ ]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
?Help / settings
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

Configuration

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"
include_non_interactive = false # show Codex subagent/exec threads

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

Shell integration

agf setup auto-detects your shell and installs the wrapper. Use agf setup --shell powershell (or another supported shell) when auto-detection is ambiguous.

  • zsh / bash — appends to ~/.zshrc or ~/.bashrc
  • fish — writes to ~/.config/fish/config.fish
  • PowerShell (Windows or cross-platform pwsh) — writes to $PROFILE.CurrentUserAllHosts (Documents\PowerShell\profile.ps1 on Windows, ~/.config/powershell/profile.ps1 elsewhere)

If auto-detection misses your shell, run the matching agf init form manually:

eval "$(agf init zsh)"                               # zsh
eval "$(agf init bash)"                              # bash
agf init fish | source                               # fish
agf init powershell | Out-String | Invoke-Expression # PowerShell

After upgrading, run agf setup again (or restart your shell) to apply the latest wrapper. See CHANGELOG.md for release notes.

Requirements

  • macOS, Linux, or Windows (PowerShell 5.1+ / PowerShell 7+)
  • One or more of: claude, codex, grok, kimi, qwen, prime-agent, opencode, pi, kiro-cli, cursor-agent, gemini, hermes, omp, yolop

Install from source

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

Limitations

agf works best with agents that store resumable sessions locally.

Direct deletion is intentionally disabled for Prime Agent, Grok Build, Kimi Code, and Qwen Code. Their native pickers coordinate active sessions and/or secondary indexes; deleting only the visible file from AGF could leave corrupted or stale upstream state. Discovery and exact-ID resume remain fully supported.

Amp is not supported yet because its sessions are stored remotely, which makes it hard to reliably resolve local project paths from session metadata. We are monitoring upstream changes and will add support when feasible.

Built with

agf is written in Rust and built with SuperLightTUI (SLT) — an immediate-mode terminal UI library for Rust.

Contributing

Issues and PRs are welcome. Adding support for another agent/harness is a self-contained change — see docs/adding-an-agent.md for the wiring checklist.

Contributors

License

MIT

Frequently Asked Questions

What is agf?

agf is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by subinium. AI Agent Session Finder — TUI to find, resume and manage sessions across Claude Code, Codex, Gemini, Kiro, OpenCode, Cursor, pi. It has 112 GitHub stars.

Is agf safe to use?

Yes. agf passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install agf?

Clone the repository with "git clone https://github.com/subinium/agf" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is agf written in?

agf is primarily written in Rust. It is open-source under subinium on GitHub, so you can review or fork the full source.

Are there alternatives to agf?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh agf against similar tools.

Comments (0)

No comments yet. Be the first to share your thoughts!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI Agentsai-agentsanthropicclaude-code
View details
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI Agentsai-agentsbrainstorming
View details

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI Agentsai-agentsanthropicclaude-code
View details

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI Agentsclaude-codeai-tools
View details

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI Agents
View details

Developers Also Liked

Based on votes and bookmarks from developers who liked this skill

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI Agentsai-agentsanthropicclaude-code
View details
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI Agentsai-agentsbrainstorming
View details

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP Serversapisai-tools
View details

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI Agentsai-agentsanthropicclaude-code
View details

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI Agentsclaude-codeai-tools
View details