← ClaudeAtlas

discovery-gather-exhaustlisted

Cross-domain / Research platform observability — Gather a Discovery project's "exhaust" that lives outside the project folder (Copilot CLI/SDK agent and engine session transcripts, editor chat sessions/transcripts/debug logs, Copilot process logs, Discovery App service logs, token-usage telemetry, app terminal logs) into `.discovery/exhaust/` in documented folders, scrub it to the privacy level the user picks, handle large files (archive / Git LFS / Azure Blob / skip), and commit it to git. Safe to run any time; only adds or updates, never deletes. WHEN: "gather exhaust", "save the agent logs to the project", "archive telemetry", "copy session logs into .discovery", "preserve chat history in git", "collect agent run transcripts", "discovery-gather-exhaust". DO NOT USE FOR: token read-outs (discovery-token-usage) or viewing chats (chat-session-experimental).
timothymeyers/discovery-tools · ★ 1 · Code & Development · score 70
Install: claude install-skill timothymeyers/discovery-tools
# discovery-gather-exhaust Copies everything Discovery and Copilot record about this project outside the project into `.discovery/exhaust/`, then commits it. Run only when the user asks. Resolve this loaded `SKILL.md` file's parent directory as `SKILL_DIR`. Never assume a checkout location. Run the script from the project root (the folder that contains `.discovery/`), or pass `--workspace <absolute-root>`. Script: `$SKILL_DIR/scripts/gather.py` (Python 3.12+, standard library only — call `python3.12` explicitly on macOS). ## What it gathers | Folder in `.discovery/exhaust/` | Source | Match rule | |---|---|---| | `agent-sessions/<uuid>/` | `~/.copilot/session-state/<uuid>/` | `cwd` or `git_root` in `workspace.yaml` is this project or inside it | | `chat/{sessions,editing-sessions,transcripts,debug-logs,tool-outputs,memory}/` | `<app>/user-data/User/workspaceStorage/<hash>/` | `<hash>` whose `workspace.json` points at this project | | `logs/copilot-process/` | `~/.copilot/logs/*.log` | mentions a project run ID or the project path | | `logs/app-terminal/<date>.log` | `<app>/user-data/logs/<date>/terminal.log` | only matching lines | | `telemetry/discovery-express.jsonl` | `<app>/telemetry/logs/discovery-express.jsonl*` | only lines with a run ID or project path, de-duplicated across rotations | | `telemetry/token-usage.jsonl` | `<app>/telemetry/token-usage.jsonl` | lines inside run/session time windows, tagged `_gather_match: time-window` | Plus `manifest.json` (every fi