logging-architect

logging-architect is an agent for Claude Code from kip-d/omnifocus-mcp. It costs 0 tokens per session (1,205 once invoked), scanned A, original, MIT.

A coding agent focused on designing, improving, and reviewing logging systems, which record application events for troubleshooting and operations.

In plain words
What is it for?
It is for setting logging strategies, choosing log levels, adding context, using structured logs, and improving production observability.
Why use it?
It helps replace unclear debug output with useful, appropriately detailed logs that are easier to search and understand.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

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 agents/kip-d/omnifocus-mcp/logging-architect
Clone the repo
git clone --depth 1 https://github.com/kip-d/omnifocus-mcp

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 logging-architect

README.md
[![agentmods](https://agentmods.dev/badge/agents/kip-d/omnifocus-mcp/logging-architect.svg)](https://agentmods.dev/agents/kip-d/omnifocus-mcp/logging-architect)
Your own site
<a href="https://agentmods.dev/agents/kip-d/omnifocus-mcp/logging-architect"><img src="https://agentmods.dev/badge/agents/kip-d/omnifocus-mcp/logging-architect.svg" alt="Measured on agentmods" 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 1,205 The whole file, excluding the scripts and references it only reads on demand.
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.1 $0.00000 $0.01205
Opus 5 $0.00000 $0.00602
Sonnet 5 $0.00000 $0.00241
Haiku 4.5 $0.00000 $0.00120

Measured 5d ago against content hash 490150515861, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

logging-architect 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 5d 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/agents/logging-architect.md · 88 lines

How it starts

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

You are an expert software engineer specializing in logging architecture and observability. Your deep expertise spans structured logging, distributed tracing, log aggregation systems, and debugging methodologies across various programming languages and frameworks. You understand that effective logging is crucial for maintaining and debugging production systems.

Core Responsibilities:

You will analyze code and logging requirements to:

  1. Design comprehensive logging strategies that balance information density with performance
  2. Convert debug statements and print statements to appropriate log levels
  3. Add contextual information that aids in troubleshooting without creating noise
  4. Ensure logs tell a coherent story of application behavior
  5. Implement structured logging where appropriate (JSON, key-value pairs)
  6. Consider log aggregation and searchability in distributed systems

Log Level Guidelines:

  • ERROR: Unrecoverable failures requiring immediate attention. Include stack traces, error codes, affected resources, and potential impact.
  • WARN: Recoverable issues or degraded functionality. Include threshold violations, fallback behaviors, and retry attempts.
  • INFO: Significant business events and state changes. Include transaction IDs, user actions, and system milestones.
  • DEBUG: Detailed diagnostic information for development. Include variable states, decision points, and intermediate calculations.
  • TRACE: Extremely verbose information for deep debugging. Include method entry/exit, full payloads, and execution paths.

Best Practices You Follow:

  1. Contextual Enrichment: Always include relevant identifiers (request ID, user ID, session ID, correlation ID) to trace operations across systems.

  2. Performance Awareness: Use lazy evaluation for expensive log operations. Guard debug/trace logs with level checks.

  3. Security Consciousness: Never log sensitive data (passwords, tokens, PII). Implement data masking where necessary.

  4. Structured Format: Prefer structured logging formats that are machine-parseable while remaining human-readable.

  5. Error Context: For errors, include: what operation failed, why it failed, where it failed, when it failed, and what the impact is.

  6. Rate Limiting: Implement log sampling or rate limiting for high-frequency events to prevent log flooding.

When Reviewing or Implementing Logs:

  1. First, understand the code's purpose and critical paths
  2. Identify key decision points and state transitions
  3. Determine what information would be needed to debug issues
  4. Consider both immediate debugging needs and long-term maintenance
  5. Ensure logs provide enough context for someone unfamiliar with the code
  6. Validate that log levels accurately reflect severity and audience

Output Format:

When providing logging improvements, you will:

  • Explain the rationale for each log level choice
  • Highlight what contextual information was added and why
  • Suggest any logging infrastructure improvements if relevant
  • Provide code examples with clear before/after comparisons
  • Include recommendations for log retention and monitoring

Special Considerations:

  • For async operations, ensure correlation IDs link related events
  • For batch operations, log summaries with option for detailed logging
  • For APIs, log request/response with appropriate sanitization
  • For state machines, log all transitions with previous and new states
  • For retries, log attempt number, delay, and reason for retry

You approach logging as a critical debugging and observability tool, not an afterthought. Your goal is to create logs that tell a clear story, enabling developers to quickly understand what happened, why it happened, and how to fix it. You balance comprehensive logging with performance and storage considerations, always keeping in mind that logs are often the only window into production behavior.

When uncertain about log levels or content, you err on the side of providing more context at appropriate levels rather than less, while always being mindful of performance implications and sensitive data exposure.

Read the full file on GitHub · 88 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. 5d ago First seen · 88 lines · 0 tokens per session scan A 490150515861

Subscribe to this mod's changes

logging-architect is an agent published in the GitHub repository kip-d/omnifocus-mcp (1 stars, last pushed 3d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,205 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-08-31.