Logfire Instrumentation
basicmachines-co/basic-memory
Adds Pydantic Logfire tracing, logging and metrics to Python, JavaScript or TypeScript and Rust projects, with the correct setup order and library extras.
Give the human an off switch and a cost meter for the coding agents on this machine, using ClawMetry.
$ npx skills add vivekchand/clawmetry --skill agent-kill-switch -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install vivekchand/clawmetry agent-kill-switch --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/vivekchand/clawmetry.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/agent-kill-switch .claude/skills/agent-kill-switch && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "agent-kill-switch" agent skill from https://github.com/vivekchand/clawmetry/tree/main/skills/agent-kill-switch into .claude/skills/agent-kill-switch/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "agent-kill-switch", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/vivekchand/clawmetry/tree/main/skills/agent-kill-switchType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add vivekchand/clawmetry --skill agent-kill-switch -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install vivekchand/clawmetry agent-kill-switch --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/vivekchand/clawmetry.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/agent-kill-switch .agents/skills/agent-kill-switch && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "agent-kill-switch" agent skill from https://github.com/vivekchand/clawmetry/tree/main/skills/agent-kill-switch into .agents/skills/agent-kill-switch/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "agent-kill-switch", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add vivekchand/clawmetry --skill agent-kill-switch -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install vivekchand/clawmetry agent-kill-switch --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/vivekchand/clawmetry.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/agent-kill-switch .cursor/skills/agent-kill-switch && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "agent-kill-switch" agent skill from https://github.com/vivekchand/clawmetry/tree/main/skills/agent-kill-switch into .cursor/skills/agent-kill-switch/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "agent-kill-switch", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/vivekchand/clawmetry.git --path skills/agent-kill-switch--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add vivekchand/clawmetry --skill agent-kill-switch -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install vivekchand/clawmetry agent-kill-switch --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/vivekchand/clawmetry.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/agent-kill-switch .gemini/skills/agent-kill-switch && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "agent-kill-switch" agent skill from https://github.com/vivekchand/clawmetry/tree/main/skills/agent-kill-switch into .gemini/skills/agent-kill-switch/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "agent-kill-switch", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install vivekchand/clawmetry agent-kill-switchInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add vivekchand/clawmetry --skill agent-kill-switch -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/vivekchand/clawmetry.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/agent-kill-switch .github/skills/agent-kill-switch && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "agent-kill-switch" agent skill from https://github.com/vivekchand/clawmetry/tree/main/skills/agent-kill-switch into .github/skills/agent-kill-switch/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "agent-kill-switch", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add vivekchand/clawmetry --skill agent-kill-switch -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install vivekchand/clawmetry agent-kill-switch --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/vivekchand/clawmetry.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/agent-kill-switch .opencode/skills/agent-kill-switch && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "agent-kill-switch" agent skill from https://github.com/vivekchand/clawmetry/tree/main/skills/agent-kill-switch into .opencode/skills/agent-kill-switch/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "agent-kill-switch", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
agent-kill-switchGive the human an off switch and a cost meter for the coding agents on this machine, using ClawMetry.
Agent Kill Switch is an agent skill from vivekchand/clawmetry. Give the human an off switch and a cost meter for the coding agents on this machine, using ClawMetry. Use when the user asks to stop or kill a runaway agent, see what an agent is doing or spending, cap agent spend, gate risky tool calls behind approval, or "set up a kill switch" for Claude Code, Codex, Cursor, Gemini CLI, OpenClaw, Goose, Aider and similar runtimes.
Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in DevOps & Cloud, covering Observability and LLM cost and token optimization. It works with OpenTelemetry and Python. The repository describes itself as: See your agent think. Zero-config observability & governance for 30 AI agent runtimes: Claude Code, OpenAI Codex, Hermes, OpenClaw & 26 more. Live token costs, sessions, tool… The licence is MIT.
5 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 795d6fa. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
curlpipFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use curl and pip, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Agent Kill Switch loads about 1.1k tokens when it runs. Until then it costs about 97 tokens; SKILL.md has 457 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from vivekchand/clawmetry at commit 795d6fa, republished under its MIT licence (© vivekchand). 457 words, ~1,091 tokens.
.claude/skills/agent-kill-switch/SKILL.md (or your agent's skills folder).An agent that loops, re-reads the same files, or shells out to something it should not is expensive by the minute. This skill wires up ClawMetry, a local, read-only dashboard that reads the session logs the runtimes already write on disk, and uses it for three things: see what is running, stop one session, and hold risky tool calls until a human says yes.
Nothing here modifies the agent. Observation is read-only. Every control below is opt-in and stated as what it does, so tell the user exactly which ones you enabled.
pip install clawmetry && clawmetryThe dashboard is at http://localhost:8900. It auto-detects the runtimes on
the machine (Claude Code, Codex, Cursor, Gemini CLI, OpenClaw, Goose, Aider,
Cline, OpenCode and others); no config. Confirm it is up:
curl -s http://localhost:8900/api/overview | head -c 400If the port is taken: clawmetry --port 8901 and use that port below.
curl -s http://localhost:8900/api/sessions # live and recent sessions, ids look like claude_code:<uuid>
curl -s http://localhost:8900/api/usage # tokens and cache-aware cost per model and per sessionTell the user in plain words: which sessions are active, which one is spending the most, and whether any is showing loop signs. The dashboard's Sessions tab shows the full transcript and every tool call for a session.
curl -s -X POST http://localhost:8900/api/sessions/<session_id>/stop200 with "ok": true and a pid: the session's process received SIGTERM.409 with "ok": false: ClawMetry could not identify a process for that
session, for example a Cursor editor conversation, which shares the IDE
process. Say so instead of claiming it was stopped.Never call this on your own initiative. Only when the user asks to stop a session, and confirm which session id first.
clawmetry hooks install # adds a PreToolUse hook to ~/.claude/settings.json, idempotent
clawmetry hooks statusThen one policy gates everything ClawMetry scores high or critical
(recursive deletes, force pushes, sudo, credential files, reverse shells,
cloud metadata endpoints):
# ~/.clawmetry/policies.yml
- name: 'Require approval for high-risk actions'
min_risk: 'high'
action: 'require_approval'
timeout: 604800
on_timeout: 'deny'A deny blocks that one call; the agent keeps its session. Approvals can be
answered from the Approvals tab or, with cloud sync, from a phone push.
Undo with clawmetry hooks uninstall (removes only ClawMetry's entries).
clawmetry proxy start --daily-budget 10
export ANTHROPIC_BASE_URL=http://localhost:4100/v1 # or OPENAI_BASE_URL for OpenAI-backed agentsWhen the cap is hit the proxy returns BUDGET_EXCEEDED instead of forwarding
the request. It also detects repeated near-identical requests (loops). This
only covers agents whose traffic you route through it; say that.
409 is the honest answer.clawmetry connect, which
enables end-to-end encrypted cloud sync.clawmetry hooks uninstall
clawmetry proxy stop
pip uninstall clawmetry© vivekchand, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/agent-kill-switch of vivekchand/clawmetry.
Open the folder on GitHubat commit 795d6fa
Agent Kill Switch next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Agent Kill Switch this skillvivekchand/clawmetry | 424 | — | ~1.1k | Automated safety check: Pass | MIT | |
| Logfire Instrumentationbasicmachines-co/basic-memory | 4.1k | — | ~2.3k | Automated safety check: Pass | AGPL-3.0 | |
| Azure Monitor Opentelemetry Exporter Pymicrosoft/skills | 3.1k | 6 repos | ~2.3k | Automated safety check: Pass | MIT | |
| Azure Monitor Opentelemetry Pymicrosoft/skills | 3.1k | 6 repos | ~2k | Automated safety check: Pass | MIT | |
| Enforcing Nophi Loggingmaziyarpanahi/openmed | 5.5k | — | ~1.9k | Automated safety check: Pass | Apache-2.0 | |
| App Observabilitygrafana/skills | 278 | — | ~1.8k | Automated safety check: Pass | Apache-2.0 |
basicmachines-co/basic-memory
Adds Pydantic Logfire tracing, logging and metrics to Python, JavaScript or TypeScript and Rust projects, with the correct setup order and library extras.
microsoft/skills
Azure Monitor OpenTelemetry Exporter for Python. An agent skill from microsoft/skills.
microsoft/skills
Azure Monitor OpenTelemetry Distro for Python. An agent skill from microsoft/skills.
maziyarpanahi/openmed
Add a logging and telemetry guard that scrubs or blocks PHI from logs, traces, and error reports around an OpenMed deployment.
grafana/skills
Get RED metrics + service maps + frontend RUM + AI/LLM monitoring out of Grafana Cloud — Application Observability (tracesspanmetrics from OTel traces, p50/p95/p99 latency, exemplar-to-trace…
ancoleman/ai-design-components
Monitoring, logging, and tracing implementation using OpenTelemetry as the unified standard.
vivekchand/clawmetry
Read your own agent telemetry from ClawMetry (waste, progress, cost) and act on it before finishing a task.
vivekchand/clawmetry
Real-time observability for OpenClaw agents — local dashboard + optional encrypted cloud sync.
Works with
Categories
Give the human an off switch and a cost meter for the coding agents on this machine, using ClawMetry. Agent Kill Switch is an agent skill from vivekchand/clawmetry. Give the human an off switch and a cost meter for the coding agents on this machine, using ClawMetry.
Agent Kill Switch fits situations like: the user asks to stop; kill a runaway agent; see what an agent is doing; cap agent spend.
Run `npx skills add vivekchand/clawmetry --skill agent-kill-switch -a claude-code`. Or copy the skill folder (skills/agent-kill-switch in vivekchand/clawmetry) into .claude/skills/agent-kill-switch in your project. Claude Code loads it when a task matches its description.
Run `npx skills add vivekchand/clawmetry --skill agent-kill-switch -a codex`. Or copy the skill folder (skills/agent-kill-switch in vivekchand/clawmetry) into .agents/skills/agent-kill-switch in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add vivekchand/clawmetry --skill agent-kill-switch -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/agent-kill-switch, .gemini/skills/agent-kill-switch, .github/skills/agent-kill-switch and .opencode/skills/agent-kill-switch in your project.
Going by SKILL.md and its folder, Agent Kill Switch needs the command-line tools its instructions call (curl and pip). Our summary lists: Python 3.
SKILL.md contains no URLs. Its commands use curl and pip, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Agent Kill Switch is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.1k tokens (SKILL.md is roughly 4.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Agent Kill Switch: Logfire Instrumentation (basicmachines-co/basic-memory, 4.1k stars), Azure Monitor Opentelemetry Exporter Py (microsoft/skills, 3.1k stars), Azure Monitor Opentelemetry Py (microsoft/skills, 3.1k stars) and Enforcing Nophi Logging (maziyarpanahi/openmed, 5.5k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
vivekchand (a GitHub user) maintains it in vivekchand/clawmetry, which has 424 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on October 7, 2026.
Source: vivekchand/clawmetry on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.