/agents-cli:sessions [search query or session ID]from agents-cli
Search, browse, and read agent conversation transcripts across Claude, Codex, Gemini, and OpenCode using the sessions CLI. Useful for finding previous sessions, recovering context, or inspecting agent activity.
Ships in agents-cli. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Search and browse agent conversation transcripts. This skill teaches you how to use the standalone sessions CLI (@phnx-labs/sessions-cli) effectively. agents sessions was removed; running sessions are agents ps, and resuming one is agents run auto --resume <id>.
# Interactive picker: browse and search recent sessions
sessions
# List sessions from current project
sessions | head -20
# Search sessions by text
sessions "add auth middleware"
# Filter by project across all directories
sessions --project agents-cli --all
| Filter | Example | Description |
|---|---|---|
--agent | --agent claude | Filter by agent type |
--all | --all | Include sessions from every directory |
--project | --project myapp | Filter by project name |
--since | --since 2h | Only sessions newer than this |
--until | --until 2026-01-01 | Only sessions older than this |
--limit | --limit 10 | Maximum sessions to return |
--sort | --sort cost | Order by cost, duration, or recent (default) |
--teams | --teams | Include team-spawned sessions |
# Render session as markdown
sessions --markdown <session-id>
# Output as JSON
sessions --json <session-id>
# Include only specific roles
sessions --markdown --include user,assistant <session-id>
# Show only first/last N turns
sessions --markdown --last 10 <session-id>
# List all files written or edited during a session
sessions artifacts <session-id>
# Read a specific artifact
sessions artifacts <session-id> <filename>
# Live-tail a session file (Claude and Codex only)
sessions tail <session-id>
# Press Ctrl+C to stop
# Or the unified viewer: resolves a session id OR a host-dispatch run (from
# `agents run --device`), and -f follows either (a session tail here is
# `sessions tail` under the hood)
agents events logs <id> # show it
agents events logs -f <id> # follow it
Every session is priced offline at scan time (costUsd) and its wall-clock
runtime is stored (durationMs). Both appear in --json output, and the list
can be sorted by either.
# The 10 most expensive sessions, anywhere
sessions --all --sort cost --limit 10
# Longest-running sessions in this project
sessions --sort duration
# Per-session cost in JSON
sessions --all --sort cost --json | jq '.[] | {shortId, agent, costUsd, durationMs}'
Use agents insights cost for a rollup (daily $ histogram, top sessions,
per-agent/project/day breakdown):
agents insights cost # daily histogram + top sessions + per-agent breakdown
agents insights cost --since 30d # last 30 days
agents insights cost --by project # group by project instead of agent
agents insights cost --by day --json # machine-readable daily rollup
agents insights cost answers "how much did this cost?"; agents view answers "how
much quota / rate limit is left?" — different commands.
agents ps to find sessions running right now across terminals, teams, cloud, and headless agents--teams to see what team-spawned agents are doing--since 1h for recent activity--sort cost / --sort duration to find your priciest or longest sessionsagents insights cost for spend rollups; agents view for rate-limit statussessions --project myapp --since 1d --agent claudeWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
session-search, conference-transcripts, agent-logs, cli-tool
npx claudepluginhub phnx-labs/agi-cli --plugin agents-cli8 skills in this plugin
/agents-cliRun and manage many AI coding agents (Claude Code, Codex, Cursor, Gemini/Antigravity, Grok, Kimi, OpenCode, Droid, …) from one CLI — the `agents` command. Use this to run multiple coding agents in parallel, manage multiple Claude Code accounts, keep working when I hit my usage limit, resume a session on another machine, or pin the agent CLI version. Triggers on: run multiple coding agents in parallel, manage multiple Claude Code accounts, I hit my usage limit, resume a session on another machine, pin the agent CLI version./browserDrive a browser via CDP — navigate, click, type, screenshot. Profiles persist login state across sessions, so agents log in once and stay authenticated. Triggers on: 'automate a website', 'browser automation', 'click', 'screenshot', 'scrape', 'log in', 'fill form'./devicesRegister and connect to your machines over Tailscale SSH with agents-cli. Use this skill to sync devices from the tailnet, list them, open a shell on another machine, or see agent sessions running across your whole fleet./runExecute a single agent headlessly or interactively. Supports plan/edit/auto/skip modes, secrets bundle injection, version pinning, fallback chains, balanced rotation, profile dispatch (Kimi/DeepSeek/etc.), and workflow dispatch by name. Triggers on: 'run claude', 'run codex', 'agents run', 'dispatch an agent', 'headless agent', 'one-off agent task'./secretsManage named bundles of environment variables backed by the OS keychain (macOS Keychain, Linux libsecret, Windows Credential Manager). Create bundles, add secrets, generate passwords, and inject them into agent runs. Triggers on: 'API key', 'credentials', 'secrets bundle', 'inject env vars', '--secrets', 'keychain', 'credential manager'./teamsOrganize AI coding agents into teams that collaborate on a shared task. Create teams, add teammates, start them, monitor progress, and collect results. Use this skill when you need parallel agent execution. For single-agent dispatch, use `agents run` instead.Other plugins' skills for the same job