Skip to main content

tackbox

tackbox logo

publish verify-release pypi

Every failure must report, propagate, or explain itself.

tackbox is a guardrail for developers and coding agents. It catches common local ways failures are hidden by accident, haste, or expediency and requires an explicit outcome: propagate, report, or explain. It is not a whole-program proof or a security boundary.

tackbox's lint contract recognizes direct reporting helpers as an explicit report outcome. Execution policy, control flow, result ownership, and runtime integration remain application decisions.

Coding agents write error handling that looks right and silently isn't: a swallowed exception, a fatal exit with nothing logged, a report with the cause stripped out. tackbox catches it the moment it's written: hooked into the agent's edit loop it flags the finding before the turn ends, and the same rules gate pre-commit and CI - one coverage bar for hand-written and agent-written code.

There are no per-rule disable flags: a local exception stays visible as a reasoned marker at the site and needs an approval (see Exceptions).

resp, err := client.Do(req)
if err != nil {
    return nil // looks handled; the failure just vanished
}
client.go:42: ERC001: err-branch must propagate, capture, or carry
the error into a terminal exit (err=err)

One command brings the whole stack across Go, Python, Java, JS, TS, Svelte, and Markdown - no go install, no npm i, no external opengrep:

uvx tackbox@latest lint .

What it catches

  • Swallowed errors - the catch {} or if err != nil { return nil } that makes a failure vanish. Every path must report, propagate, or carry an explicit // no-report: <reason>.
  • Silent exits - os.Exit, log.Fatal, System.exit, or a local die reached with an unreported error, so the process dies and your error tracker never hears about it.
  • Double reports - capturing an error and re-throwing it, so the same failure hits Sentry/glitchtip twice and drowns the signal.
  • Broken cause chains - a new exception thrown from a catch that drops the original (only its message survives), erasing the stack you'd actually debug from.
  • Silently killed tests - the it.skip with no explanation, the failing test reborn as test.todo, the it.only that quietly turns off the rest of the suite. Every skip must state a reason; focused tests are always an error.
  • Unused bindings - unused imports and locals, trailing JS/TS/Svelte arguments, and dead private declarations. Required unused bindings follow the language conventions.

Requirements

tackbox runs through uvx (part of uv) inside a Git checkout. The wheel is hermetic: beyond that, a consumer needs only git on PATH (plus a Go toolchain if the repo has .go files, and a Java 17+ runtime if it has .java files). Rules roll out via @latest - a new safety rule reaches every repo on its next run.

The first run of each engine payload version downloads it once into a per-user store under $XDG_DATA_HOME/tackbox/ (default ~/.local/share/tackbox/); later runs reuse it without downloading again, including later tackbox versions that pin the same payload. To skip the download, point TACKBOX_ENGINES_DIR / TACKBOX_OPENGREP_DIR at an already-unpacked payload. How payloads are pinned and verified: docs/distribution.md.

Wheels cover Linux x86_64/arm64 (manylinux), macOS 15 or newer on arm64, Windows x86_64, and Android arm64 (android_24_arm64_v8a, Termux). Android also needs Termux Python 3.13+ and a system Node.js matching ^20.19.0 || ^22.13.0 || >=24.0.0:

pkg install python uv git nodejs-lts   # plus golang / openjdk-17 for .go / .java

Third-party license texts and dependency inventories ship in the jar under META-INF/third-party and in the wheel under tackbox/third_party/licenses; see the engine notices. PMD acknowledgment: This product includes software developed in part by support from the Defense Advanced Research Project Agency (DARPA).

Wiring into a repo

Call tackbox lint from the repo's dev.py lint, next to the project's own linters:

def lint():
    sh("uvx tackbox@latest lint .")
    sh("uv run ruff check .")   # project-owned, if Python

Pre-commit runs a single language-agnostic hook; dev.py check (= lint + test) decides what to scan:

# .pre-commit-config.yaml in the consumer repo
repos:
  - repo: local
    hooks:
      - id: dev-check
        name: dev.py check
        entry: python3
        args: [dev.py, check]
        language: system
        pass_filenames: false
        always_run: true

tackbox lint --codequality <path> also writes a CodeClimate-format JSON array of every finding to <path> (console output and exit code unchanged). A failed engine scope adds one tackbox-engine-error issue with critical severity. Wire it into GitLab CI as a codequality report:

lint:
  script: uvx tackbox@latest lint . --codequality gl-code-quality.json
  artifacts:
    reports:
      codequality: gl-code-quality.json

