APP-4880 - TUI view-logs slash command — Claude Code subagent
APP-4880 - TUI view-logs slash command is a Claude Code subagent that adds a /view-logs TUI command to pack logs into a zip. It prints the absolute path and opens the OS file manager.
AGPL-3.0 ★ 720 updated 2026-11-10
.claude/agents/APP-4880---TUI-view-logs-slash-command.mdWhat APP-4880 - TUI view-logs slash command does
This agent implements the /view-logs slash command for Warp TUI mode. It packages logs into a timestamped zip archive using warp_logging::create_log_bundle_zip() and displays the full filesystem path in the terminal. The command is scoped strictly to SettingsMode::Tui so the graphical interface remains untouched.
A platform helper reveals the target file on macOS, Windows, and Linux. When running over SSH, detected via SSH_CONNECTION or SSH_TTY environment variables, the file manager spawn is bypassed entirely to avoid headless errors.
What it helps with
- bundle TUI logs into a timestamped zip archive
- reveal the exported log archive in the desktop file manager
- return the absolute zip path when connected through SSH
Example prompts for the agent
- Implement the
/view-logscommand for Warp TUI following APP-4880 - Add an SSH environment check before attempting to open the log bundle
- Register
TuiSlashCommand::ViewLogsin the slash command handler
How to install APP-4880 - TUI view-logs slash command
Manually: put the files in place
.claude/agents/APP-4880---TUI-view-logs-slash-command.mdFor all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention
Manually: put the files in place
.codex/agents/APP-4880---TUI-view-logs-slash-command.tomlCodex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/
Manually: put the files in place
.cursor/agents/APP-4880---TUI-view-logs-slash-command.mdCursor also reads .claude/agents/
Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean
Questions about APP-4880 - TUI view-logs slash command
How to install APP-4880 - TUI view-logs slash command in Claude Code?
Save the agent configuration into .claude/agents/APP-4880---TUI-view-logs-slash-command.md.
What does APP-4880 - TUI view-logs slash command do?
It adds a /view-logs command to the Warp TUI, creating a zip log bundle and printing its location.
How does the command behave under an SSH connection?
If SSH_CONNECTION or SSH_TTY is present, it skips launching the OS file manager and outputs only the absolute path.