tail-logs

tail-logs is a command for Claude Code from GGPrompts/TFE. It costs 15 tokens per session (936 once invoked), scanned A, original, MIT.

A command for watching TFE, a terminal-based file explorer, for errors, crashes, and display problems while it runs.

In plain words
What is it for?
Use it during development or testing to capture application logs, inspect crashes and panics, and check terminal-interface rendering.
Why use it?
It makes recent terminal output easier to inspect, especially when TFE is running inside tmux, a tool for keeping terminal programs running in separate sessions.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/ggprompts/tfe/tail-logs
Clone the repo
git clone --depth 1 https://github.com/GGPrompts/TFE

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tail-logs

README.md
[![agentmods](https://agentmods.dev/badge/commands/ggprompts/tfe/tail-logs.svg)](https://agentmods.dev/commands/ggprompts/tfe/tail-logs)
Your own site
<a href="https://agentmods.dev/commands/ggprompts/tfe/tail-logs"><img src="https://agentmods.dev/badge/commands/ggprompts/tfe/tail-logs.svg" alt="Measured on agentmods" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 936 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00015 $0.00936
Opus 5 $0.00008 $0.00468
Sonnet 5 $0.00003 $0.00187
Haiku 4.5 $0.00002 $0.00094

Measured 5d ago against content hash e8822d285b3d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

tail-logs scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/tail-logs.md · 113 lines

How it starts

The opening of the file, as written. The whole thing — 113 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Monitor TFE Application Logs

You are monitoring the TFE (Terminal File Explorer) application for errors, panics, and issues.

Your Task

Use Desktop Commander MCP tools to:

  1. Check monitoring method

    • First, ask if the user is running TFE in a tmux session
    • If yes, ask for the tmux session name (e.g., "tfe-dev")
    • If no tmux, check for background processes or offer to start one
  2. TMUX Monitoring (Preferred Method)

    • If monitoring a tmux session:
      • Use execute_command to run: tmux list-sessions to verify it exists
      • Use tmux capture-pane -t SESSION_NAME -p -S -100 to capture last 100 lines
      • Parse the output for errors, panics, TUI rendering issues
      • Can see the actual Bubbletea visual output!
      • Periodically capture new output (every 10-15 seconds when actively monitoring)
      • Use tmux capture-pane -t SESSION_NAME:WINDOW.PANE -p -S -50 for specific panes

    Tmux Commands Reference:

    # List sessions
    tmux list-sessions
    
    # List windows in a session
    tmux list-windows -t SESSION_NAME
    
    # List panes in a window
    tmux list-panes -t SESSION_NAME:WINDOW
    
    # Capture pane output (last N lines)
    tmux capture-pane -t SESSION_NAME -p -S -N
    
    # Capture entire scrollback
    tmux capture-pane -t SESSION_NAME -p -S -
    
  3. Background Process Monitoring (Alternative)

    • Use list_processes to find TFE process
    • If not running, offer to start it with start_process("./tfe")
    • If running as a background process, use read_process_output to check output
    • Look for any log files in /tmp/tfe-*.log or similar
  4. Monitor for errors, panics, warnings

  5. Watch for these issues:

    • Go panic messages
    • Runtime errors
    • Stack traces
    • Bubbletea rendering issues
    • File operation errors
    • Segmentation faults
    • Build failures
  6. Continuous monitoring:

    • Check output periodically (you can read latest lines with negative offset)
    • Alert me immediately if you detect any issues
    • Provide the full error message and stack trace
    • Identify which source file and line caused the issue
    • Suggest potential fixes based on the error

Read the full file on GitHub · 113 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 113 lines · 15 tokens per session scan A e8822d285b3d

Subscribe to this mod's changes

tail-logs is a command published in the GitHub repository GGPrompts/TFE (20 stars, last pushed 2mo ago), licensed MIT. It adds 15 tokens to every session and 936 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.