Skip to main content

blq - Build Log Query

BLQ (pronounced "bleak") is a CLI tool that turns build output into a queryable database. blq parses 100+ log formats via duck_hunt into structured events, stores run history with git context, and provides an MCP server for AI agent integration.

Why blq?

Your build fails. You scroll through 500 lines of output looking for the error. blq solves this:

blq run build
# build:3 | exit=1 | 12 errors, 35 warnings

blq errors
# ref       severity  file           line  message
# build:3:1 error     src/parser.c   142   expected ';' before '}'
# build:3:2 error     src/parser.c   156   'node' undeclared

blq inspect build:3:1
# Shows error with source context

Key benefits:

  • Structured events — Errors with file:line locations, not raw text
  • Run history — Every build stored with git commit, branch, environment
  • Comparisonblq diff 4 5 shows what changed between runs
  • AI agent tools — MCP server for structured access without log parsing

Installation

pip install blq-cli

Quick Start

cd your-project
blq init --detect                    # Auto-detect build commands

blq run build                        # Run and capture
blq errors                           # See what broke
blq inspect build:3:1                # Drill into specific error
blq diff 4 5                         # Compare runs

Register commands manually if needed:

blq commands register build "make -j8"
blq commands register test "pytest -v"

AI Agent Integration (MCP)

blq mcp install                      # Creates .mcp.json

Agents can then use tools like run, events, inspect, diff to work with structured results instead of parsing raw output. See the MCP Guide.

Commands

Command Description
blq run <cmd> Run registered command, capture output
blq errors Recent errors
blq inspect <ref> Event details with source context
blq info <ref> Run details
blq history Run history
blq diff <r1> <r2> Compare runs
blq ci check Check for regressions vs baseline

Event References

Every error gets a reference like build:3:1:

  • build — command name
  • 3 — run number
  • 1 — event within run

Use refs to drill down: blq inspect build:3:1, blq info build:3

Features

Feature Description
100+ formats GCC, Clang, pytest, mypy, ESLint, etc. (see duck_hunt
Run history Every run with git commit, branch, environment
Format detection Auto-detects format at registration time
CI integration blq ci check, blq ci comment for PR feedback
MCP server AI agents query errors without parsing logs
Python API Programmatic access via LogStore, LogQuery

Documentation

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

blq_cli-1.2.0.tar.gz (735.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

blq_cli-1.2.0-py3-none-any.whl (265.5 kB view details)

Uploaded Python 3

File details

Details for the file blq_cli-1.2.0.tar.gz.

File metadata

  • Download URL: blq_cli-1.2.0.tar.gz
  • Upload date:
  • Size: 735.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for blq_cli-1.2.0.tar.gz
Algorithm Hash digest
SHA256 afc71e70a41a211e754ff3cce053a5b4173d84205df06e4345eafe30a7be6d3b
MD5 30fc98a850408a49a55d24a2e3031d06
BLAKE2b-256 dc18f56ea8ef1456fb7c66bedec6c25d86c7edf8d19c14a38d6c0a2eef04537a

See more details on using hashes here.

Provenance

The following attestation bundles were made for blq_cli-1.2.0.tar.gz:

Publisher: publish.yml on teaguesterling/blq-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file blq_cli-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: blq_cli-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 265.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for blq_cli-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6e925d2dbf8a080c95fd70e63e662e333db922b3c7c9f83a4ce3d72e805f62fb
MD5 ccea13fd1c673d26d7761870b0ce60d4
BLAKE2b-256 b845569ed5262fcea78cd7777cd9d27098f8f5606dfadb30acab2ed38d73775c

See more details on using hashes here.

Provenance

The following attestation bundles were made for blq_cli-1.2.0-py3-none-any.whl:

Publisher: publish.yml on teaguesterling/blq-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

1.2.2

2 files

1.2.1

2 files

This release

1.2.0 This release

2 files

1.1.0

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

0.12.0

2 files

0.11.2

2 files

0.11.1

2 files

0.11.0

2 files

0.10.2

2 files

0.10.1

2 files

0.10.0

2 files

0.9.23

2 files

0.9.22

2 files

0.9.21

2 files

0.9.20

2 files

0.9.19

2 files

0.9.18

2 files

0.9.17

2 files

0.9.16

2 files

0.9.15

2 files

0.9.14

2 files

0.9.13

2 files

0.9.12

2 files

0.9.11

2 files

0.9.4

2 files

0.9.3

2 files

0.9.2

2 files

0.7.0

2 files

0.6.2

2 files

0.6.1

2 files

0.6.0

2 files

0.5.2

2 files

0.5.1

2 files

0.5.0

2 files

0.4.0

2 files

0.3.0

2 files

0.2.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page