google/capsem/dev-capsem

Claude Code and agent skill by google/capsem

Trust tier 4
  • vendor
Source check pending

Checking that the SKILL.md file is still in the repository.

Capsem project overview and navigation: what it is, how the crates fit, which skill owns what. Start here when orienting on any task.

Install

npx vskill@latest install google/capsem/dev-capsem

SKILL.md

The same SKILL.md was published earlier as google/capsem/dev-capsem.

Capsem

Capsem sandboxes AI agents in air-gapped Linux VMs on macOS using Apple's Virtualization.framework (with KVM for Linux). Runs as a daemon service (like Docker). Built with Rust and Astro.

Engineering standard

Quality, security and performance are P0 and every coding agent's responsibility. See something, say something, do something. When you notice a defect or an improvement while working -- a bug, a fragile path, a lint or guard failure, a small refactor that clarifies, a way to make something faster or more reliable, a vulnerable dependency -- do not walk past it as "not my problem." Small: fix it test-first (/dev-testing) and commit it in its own scoped commit. Too big to fold in: open a GitHub bug with enough detail to act on. A vulnerability is fixed immediately, test-first, in its own security: commit -- never parked, never filed publicly while unfixed. Stop to ask only for genuine judgment calls (user-visible behavior, weakening a security boundary, real scope, or a maintainer's dependency choice), and even then lead with a recommendation. The full contract is AGENTS.md -> "Fix what you find".

Crate map