Commands

  • tackbox lint [path] - 0 clean, 1 findings, 2 a scope matching no files, an unusable --changed / --since (an unknown ref, or a repo with no commits), or an engine or setup failure. A closed downstream pipe (lint | head) exits 141.
  • tackbox approvals - check the approval manifest against the tree: 0 consistent, 2 inconsistent (uncovered markers, orphaned entries, or unresolvable files), 1 infra.
  • tackbox approvals --draft - print an entry line for every uncovered marker. Not a gate: 0 when the draft is complete, orphans or not; 2 when unresolvable files leave it incomplete; 1 infra.
  • tackbox escapes [--since <rev>] - print the bypass surface as JSON (schema). Not a gate: 0 whenever it runs, entries or not; 1 for an infrastructure failure, such as attributes that cannot be resolved, a bad --since rev, or git older than 2.40 on the --since path.
  • tackbox doctor - verify the install: 0 all checks pass, 1 at least one failed.
  • tackbox hook, tackbox hook-protocol - the agent hook; exit codes in docs/agent-hook.md.

tackbox lint scans the source set - tracked files plus untracked files that are not ignored - under path (default .). --changed narrows it to files that differ from HEAD (staged, unstaged, untracked); --since <ref> to the three-dot diff <ref>...HEAD plus those, so it already includes --changed. path composes with both: tackbox lint src --changed lints only the dirty files under src/. The approvals check ignores the scope: it always covers the whole tree, so a scoped CI lint cannot scope the wall away.

Rules

Covers ERC001-011 (Go, via erclint), JV001-007 and JV009-014 (Java, via javalint), Python exception, reporting, test, and unused-binding rules (via flake8), frontend rules (JS, TS, Svelte, via ESLint), duplication, and Markdown link integrity and declared-charset checks. References: Go, Java, Python, JS / TS / Svelte, Markdown, and the cross-language rules (core policy, duplication, reporter declarations). rules/DECISIONS.md records every rule decision and its rationale.

Exceptions

There are no flags to disable individual rules. To suppress a finding, put a marker with its reason at the site, such as // no-report: <reason> (keywords and forms), and approve it with a line in the approval manifest. The unused-binding lane has no suppression.

Approval manifest

.tackbox/approvals at the repo root holds one line per approved occurrence: an address (file plus named-scope chain) and the exact marker text.

py/app/svc.py#Handler.process: no-report: legacy path, covered upstream
js/src/boot.ts#init.<h4f2a9c1e>: no-report: splash fallback, reported upstream
tools/gen.py: parse-skip: config validated upstream

Approving is adding the line (tackbox approvals --draft prints it, see Commands); in an agent session the edit that adds it draws an approval ask. Address grammar and the check: docs/suppression.md.

Generated and vendored code

A file whose .gitattributes sets linguist-generated, gitlab-generated, or linguist-vendored is excluded from the whole lint:

