databricks-logs-reader CLAUDE.md

databricks-logs-reader CLAUDE.md is an instructions file for coding agents from zencity/databricks-logs-reader. It costs 355 tokens per session, scanned A, original, MIT.

Project instructions for a command-line tool that fetches and displays Databricks job logs from Unity Catalog Volumes, a storage feature in Databricks. They describe its commands, code structure, configuration, and known issues.

In plain words
What is it for?
Use them when installing dependencies, running tests, linting, formatting, type checking, or modifying the resolver, log discovery, fetching, parsing, filtering, and output code.
Why use it?
They give coding agents the project context needed to change the tool without breaking its log-fetching pipeline, supported file formats, or type checks.

Instructions file

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/zencity/databricks-logs-reader/claude-md
Clone the repo
git clone --depth 1 https://github.com/zencity/databricks-logs-reader

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for databricks-logs-reader CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/zencity/databricks-logs-reader/claude-md.svg)](https://agentmods.dev/instructions/zencity/databricks-logs-reader/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/zencity/databricks-logs-reader/claude-md"><img src="https://agentmods.dev/badge/instructions/zencity/databricks-logs-reader/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 355 This file is loaded in full into every session.
When invoked 355 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00355 $0.00355
Opus 5 $0.00178 $0.00178
Sonnet 5 $0.00071 $0.00071
Haiku 4.5 $0.00036 $0.00036

Measured 4d ago against content hash be5792dcec19, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

databricks-logs-reader CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 30 lines

What it actually says

dbr-logs

CLI tool for fetching and displaying Databricks job logs from Unity Catalog Volumes.

Commands

uv sync --dev                             # Install dependencies
uv run python -m pytest                   # Run tests (74 tests)
uv run ruff check src/ tests/             # Lint
uv run ruff format --check src/ tests/    # Format check (add --fix to auto-format)
uv run python -m mypy src/                # Type check

Architecture

Pipeline: cli.py -> resolver.py -> discovery.py -> fetcher.py -> parser.py -> merger.py -> noise.py -> filters.py -> formatter.py

  • databricks_client.py - SOLE file importing databricks.sdk. All other modules use the adapter.
  • models.py - Data models with StrEnum types (SourceType, Stream) and logging level ints
  • config.py - Profile/config management via ~/.config/dbr-logs/config.toml

Gotchas

  • src layout: Package lives in src/dbr_logs/ — IDEs may need src/ marked as source root
  • databricks-sdk has incomplete type stubs — databricks_client.py has ignore_errors = true in mypy config
  • Driver rotated log files are plain text; executor rotated files are .gz
  • Level values are logging.ERROR/logging.WARNING ints, not strings
  • All CI must pass: ruff check + ruff format --check + mypy strict + pytest
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 30 lines · 355 tokens per session scan A be5792dcec19

Subscribe to this mod's changes

databricks-logs-reader CLAUDE.md is an instructions file published in the GitHub repository zencity/databricks-logs-reader (2 stars, last pushed 2mo ago), licensed MIT. It adds 355 tokens to every session, about $0.0018 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories

travel-plan-viz CLAUDE.md

Claude Code instructions for zexuanw958-svg/travel-plan-viz, covering claude.md, 这是什么, 架构红线, 测试 and 数据采集约束(写在 references/research-guide.md,改动要同步).

zexuanw958-svg/travel-plan-viz · 2,159 tokens

majia-guanyuan AGENTS.md

AGENTS.md instructions for maojiebc/majia-guanyuan, covering agents.md — majia-guanyuan, what this repo is, required reading order for any task, tool-specific entry points and hard rules (do not violate).

maojiebc/majia-guanyuan · 2,002 tokens

codemap AGENTS.md

Instructions for beadnall/codemap, covering codemap, if you are claude, if you are grok build, if you are another agent and the short version.

beadnall/codemap · 747 tokens

codemap copilot-instructions.md

Instructions for beadnall/codemap: This repository holds a skill for turning a codebase into an explorable isometric diagram. The full instructions are in SKILL.md — read that file and follow it when asked to map, diagram or visually explain how a system fits together.

beadnall/codemap · 325 tokens

cinematic-scroll-skill AGENTS.md

Instructions for MustBeSimo/cinematic-scroll-skill, covering agents.md, what it is, when to use it, canonical contract and trigger usage.

MustBeSimo/cinematic-scroll-skill · 512 tokens

garmin-ai-coach AGENTS.md

AGENTS.md instructions for MECoban/garmin-ai-coach, covering agents.md — for ai agents working with this repo, use this when, the one thing that matters: authentication, where to look and boundaries.

MECoban/garmin-ai-coach · 466 tokens