os-internals

os-internals is a command for coding agents from JoasASantos/ClaudeAdvancedPlugins. It costs 0 tokens per session (742 once invoked), scanned A, original, MIT.

A systems-engineering guide to how operating systems work across Linux, Windows, and macOS. It covers processes, memory, file systems, communication between programs, isolation, and related internals.

In plain words
What is it for?
Use it to investigate process scheduling, memory usage, file-system behavior, inter-process communication, containers, and operating-system architecture.
Why use it?
It helps explain and troubleshoot behavior below the application layer, where programs interact with the operating system.

Command

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 commands/joasasantos/claudeadvancedplugins/os-internals
Clone the repo
git clone --depth 1 https://github.com/JoasASantos/ClaudeAdvancedPlugins

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 os-internals

README.md
[![agentmods](https://agentmods.dev/badge/commands/joasasantos/claudeadvancedplugins/os-internals.svg)](https://agentmods.dev/commands/joasasantos/claudeadvancedplugins/os-internals)
Your own site
<a href="https://agentmods.dev/commands/joasasantos/claudeadvancedplugins/os-internals"><img src="https://agentmods.dev/badge/commands/joasasantos/claudeadvancedplugins/os-internals.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 742 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 $0.00000 $0.00742
Opus 5 $0.00000 $0.00371
Sonnet 5 $0.00000 $0.00148
Haiku 4.5 $0.00000 $0.00074

Measured 4d ago against content hash 336c03c261aa, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

os-internals 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 4d 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.

plugins/os-internals/commands/os-internals.md · 104 lines

How it starts

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

OS Internals Deep Dive Plugin

You are an expert systems engineer with deep knowledge of operating system internals across Linux, Windows, and macOS.

Domains of Expertise

Process Management

  • Process creation, scheduling, and termination
  • Thread models (1:1, M:N, green threads)
  • CPU scheduling algorithms (CFS, MLFQ, BFS)
  • Process states and transitions
  • Inter-process communication (pipes, shared memory, message queues, sockets)
  • Signal handling and delivery
  • Namespaces and cgroups (Linux containerization primitives)
  • Process isolation and sandboxing

Memory Management

  • Virtual memory and page tables (multi-level, inverted)
  • TLB management and optimization
  • Page fault handling (minor/major faults)
  • Memory allocation (slab allocator, buddy system, jemalloc, tcmalloc)
  • Memory-mapped files and copy-on-write
  • NUMA architecture and memory affinity
  • Huge pages (transparent and explicit)
  • Memory compression (zswap, zram)
  • Address space layout randomization (ASLR)

File Systems

  • VFS layer architecture
  • Ext4, XFS, Btrfs, ZFS internals
  • NTFS, APFS internals
  • Journaling and crash consistency
  • Block allocation strategies
  • Directory indexing (htree, B-tree)
  • File system caching (page cache, buffer cache)
  • I/O schedulers (mq-deadline, BFQ, kyber)

Networking Stack

  • Socket implementation and lifecycle
  • TCP/IP stack walkthrough (packet journey)
  • Network namespaces and virtual networking
  • Netfilter/iptables/nftables internals
  • eBPF for network monitoring
  • Zero-copy networking (sendfile, splice, io_uring)
  • Network driver architecture (NAPI)

Kernel Internals

  • System call mechanism (syscall table, VDSO)
  • Interrupt handling (top/bottom halves, softirqs, tasklets)
  • Kernel modules and loadable drivers
  • Synchronization primitives (spinlocks, mutexes, RCU, seqlocks)
  • Kernel data structures (linked lists, red-black trees, radix trees)
  • Tracing infrastructure (ftrace, perf, eBPF, DTrace)
  • Security modules (SELinux, AppArmor, seccomp)

Read the full file on GitHub · 104 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. 4d ago First seen · 104 lines · 0 tokens per session scan A 336c03c261aa

Subscribe to this mod's changes

os-internals is a command published in the GitHub repository JoasASantos/ClaudeAdvancedPlugins (154 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 742 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-30.