apex-debug-log-export

apex-debug-log-export is a command for Claude Code, GitHub Copilot from jonathan-vella/apex-accelerator. It costs 38 tokens per session (5,091 once invoked), scanned C, original, MIT.

A command that collects selected Copilot custom-agent debug logs, filters them, and compresses them into a tar.gz archive for manual upload. Debug logs are records used to investigate what happened during an agent session.

In plain words
What is it for?
It is for preparing custom-agent logs to share with support or for investigating agent behaviour.
Why use it?
It gathers relevant troubleshooting information without uploading it automatically or mixing in unrelated log lines.

Command for Claude CodeGitHub Copilot

Written for Claude Code and GitHub Copilot: argument-hint in frontmatter, but also a Copilot chat mode or prompt. Also seen: model in frontmatter; positional $N argument; Copilot chat-mode frontmatter (tools: vscode/*).

Good fit It is for preparing custom-agent logs to share with support or for investigating agent behaviour.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/jonathan-vella/apex-accelerator/apex-debug-log-export
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.

Clone the repo
git clone --depth 1 https://github.com/jonathan-vella/apex-accelerator

Made for: Claude Code, GitHub Copilot.

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 apex-debug-log-export

README.md
[![agentmods](https://agentmods.dev/badge/commands/jonathan-vella/apex-accelerator/apex-debug-log-export/github.svg)](https://agentmods.dev/commands/jonathan-vella/apex-accelerator/apex-debug-log-export)
Your own site
<a href="https://agentmods.dev/commands/jonathan-vella/apex-accelerator/apex-debug-log-export"><img src="https://agentmods.dev/badge/commands/jonathan-vella/apex-accelerator/apex-debug-log-export/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for apex-debug-log-export

Your own site · 80×15
<a href="https://agentmods.dev/commands/jonathan-vella/apex-accelerator/apex-debug-log-export"><img src="https://agentmods.dev/badge/commands/jonathan-vella/apex-accelerator/apex-debug-log-export.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,091 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00038 $0.05091
Opus 5 $0.00019 $0.02545
Sonnet 5 $0.00008 $0.01018
Haiku 4.5 $0.00004 $0.00509

Measured yesterday against content hash 81b23d67fca2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade C, and why

apex-debug-log-export scanned grade C with 1 finding 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 yesterday.

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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf .apex-logs/_staging
.github/prompts/apex-debug-log-export.prompt.md · 443 lines

How it starts

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

Export Custom-Agent Debug Logs (.apex-logs)

Collect Copilot debug logs from this workspace's active session (and optionally older sessions / workspace logs), filter the main JSONL stream down to lines that reference custom agents in .github/agents/, compress everything into a single .tar.gz archive under .apex-logs/, and print a manual upload instruction. The prompt never uploads — you upload to OneDrive yourself via a browser.

Scope

  • Output directory: .apex-logs/ at the repo root (gitignored).
  • Bundle name: apex-debug-<UTC-timestamp>-<sessionShort>.tar.gz.
  • Default capture: the most recent non-active Copilot debug-log directory in this workspace — i.e. the conversation that ran before this prompt was invoked. $VSCODE_TARGET_SESSION_LOG points at the current prompt's own session, which is almost never what the user wants archived; it is therefore excluded by default and only the user can opt back into it (Step 1).
  • Opt-in capture: the active prompt session, older sessions in the same workspace, the active session transcript JSONL, and workspace logs/copilot/.
  • Filter source for "custom agent" lines: every agent file path under .github/agents/*.agent.md plus the short keys in tools/registry/agent-registry.json (agents map keys).
  • Redaction (default on): strip common secret patterns from the filtered JSONL before bundling.
  • Never includes agent-output/, infra/, or node_modules/.

Inputs

Variable Source Default
session_dir user pick (Step 0/1) most recent non-active session
include_older user choice no
include_xcript user choice (transcript JSONL) no
include_ws user choice (logs/copilot/) no
redact user choice yes
onedrive_link argument-hint none (printed only if given)

Read the full file on GitHub · 443 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. yesterday First seen · 443 lines · 38 tokens per session scan C 81b23d67fca2

Subscribe to this mod's changes

apex-debug-log-export is a command published in the GitHub repository jonathan-vella/apex-accelerator (50 stars, last pushed yesterday), licensed MIT. It adds 38 tokens to every session and 5,091 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-07.

Related

Other commands, from other repositories

analyze-failures

Triage Katalon True Platform/TestOps test failures and file defects. Use when you need to investigate failed test results, classify each failure as product defect vs automation defect vs environment/data issue, cluster failures by common signature, find likely root cause from execution data, and optionally create…

katalon-labs/true-skills · 125 tokens

test-maintenance

Maintain and evolve a Katalon True Platform/TestOps regression suite as the application changes. Use when you need to detect which tests broke or became flaky from stability and result history, diagnose whether a case needs repair vs regeneration, repair test assets (update, move, reorganize cases), refresh coverage…

katalon-labs/true-skills · 131 tokens

fix_issue

Use the text the user typed after the command name as the request for this command.

iamironz/ai-config-bundle · 0 tokens

validate_runtime

Use the text the user typed after the command name as the request for this command.

iamironz/ai-config-bundle · 0 tokens

refactor-clean

You are a code refactoring expert specializing in clean code principles, SOLID design patterns, and modern software engineering best practices. Analyze and refactor the provided code to improve its quality, maintainability, and performance.

wshobson/agents · 0 tokens

ink-art

Hand-drawn ink-on-white doodle animation — a character that draws itself then walks/dances/waves, or a deadpan contraption explainer. Vector, deterministic, rendered via HyperFrames to MP4.

calesthio/OpenMontage · 43 tokens