operations
Inspect bounded local Linux memory, harness health, capacity, usage, diagnostics, and retained-session metadata without expanding family authority.
Skill by clankerwrangler
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/clankerwrangler-operations
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/operations
What's inside
- Skill name
operations- Description
- Inspect bounded local Linux memory, harness health, capacity, usage, diagnostics, and retained-session metadata without expanding family authority. operations.events() returns at most 500 newest lifecycle events.
- License
- MIT
- Instructions
- 30 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (4)
- SKILL.md
- pyproject.toml
- __init__.py · src/harness_operations/
- _memory.py · src/harness_operations/
SKILL.md (first lines)
# Harness Operations
Use `operations.status()` for a bounded supervisor summary: protocol/schema versions, canonical artifact locations, child capacity `{resident, starting, queued, maxResident, maxConcurrentStarts}`, aggregate queue/lifecycle counts, model-reported usage, diagnostics, and sanitized session metadata. The host handler forwards those five capacity fields from supervisor `get_status` rather than dropping them.
Use `operations.memory()` for an on-demand, read-only local Linux/cgroup v2 memory sample. It uses Python's standard library, reads no process arguments or environments, and makes no supervisor request. It accepts no arguments and returns a `SkillResult` with these fixed fields:
- `host`: `/proc/meminfo` total, `available_bytes` (`MemAvailable`), swap total/free, and host memory PSI.
- `cgroup`: the current cgroup's raw `anon_bytes`, `file_bytes`, `inactive_file_bytes`, `kernel_bytes`, `shmem_bytes`, `file_dirty_bytes`, `file_writeback_bytes`, swap charge/limit, and `clean_inactive_file_estimate_bytes`. Anonymous memory is the aggregate cgroup charge, not a sum of process RSS.
- `hierarchy`: current cgroup first, then each visible ancestor. Each row has `current_bytes`, `max_bytes`, `high_bytes`, corresponding `*_unlimited` flags, signed `raw_max_headroom_bytes` and `raw_high_headroom_bytes`, memory PSI, and cumulative `memory.events` counters (`low`, `high`, `max`, `oom`, `oom_kill`, `oom_group_kill`). PSI has `some`/`full` rows with `avg10`, `avg60`, `avg300` percentages and `total_us`.
- `estimated_available_bytes`: estimated RAM headroom, bounded by host `MemAvailable` and every visible `memory.max` ceiling after cache credit.
- `estimated_before_high_bytes`: the same estimate additionally bounded by visible `memory.high` thresholds. High is a reclaim/throttling threshold, not a hard RAM ceiling.
- `schema_version`, `sampled_unix_ns`, `duration_ns`, `scope`, and `hierarchy_complete` describe the sample.
`memory.max - memory.current` is raw headroom, not available RAM. The clean inactive-file estimate is `max(0, min(file, inactive_file) - shmem - file_dirty - file_writeback)`. Subtracting all three contaminants can undercount clean cache because they can overlap. It excludes active file cache, anonymous memory, swap, and reusable application heap pools. Only the current cgroup's cache receives credit; sibling cache does not.
For each finite ancestor ceiling, estimated headroom is `max(0, ceiling - current + min(clean_estimate, current))`. The result is the minimum of these quantities and host `MemAvailable`. Over-limit debt is subtracted before cache credit. Reclaim is an estimate, not a promise of immediately allocatable RAM; retain existing caller reserves and pressure checks. Swap is reported separately and never added to free RAM.
Numeric fields are `None` when missing, malformed, unreadable, or outside the collector's bounds. A literal `max` limit has a `None` byte value and `*_unlimited=True`; an unknown limit has both fields `None`. Required unknown host/cache/ceiling inputs make the corresponding estimate `None`. Missing PSI or event counters remain `None`, not zero, even if arithmetic headroom can be estimated.
The collector resolves `/proc/self/cgroup` against cgroup v2 mounts in `/proc/self/mountinfo` and walks at most 32 visible levels. `scope` is `visible_cgroup_v2_hierarchy`; cgroup namespaces and mounted subtrees can hide outer limits. `hierarchy_complete=True` means that the visible mount root was reached and placement metadata stayed unchanged, not that outer limits are known. Truncated, unresolved, or changed placement makes both estimates unavailable. Reads are bounded to 512 KiB total, with per-file limits of 128 KiB for mount metadata, 16 KiB for memory stats/meminfo, 4 KiB for membership/PSI/events, and 128 bytes for scalar files. Samples are sequential observations, not atomic reservations.
Use `operations.diagnose()` for deterministic read-only invariant checks. It reports diagnosed inconsistencies but performs no generic repair.
Use `operations.usage(window_minutes=60)` for sanitized model-reported usage recorded in a recent inclusive time window. The window is fixed to 1 through 10,080 minutes (seven days). Results contain only window boundaries, aggregate and per-model entry/session counts, token categories, and model-estimated cost; per-model output is capped at 64 models and reports truncation. Numeric totals are finite and saturate at `9,007,199,254,740,991`; every aggregate/model row reports the fixed safe maximum and per-field saturation booleans under `precision`. Unsaturated count/token totals are exact, while estimated cost retains SQLite REAL arithmetic. This is a direct windowed aggregate, unlike the lifetime-only usage in `status()`.
Use `operations.events(limit=100)` for the newest bounded structured lifecycle events. `limit` is an integer from 1 through 500 (default 100); the result is truncated when the log is larger than that bound. Events carry correlation IDs and states, never prompts, message bodies, credentials, ownership tokens, or process environments. The daemon owns one size-rotated JSONL log plus its single previous segment.
This skill does not expose credentials, prompts, message bodies, ownership tokens, process environment, unrestricted SQL, or a new messaging route. Lifecycle mutations remain explicit `rlm.stop_subagent()`, `rlm.revive_subagent()`, and `rlm.delete_subagent()` operations on direct children.From clankerwrangler/persistent-harness, MIT.
More from clankerwrangler/persistent-harness
- 0.565score
background
clankerwrangler
Launch and track detached OS processes that outlive the current turn, notifying the owning agent when they finish.
SkillAFreshness: AClaude Code +9 - 0.561score
agent-message
clankerwrangler
Inspect the permitted family roster, send durable direct family messages, or create and resolve root-owned human attention requests.
SkillAFreshness: AClaude Code +9 - 0.558score
session-history
clankerwrangler
Explicitly search, list, and open bounded excerpts from canonical persistent-harness session transcripts.
SkillAFreshness: AClaude Code +9 - 0.558score
files
clankerwrangler
Bounded filesystem reading, writing, exact editing, search, discovery, and listing.
SkillAFreshness: AClaude Code +9 - 0.558score
clm
clankerwrangler
Create, list, resolve, and recall branch-local context annotations through the optional live-context extension.
SkillAFreshness: AClaude Code +9 - 0.521score
rlm
clankerwrangler
Spawn and manage retained asynchronous children with separate transcripts and Python namespaces, optionally forking read-only conversation context.
SkillBFreshness: BClaude Code +9 - 0.518score
cron
clankerwrangler
Create and manage durable scheduled agent jobs through the persistent harness.
SkillBFreshness: BClaude Code +9 - 0.516score
shell
clankerwrangler
Execute bounded shell commands with cwd, timeout at most 600s, cancellation, streamed output, and a dict-like SkillResult (result["stdout"]/result["exitCode"]).
SkillBFreshness: BClaude Code +9 - 0.513score
kernel
clankerwrangler
Inspect or restart this session's persistent IPython kernel through its canonical lifecycle.
SkillBFreshness: BClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Oct 20, 2026 (10 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from clankerwrangler
- 0.565score
background
clankerwrangler
Launch and track detached OS processes that outlive the current turn, notifying the owning agent when they finish.
SkillAFreshness: AClaude Code +9 - 0.561score
agent-message
clankerwrangler
Inspect the permitted family roster, send durable direct family messages, or create and resolve root-owned human attention requests.
SkillAFreshness: AClaude Code +9 - 0.558score
session-history
clankerwrangler
Explicitly search, list, and open bounded excerpts from canonical persistent-harness session transcripts.
SkillAFreshness: AClaude Code +9 - 0.558score
files
clankerwrangler
Bounded filesystem reading, writing, exact editing, search, discovery, and listing.
SkillAFreshness: AClaude Code +9 - 0.558score
clm
clankerwrangler
Create, list, resolve, and recall branch-local context annotations through the optional live-context extension.
SkillAFreshness: AClaude Code +9 - 0.521score
rlm
clankerwrangler
Spawn and manage retained asynchronous children with separate transcripts and Python namespaces, optionally forking read-only conversation context.
SkillBFreshness: BClaude Code +9
Cite this page
operations skill. Agent Mart. https://agentmart.dev/skills/clankerwrangler-operations (last updated 2026-10-24)