discovery-gather-exhaustlisted
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