Skip to content
Agentmart
Submit a tool

query-metrics-db

How to locate and query the deep-cuts pipeline metrics SQLite database

Skill by robertolupi

IndexedAGPL-3.0★ 7
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/robertolupi-query-metrics-db

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

How to locate and query the deep-cuts pipeline metrics SQLite database

Use cases: backend, data

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/query-metrics-db

What's inside

Skill name
query-metrics-db
Description
How to locate and query the deep-cuts pipeline metrics SQLite database
License
AGPL-3.0
Instructions
120 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Querying the Pipeline Metrics Database

The app maintains a second SQLite database — separate from the main library DB — that records pipeline performance metrics and system lifecycle events. All data stays on the local machine and is never transmitted.

---

## Database location

```
~/Library/Logs/com.rlupi.deep-cuts/metrics.db
```

Store it in a shell variable to avoid retyping:

```bash
MDB="$HOME/Library/Logs/com.rlupi.deep-cuts/metrics.db"
```

---

## Schema

### `pipeline_metrics`

One row per analysis pass execution (success or failure).

| Column | Type | Description |
|--------|------|-------------|
| `id` | INTEGER | Auto-increment PK |
| `run_id` | TEXT | Shared across all passes in a pipeline run (Unix ms timestamp as string) |
| `track_id` | INTEGER | Track ID (no filenames stored) |
| `pass_name` | TEXT | e.g. `audio_analysis`, `clap`, `essentia`, `qwen`, `description_embed` |
| `status` | TEXT | `success` or `failed` |
| `duration_ms` | INTEGER | Wall-clock time for just this pass on this track |
| `started_at` | INTEGER | Unix timestamp in milliseconds |
| `ended_at` | INTEGER | Unix timestamp in milliseconds |
| `audio_duration_sec` | REAL | Track length in seconds (NULL if unavailable) |
| `error_message` | TEXT | Error string on failure (NULL on success) |

### `system_events`

Pipeline lifecycle events.

| Column | Type | Description |
|--------|------|-------------|
| `id` | INTEGER | Auto-increment PK |
| `event_type` | TEXT | `pipeline_start` or `pipeline_end` |
| `details` | TEXT | e.g. `run_id=1780559866025` or `run_id=... (nothing to do)` |
| `duration_ms` | INTEGER | Total pipeline wall-clock time (only on `pipeline_end`) |
| `created_at` | TIMESTAMP | SQLite wall-clock (CURRENT_TIMESTAMP, UTC) |

---

## Useful queries

### Recent pipeline runs

```bash
sqlite3 "$MDB" ".headers on" ".mode column" \
  "SELECT * FROM system_events ORDER BY id DESC LIMIT 20;"
```

### Pass latency summary (all time)

```bash
sqlite3 "$MDB" ".headers on" ".mode column" "
SELECT pass_name, status,
       COUNT(*) as cnt,
       ROUND(AVG(duration_ms)/1000.0, 2) as avg_s,
       ROUND(MIN(duration_ms)/1000.0, 2) as min_s,
       ROUND(MAX(duration_ms)/1000.0, 2) as max_s
FROM pipeline_metrics
GROUP BY pass_name, status
ORDER BY pass_name, status;"
```

### Metrics for a specific run

```bash
RUN_ID="1780560383909"
sqlite3 "$MDB" ".headers on" ".mode column" "
SELECT pass_name, track_id, status, duration_ms, audio_duration_sec
FROM pipeline_metrics
WHERE run_id = '$RUN_ID'
ORDER BY started_at;"
```

### Recent failures with error messages

```bash
sqlite3 "$MDB" ".headers on" ".mode column" "
SELECT pass_name, track_id, error_message, datetime(started_at/1000, 'unixepoch') as started
FROM pipeline_metrics
WHERE status = 'failed'
ORDER BY id DESC LIMIT 20;"
```

### Real-time speed ratio (audio processed per second of wall clock)

```bash
sqlite3 "$MDB" ".headers on" ".mode column" "
SELECT pass_name,
       ROUND(AVG(audio_duration_sec / (duration_ms / 1000.0)), 1) as avg_realtime_ratio
FROM pipeline_metrics
WHERE status = 'success' AND audio_duration_sec IS NOT NULL AND duration_ms > 0
GROUP BY pass_name;"
```

---

## Safety notes

- **Do not write to the DB while the app is running.** External writes can corrupt in-flight WAL transactions.
- The metrics DB grows unboundedly — clear it with:

```bash
sqlite3 "$MDB" "DELETE FROM pipeline_metrics; DELETE FROM system_events;"
```

From robertolupi/deep-cuts, AGPL-3.0.

More from robertolupi/deep-cuts

Signals

Stars
7
Forks
1
Open issues
0
Last commit (this folder)
Jun 4, 2026 (4 months ago)
Last release
Jun 8, 2026 (4 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
AGPL-3.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from robertolupi

Cite this page

query-metrics-db skill. Agent Mart. https://agentmart.dev/skills/robertolupi-query-metrics-db (last updated 2026-10-24)