gen/**       linguist-generated
vendor/**    linguist-vendored
gen/keep.go  linguist-generated=false

Use dir/**, not dir/: gitattributes patterns, unlike gitignore, do not match a trailing-slash directory form. Details: docs/suppression.md.

Escapes inventory

tackbox escapes lists every marker, .tackbox/reporters declaration, notify / quiet call site, and attribute-excluded file for review (schema).

Runtime reporting helpers

Direct reporting helpers ship per language; their shared runtime behavior - lane routing, telemetry dedup, panic grouping, and capture isolation - is specified in docs/report-contracts.md.

Agent hook

The same rules run in a coding agent's edit loop. Before an edit, gated changes (a new approval or reporter line, an exclusion in .gitattributes, an edit of an excluded file, removing the root dev.py) ask for approval; after it, findings on the added lines come back as a tool error. The hook never undoes a write, and shell commands run no approval checks. Contract: docs/agent-hook.md.

Every host needs uvx on PATH: the hook runs tackbox through it. Codex and Oh My Pi also need npm and a Node.js matching >=20.19.0 <22.0.0 || >=22.12.0 <23.0.0 || >=23.2.0 for the adapter. The adapter pins the Python wheel to its own version (uvx tackbox@<version>); if that wheel is not cached yet, the next edit downloads it, so it needs network access then.

Claude Code

tackbox hook reads a Claude Code hook event on stdin and dispatches by hook_event_name (PreToolUse, PostToolUse). Wire it once, globally, in ~/.claude/settings.json:

{
  "hooks": {
    "PreToolUse": [
      {"matcher": "Edit|Write|MultiEdit",
       "hooks": [{"type": "command", "command": "uvx tackbox hook"}]}
    ],
    "PostToolUse": [
      {"matcher": "Edit|Write|MultiEdit|Bash",
       "hooks": [{"type": "command", "command": "uvx tackbox hook", "timeout": 120}]}
    ]
  }
}

uvx tackbox hook runs the cached tackbox (no @latest), so the in-loop hook does not wait for a registry lookup.

Codex

Install the adapter once; tackbox-codex-hook must be on the PATH Codex runs hooks with:

npm install --global tackbox@latest

Then wire tackbox-codex-hook for apply_patch in ~/.codex/hooks.json (snippet). Codex has no ask decision, so an approval-gated edit blocks with the reason; make that change in a host that supports the prompt.

Oh My Pi

omp plugin install tackbox

That is the whole wiring. Approval dialogs, headless sessions, and host limits: docs/agent-hook.md.

Development

Working on tackbox itself - toolchains, the dev.py check gate, releases: CONTRIBUTING.md.

Metadata

Release files for tackbox 0.1.110

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for tackbox 0.1.110
File Actions
tackbox-0.1.110-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for tackbox-0.1.110-py3-none-win_amd64.whl
tackbox-0.1.110-py3-none-manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.28+ x86-64 Details for tackbox-0.1.110-py3-none-manylinux_2_28_x86_64.whl
tackbox-0.1.110-py3-none-manylinux_2_28_aarch64.whl Python 3 none Linux glibc 2.28+ ARM64 Details for tackbox-0.1.110-py3-none-manylinux_2_28_aarch64.whl
tackbox-0.1.110-py3-none-macosx_15_0_arm64.whl Python 3 none macOS 15.0+ ARM64 Details for tackbox-0.1.110-py3-none-macosx_15_0_arm64.whl
tackbox-0.1.110-py3-none-android_24_arm64_v8a.whl Python 3 none Android API level 24+ ARM64 v8a Details for tackbox-0.1.110-py3-none-android_24_arm64_v8a.whl

Total release size: 90.8 MB

Release files / tackbox-0.1.110-py3-none-win_amd64.whl

Download URL tackbox-0.1.110-py3-none-win_amd64.whl
Size 17.4 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
de92ddbb0d082d8746c534df956c77c54f01c92317e0c06d2d18c6d131fca0c3
BLAKE2b-256 checksum
How to use checksums
37896f47e27dc4717539496956bd7da8da5cc4287a4c8f2ce6a56b72e96f7a9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / tackbox-0.1.110-py3-none-manylinux_2_28_x86_64.whl

Download URL tackbox-0.1.110-py3-none-manylinux_2_28_x86_64.whl
Size 17.1 MB
Tags Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
e80f8fccc9168f4e84e16fa3f322d88c7bdbe0ad9bb8e0adbd985413a650a148
BLAKE2b-256 checksum
How to use checksums
c76ac3bfa0f39304050746c740bd31606c9bd0539ee5436256debdc63562c018
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / tackbox-0.1.110-py3-none-manylinux_2_28_aarch64.whl

Download URL tackbox-0.1.110-py3-none-manylinux_2_28_aarch64.whl
Size 15.9 MB
Tags Linux glibc 2.28+ ARM64 Python 3
SHA-256 checksum
How to use checksums
c7ccb9dc87c53a67b93e1255f68d91999dc869a45d2d044ee38c5d3e865f6116
BLAKE2b-256 checksum
How to use checksums
18074d138998cc8a0cb9867f1a7647b73c83767fb09edccb516aece429bb1079
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / tackbox-0.1.110-py3-none-macosx_15_0_arm64.whl

Download URL tackbox-0.1.110-py3-none-macosx_15_0_arm64.whl
Size 16.3 MB
Tags Python 3 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
94f368954e3c42ef1ade983f2194faca9702951c4e0b4879af067c96dc6ba927
BLAKE2b-256 checksum
How to use checksums
663ccbc5e66fae42b2de1208bb90cef9ec9024b69d3d3dd9d242185e4ee1fc86
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / tackbox-0.1.110-py3-none-android_24_arm64_v8a.whl

Download URL tackbox-0.1.110-py3-none-android_24_arm64_v8a.whl
Size 24.0 MB
Tags Android API level 24+ ARM64 v8a Python 3
SHA-256 checksum
How to use checksums
b884244739ece7a544d563eab8a5792a4613fce6162c9da43dc97909644898f4
BLAKE2b-256 checksum
How to use checksums
be55f72fc5d1742203844356f1d91fc30c5c1439bf3904659ca1ddf1bf1dd976
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Security for tackbox 0.1.110

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 5 files in this release have been uploaded with provenance metadata.

Select from 5 files

Attestation for tackbox-0.1.110-py3-none-win_amd64.whl

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.110 This release

5 release files Full provenance

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