agentleFS
raullenchairaullenchai/vnsh/CLAUDE.md

vnsh

CLAUDE.md157 starsChanged 4 months agoMITView on GitHub

vnsh is an ephemeral shared workspace for people and AI agents. Its design principle is server-side blindness: encrypted workspace plaintext and keys never reach the service. The repository is MIT licensed. There are three link types: Encrypted workspaces use a random 32-byte root secret. HKDF-SHA256 derives an AES-256-GCM content key and a separate write token. The service stores ciphertext and SHA-256(write token), never either secret. Updates require If-Match, so a stale client receives 412 rather than silently overwriting a newer…

The file

We split this CLAUDE.md into the rules it gives an agent

4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Never send fragment keys to the server or place them in logs.

    line 71
  2. Distinctive:

    Never infer public visibility.

    line 72
  3. Distinctive:

    Keep rendered untrusted content in an opaque sandbox with networking disabled.

    line 73
  4. Distinctive:

    Treat the CLI, MCP server, extension, and browser as security-sensitive clients: changes to crypto or URL formats require cross-client …

    line 76

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

vnsh contributor context

vnsh is an ephemeral shared workspace for people and AI agents. Its design principle is server-side blindness: encrypted workspace plaintext and keys never reach the service. The repository is MIT licensed.

Current product model

There are three link types:

  • /w/{id}#w={secret} is an encrypted read/write workspace.
  • /w/{id}#r={key} is an encrypted, cryptographically view-only workspace.
  • https://vnshcontent.dev/p/{id} is an explicitly public workspace.

Encrypted workspaces use a random 32-byte root secret. HKDF-SHA256 derives an AES-256-GCM content key and a separate write token. The service stores ciphertext and SHA-256(write token), never either secret. Updates require If-Match, so a stale client receives 412 rather than silently overwriting a newer version.

The legacy one-shot /v/ blob format remains supported and uses AES-256-CBC with its key and IV in the URL fragment. Do not describe CBC as the workspace format.

Workspaces expire 24 hours after the last successful write by default. A caller may request a supported TTL up to seven days. R2 object data and custom metadata are the source of truth; KV is no longer part of the runtime architecture.

Repository

  • worker/: Cloudflare Worker, R2 API, browser UI, public-content host, cleanup
  • cli/npm/: Node CLI (vn and vnsh)
  • mcp/: MCP server for workspace create/read/update/open and legacy share/read
  • extension/: Chrome extension for previews and capture bundles
  • scripts/smoke.mjs: production end-to-end verification

The Worker serves vnsh.dev. Explicitly public documents are isolated on the separate registrable domain vnshcontent.dev. The content host is dispatched before all normal routes and serves only its narrow public surface. The legacy vnsh.dev/p/ compatibility window is controlled by LEGACY_PUBLIC_UNTIL; after the cutoff it intentionally returns 410 rather than redirecting.

Development and deployment

From the repository root:

npm test
npm run dev

Deploy only through:

npm run deploy

The root command enters worker/, whose predeploy runs the Worker test suite before Wrangler deploys. Do not call wrangler deploy directly and bypass that gate. After deployment run:

node scripts/smoke.mjs

The production service uses the VNSH_STORE R2 binding, native UPLOAD_LIMITER and READ_LIMITER bindings, and optional Analytics Engine binding VNSH_ANALYTICS. Secrets belong in Wrangler secrets, never source or wrangler.toml.

Security invariants

  • Never send fragment keys to the server or place them in logs.
  • Never infer public visibility; it is an explicit, immutable creation choice.
  • Keep rendered untrusted content in an opaque sandbox with networking disabled.
  • Preserve conditional writes and constant-shape responses that avoid revealing whether a private workspace ID exists.
  • Treat the CLI, MCP server, extension, and browser as security-sensitive clients: changes to crypto or URL formats require cross-client tests.

The canonical user-facing explanation is README.md; protocol details live in docs/api.md, and the component/data-flow overview is in docs/architecture.md.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.