Monitor Log Agent — Development skill for Claude Code
An example of a read-only Claude Code agent: a Python host prepares context, then Claude Agent SDK runs the agent loop and the host writes an.
How to install Monitor Log Agent
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open ZhouUnhappy/monitor-log-agent and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Monitor Log Agent does
An example of a **read-only** Claude Code agent: a Python host prepares context, then [Claude Agent SDK](https://code.claude.com/docs/en/agent-sdk/overview) runs the agent loop and the host writes an HTML transcript.
Alternatives in Development
- MCP Python SDK — Python SDK for building MCP servers 22.3k ★
- Claude Code SDK Python — The official Python SDK for Claude Code 5.6k ★
- Last30days Skill — Claude Code skill that researches any topic across Reddit + X from the last 30 days, then writes copy-paste-re 4.4k ★
README
monitor-log-agent
[简体中文](README.zh.md)
An example of a **read-only** Claude Code agent: a Python host prepares context, then [Claude Agent SDK](https://code.claude.com/docs/en/agent-sdk/overview) runs the agent loop and the host writes an HTML transcript.
Shape
| Piece | Role |
|---|---|
| Host process | Load .env, sync source, build the prompt, cap tools, render HTML |
| Claude Code CLI | Spawned by the SDK; this is the actual agent |
| Skills repo | Filesystem skills (.claude/skills/). Session cwd points here |
| Source tree | Mounted with add_dirs so the agent can Read / Grep / Glob |
| Custom MCP tool | Read-only live checks (ssh_read: argv list + host allowlist, not a shell string) |
Do not give the model Bash, Edit, or Write. Deny Bash again with a `PreToolUse` hook. `permission_mode="dontAsk"` and `strict_mcp_config=True` so only the MCP servers you pass in are loaded.
Skills live in a sibling repo, not inside the runner. A new investigation type should be a new skill plus source/SSH mapping, not a new agent binary.
Isolation
SDK default `setting_sources` is user + project + local. That loads `~/.claude/settings.json`, whose `env` **overwrites** process environment (including `ANTHROPIC_BASE_URL` / `ANTHROPIC_API_KEY` / `ANTHROPIC_MODEL`).
This project sets `setting_sources=["project"]` so only the skills repo’s `.claude/settings.json` is loaded.
The host calls `load_dotenv` on this repo’s `.env` and copies `ANTHROPIC_*` into `ClaudeAgentOptions.env`. You do not need `uv run --env-file`. `load_dotenv` does not override variables already in the shell.
Limits
20 turns, `$5` `max_budget_usd` (SDK `total_cost_usd`; may not match a third-party bill).
Requirements
- Python 3.11+ and uv
- Claude Code CLI on
PATH
Run
uv run monitor-log-agent
Stdout prints `cost=$... subtype=...`. Report: `out/latest.html`.
Related Skills
Ho
End-of-session handoff. Runs a pre-flight checklist, then writes a structured entry to the relevant SESSION_LO
MCP Edit
tilth_write replaces the host Edit and Write tools. Its full usage — hash/overwrite/append modes, hash anchors
Open Agent SDK Python
Open-source Agent SDK for Python. Runs the full agent loop in-process — no CLI required.
Claude Code SDK TS
Configure models, enable tools, stream events, then fetch text, JSON, run details or token stats in one call v
Gemini Headless Upgrade
Gemini-directed autonomous headless-upgrade loop, merged with the full 13-section orchestrator framework. gemi
Refresh Context
Re-read CONTEXT.md, SESSION-LOG.md, and the current phase checklist mid-session — for picking up changes after
Related Agents
Instrumentation Gen
Generates language-specific OpenTelemetry SDK bootstrap files (Node.js / Python) from the context cache. Dispa
Cypher Author
Writes read-only Cypher for natural-language questions given the live graph schema and few-shot examples; also
Container Monitoring
Monitor Kubernetes and containerized environments including Docker, pods, deployments, and cluster health metr