logs

logs is a command for Claude Code from gotempsh/temps. It costs 0 tokens per session (3,003 once invoked), scanned A, original, Apache-2.0.

A command-line tool for searching and measuring collected application logs across projects and databases. Logs are records of events produced by software while it runs.

In plain words
What is it for?
It searches logs, resumes or follows result pages, counts lines over time, groups results by fields, and shows available log attributes and capabilities.
Why use it?
It helps you find relevant log lines and summarize activity without manually opening each project's logs.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

Good fit It searches logs, resumes or follows result pages, counts lines over time, groups results by fields, and shows available log attributes and capabilities.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/gotempsh/temps/logs
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.

Clone the repo
git clone --depth 1 https://github.com/gotempsh/temps

Made for: Claude Code.

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 logs

README.md
[![agentmods](https://agentmods.dev/badge/commands/gotempsh/temps/logs/github.svg)](https://agentmods.dev/commands/gotempsh/temps/logs)
Your own site
<a href="https://agentmods.dev/commands/gotempsh/temps/logs"><img src="https://agentmods.dev/badge/commands/gotempsh/temps/logs/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for logs

Your own site · 80×15
<a href="https://agentmods.dev/commands/gotempsh/temps/logs"><img src="https://agentmods.dev/badge/commands/gotempsh/temps/logs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,003 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00000 $0.03003
Opus 5.5 $0.00000 $0.01201
Sonnet 5.5 $0.00000 $0.00601
Haiku 4.5 $0.00000 $0.00300

Measured 22d ago against content hash a25e89bc2b90, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

logs 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 22d 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.

skills/temps/references/commands/logs.md · 168 lines

How it starts

The opening of the file, as written. The whole thing — 168 lines — stays where its author put it; the contents beside it link to each section on GitHub.

logs command reference

Apply the CLI runtime and safety contract before executing a command. Runtime --help is authoritative.

logs (alias: glogs)

Search collected logs across every project and database you can access

Subcommands:

  • search - Search log lines across projects (newest first)
  • facets - Distinct values and counts per field for the same filter scope
  • attributes - Attribute keys observed in the window, most common first (requires the ClickHouse line index)
  • histogram - Line counts bucketed over time, optionally split by a label or attribute (requires the ClickHouse line index)
  • aggregate - Group-by aggregation over lines (requires the ClickHouse line index)
  • capabilities - Whether container logs are being collected, and whether attribute facets, histograms and aggregates are available

logs search

Search log lines across projects (newest first)

Options:

Flag Description Default Required
--limit <n> Lines per request (default: 200, max: 1000) - No
--cursor <token> Resume from a previous next_cursor - No
--all Follow next_cursor automatically until the results run out (or --max-pages is reached, default 20 pages) - No
--max-pages <n> Page ceiling for --all (default: 20) - No
--since <duration> Relative window ending now, e.g. 30m, 6h, 7d (default: 1h) - No
--start-time <iso> Window start (ISO 8601); overrides --since - No
--end-time <iso> Window end (ISO 8601); defaults to now - No
--source <kind> collected (default), application, or service - No
`--project <id slug name>` Restrict to a project, repeatable
`--external-service <id name>` Restrict to a managed database/service, repeatable ``
--scope <kind:id> Explicit resource identity, e.g. application:12, repeatable `` No
--level <level> TRACE|DEBUG|INFO|WARN|ERROR, repeatable `` No
--env <name> Environment, repeatable `` No
--service <name> Container service label (web, worker, …), repeatable `` No
--container <id> Container ID, repeatable `` No
--node <id> Worker node ID, repeatable `` No
--deploy <id> Deployment ID - No
--text <substring> Case-insensitive message substring match - No
--attr <pred> Attribute predicate, repeatable: =, !=, ^=, >, <, or ? for "exists" (requires the ClickHouse line index) `` No
--json Output in JSON format - No

Read the full file on GitHub · 168 lines

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. 22d ago Changed a25e89bc2b90
  2. 26d ago First seen · 168 lines · 0 tokens per session scan A d6c80ef0eba6

Subscribe to this mod's changes

logs is a command published in the GitHub repository gotempsh/temps (848 stars, last pushed today), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 3,003 tokens. 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-09-22.