CrateWhatKey modules
capsem-foundationDependency-light host primitives shared across product crates.paths.rs, uds.rs, poll.rs, telemetry.rs, log_layer.rs, ipc_handshake.rs
capsem-cacheBounded observable cache mechanics; callers own freshness policy.bounded.rs, snapshot.rs, telemetry.rs
capsem-archiveAppend-only, block-compressed body archive for one session ledger.format.rs, writer.rs, reader.rs
capsem-cryptoAccelerated hashes, integrity verification, randomness, TLS keys, JWT verification, signatures, and secret handling.verify.rs, random.rs, tls.rs, jwt.rs, secrets.rs
capsem-ledgerConfined session-ledger worker and archive codec executor.main.rs, codec.rs
capsem-telemetrySingle owner of every metrics-facade metric name, kind, unit, and description. Emitters import names from here.lib.rs (MetricSpec, describe_all), db.rs, dns.rs, mitm.rs, security.rs, virtio_blk.rs
capsem-assetsVM asset lifecycle and manifest compatibility.asset_manager.rs, manifest_compat.rs
capsem-apiGateway wire types and OpenAPI contract.document.rs, hypervisor.rs, vm_info.rs
capsem-sdk (sdk/rust)Async HTTP gateway clients, shared API DTOs, and bounded local gateway discovery.transport.rs, hypervisor.rs, local.rs
capsem-configProduct config contracts, parsing, validation, and provider/MCP identity.types.rs, validation.rs, provider_profile.rs, mcp.rs, resolver.rs
capsem-credentialsCredential provider contracts and durable credential storage.provider.rs, store.rs, durable.rs
capsem-coreVM, hypervisor, security-engine, network-intercept, and session-runtime domain library.vm/, net/, security_engine/, mcp/, hypervisor/, image.rs
capsem-serviceDaemon service. Axum HTTP over UDS, VM lifecycle.main.rs (routes, IPC), api.rs (request/response types)
capsem-processPer-VM process. Boots VM, bridges vsock, job store.main.rs (vsock setup, IPC handler)
capsem-proxyConfined HTTP/DNS proxy worker for VM and standalone traffic.main.rs
capsemCLI client. Rust SDK over authenticated gateway HTTP; local status/asset administration and startup use UDS.main.rs (create, resume, shell, list, exec, run, stop, delete, persist, purge, info, logs, restart, version, doctor, fork, image)
capsem-tuiTerminal control UI over the gateway API.main.rs, view/state modules
capsem-adminRuntime image build, asset, release, and config validation administration.main.rs
@capsem/mcp (mcp/typescript)Separately installed host MCP server for AI agents. Stdio, typed SDK, authenticated gateway HTTP.cli.ts, server.ts, tool modules
capsem-routerConfined TCP publication companion. Relays declared listeners to granted VSOCK data descriptors; no VM control authority.lib.rs, main.rs
capsem-networkPrivate networks between VMs: the u16-framed ethernet frame codec for a cable and the switch's MAC forwarding table. Pure code; the I/O lives in capsem-router --network, one L2 switch per network that VMs plug() into.frames.rs, switch.rs
capsem-mcp-transportConnected HTTP capabilities and native role bootstrap; no VM, policy or secret ownership.http_transport.rs, native_worker.rs
capsem-mcp-aggregatorLow-privilege subprocess. Connects to external MCP servers and routes tool calls. Service supervises it; the VM owner receives connected asynchronous MessagePack RPC. No ambient VM / DB / FS / network access.runtime.rs, server_manager.rs
capsem-mcp-builtinStdio MCP server subprocess exposing built-in tools: HTTP (fetch, grep, headers) and the echo transport probe. Service-owned through the aggregator's narrow peer capability.main.rs (rmcp handler)
capsem-gatewayTCP-to-UDS HTTP gateway. Frontend + tray connect through this.main.rs (Axum router), proxy.rs, status.rs, terminal.rs, auth.rs
capsem-appThin Tauri webview shell. Points at gateway (http://127.0.0.1:19222). Shell commands are registered in src/lib.rs (frontend logging, log-path diagnostics and external URL opening); update checks use the service API. Bundles web/app/dist so it can render the service-unavailable screen. Crate name matches directory; binary is capsem-app.lib.rs
capsem-traySystem tray. Polls gateway for VM status, quick actions (open dashboard, quit).main.rs, menu.rs
capsem-agentGuest binaries. Cross-compiled for aarch64/x86_64-linux-musl.main.rs (PTY agent + file I/O), net_proxy.rs (TCP relay), mcp_server.rs (MCP relay), sysutil.rs (guest suspend helper; in-VM shutdown disabled)
capsem-loggerSession DB schema, queries, async writer.schema.rs, writer.rs, events.rs
capsem-protoShared protocol types.ipc.rs (ServiceToProcess/ProcessToService), lib.rs (HostToGuest/GuestToHost)
capsem-guardCompanion-process lifecycle primitives: parent-watch + singleton flock. Used by gateway and tray to refuse-standalone, enforce one-instance, and self-exit when the service dies (incl. SIGKILL).src/lib.rs (install, Singleton, watch_parent_or_exit)
capsem-benchHost/guest benchmark harness and result collection.main.rs, collectors and dimensions
capsem-mock-serverHermetic HTTP/TLS/WebSocket upstream for tests and benchmarks.main.rs

Rule: reusable logic belongs in the lowest-dependency crate that owns its domain. Cross-process wire contracts belong in capsem-proto; host plumbing in capsem-foundation; assets, config, and credentials in their named crates; VM, hypervisor, security-engine, and host network runtime in capsem-core.

Directory map

PathWhatSkill
crates/Rust workspace/site-architecture
web/app/Astro 7 + Svelte 5 + Tailwind v4 + owned semantic CSS/frontend-design
web/marketing/Marketing website (Astro + Svelte 5)/site-marketing
web/docs/Documentation site (Astro Starlight)/site-infra
build_system/builder/Python builder and gate package/build-images, /dev-gate
build_system/scripts/Thin functional command boundaries/dev-gate, /release-process
guest/artifacts/capsem-init, bashrc, diagnostics/dev-capsem-doctor, /build-initrd
cache/target/assets/Built VM assets (gitignored, per-arch)/build-images
web/graphics/Brand icons and app icons (source of truth)/dev-capsem
skills/AI agent skills/dev-skills, /meta-organize-skills
config/Runtime image source (docker/image), corp, and settings config/site-architecture, /build-images

Skill map

When working on a specific area, consult the relevant skill:

Development
SkillWhen
/dev-justWhich just recipe to run
/dev-testingTest policy, TDD, coverage
/dev-debuggingBug investigation workflow
/dev-rust-patternsAsync, cross-compile, error handling
/dev-capsem-doctorIn-VM diagnostic suite
/dev-installationPackage install, service registration, self-update, install tests
/dev-setupNew developer onboarding
/dev-skillsSkills system internals
Subsystems
SkillWhen
/dev-mitm-proxyMITM proxy, SSE parsing, telemetry
/dev-mcpGuest MCP endpoint, tool routing
/dev-testing-hypervisorKVM, Apple VZ, VirtioFS
/dev-testing-vmIn-VM tests, session inspection, fixtures
/dev-testing-frontendvitest, visual verification
Build & release
SkillWhen
/build-imagesVM runtime builds: kernel, rootfs, OBOM
/build-initrdGuest binary repack, fast iteration
/release-processRelease, CI, signing, docs, changelog
Frontend & site
SkillWhen
/frontend-designOwned design system, semantic colors, Svelte 5 runes
/site-architectureSystem architecture, service daemon, gateway, key files
/site-infraAstro Starlight docs site

Communication paths

AI Agent -> @capsem/mcp (stdio) -> authenticated gateway HTTP -> capsem-service -> capsem-process -> vsock -> guest
User CLI -> capsem (Rust SDK) -> authenticated gateway HTTP -> capsem-service -> capsem-process -> vsock -> guest
Desktop UI -> capsem-gateway (TCP) -> HTTP/UDS -> capsem-service -> capsem-process -> vsock -> guest
Tray app -> capsem-gateway (TCP) -> HTTP/UDS -> capsem-service -> capsem-process -> vsock -> guest
Guest HTTPS -> iptables -> vsock:5002 -> Host MITM proxy -> upstream
Guest MCP -> framed vsock:5002 -> MITM MCP endpoint -> external MCP servers

Vsock ports: 5000 (control), 5001 (terminal), 5002 (MITM + framed guest MCP), 5004 (lifecycle/capsem-sysutil), 5005 (exec output).

Config hierarchy

  1. Corp config (corp.toml) -- enterprise constraints, reporting endpoints,

and locked rule/plugin policy. Corp wins.

  1. User settings (~/.capsem/settings.toml) -- rules, detections, MCP,

plugins, and UI/app preferences.

  1. Built-in defaults compiled into the binary.

The service merges the three into one per-VM policy file, vm/active_policy.toml, at every boot. There is no user.toml policy rail.

Config naming is strict:

  • schema validates one contract shape.
  • catalog lists discovered or materialized instances.
  • UI metadata renders settings only.
  • admin, guest, and registry are not config authority roots.
  • The only top-level config directories are settings/, corp/,

docker/, and data/. Adding another root is a contract change and needs a failing guard first.

  • capsem-admin is a validator/materializer/builder, not an authoring wizard.

It must not grow init, new, add, provider, registry, or backend workspace authoring commands.

Key invariants

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 16 Jun 2026.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
56
Repository forks
8
7-day trend score
20

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill CERTIFIED badge
[![vskill CERTIFIED](https://verified-skill.com/api/v1/skills/google/capsem/dev-capsem/badge)](https://verified-skill.com/skills/google/capsem/dev-capsem)

Something wrong with this skill or its page? Tell us.