Tensorlake is a serverless compute platform for building agent applications with isolated, stateful virtual machines called sandboxes and a runtime for coordinating background work. Developers use the sandboxes to run agents, tools, or code generated by language models, and use the orchestration runtime for long-running agent tasks. The catalogue instructions relate to using Tensorlake's sandbox and orchestration workflows.
Borrowing it
Nothing to install: this file belongs to tensorlakeai/tensorlake. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/tensorlakeai/tensorlake/main/CLAUDE.mdgit clone --depth 1 https://github.com/tensorlakeai/tensorlakeWrote 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.
[](https://agentmods.dev/instructions/tensorlakeai/tensorlake/claude-md)<a href="https://agentmods.dev/instructions/tensorlakeai/tensorlake/claude-md"><img src="https://agentmods.dev/badge/instructions/tensorlakeai/tensorlake/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/instructions/tensorlakeai/tensorlake/claude-md"><img src="https://agentmods.dev/badge/instructions/tensorlakeai/tensorlake/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.02259 | $0.02259 |
| Opus 5.5 | $0.00904 | $0.00904 |
| Sonnet 5.5 | $0.00452 | $0.00452 |
| Haiku 4.5 | $0.00226 | $0.00226 |
Grade C, and why
tensorlake CLAUDE.md scanned grade C with 3 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 7d 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.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
- Commands run as `tl-user` by default. Builder-image checks that start `dockerd` must run as root, e.g. `sudo -n <script>`. Unrestricted tool accessmediumExcessive agency
A wildcard tool grant or "run any command" leaves no least-privilege boundary at all.
2. **Sandbox SDK** (`src/tensorlake/sandbox`) - Client for creating Sandboxes where users can run arbitrary code, copy files, install packages and etc. Runs shell commandslowCapability
Expected in a hook, worth knowing in a rule or an instructions file.
return subprocess.run( How it starts
The opening of the file, as written. The whole thing — 183 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Project Overview
TensorLake SDK — a Python SDK for serverless agentic applications. Users define applications using decorator-based APIs and deploy them to TensorLake Cloud or run locally.
Common Commands
# Install dependencies and build
make build
# Format code (Black + isort)
make fmt
# Check formatting without modifying
make check
# Run all tests (requires TENSORLAKE_API_URL env var)
make test
# Run a specific test suite
cd tests && ./run_tests.sh --applications
cd tests && ./run_tests.sh --function-executor
cd tests && ./run_tests.sh --cli
# Run a single test file
cd tests && poetry run python path/to/test_file.py
# Regenerate gRPC stubs from .proto files
make build_proto
Manual Cloud Sandbox Validations
For validations that must run inside the real Tensorlake builder image, use a throwaway Python virtualenv with the published tensorlake package. Do this for live environment checks, not normal repo tests.
Key points:
- Install from PyPI in a fresh venv:
python3 -m venv /tmp/tl-validate-venv && /tmp/tl-validate-venv/bin/python -m pip install -q --upgrade pip tensorlake. - Read the token of the current
tlcontext, but never print it.~/.config/tensorlake/contexts.tomlsays whether it is in the OS keychain or incredentials.toml. The published SDK readsTENSORLAKE_API_KEY;TENSORLAKE_PATis not enough for sandbox creation. - Read
organizationandprojectfrom.tensorlake/config.tomland pass them explicitly toSandboxClient.for_cloud(...). Relying only on environment variables can produce missing scope headers. - Create the throwaway sandbox from
tensorlake/rootfs-builder, run validation commands, and always delete it withclient.delete(sandbox_id)in afinallyblock. - Commands run as
tl-userby default. Builder-image checks that startdockerdmust run as root, e.g.sudo -n <script>.
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.
- 7d ago Changed · -3 lines · -50 tokens per session f6c424f30629
- 22d ago Changed · +4 lines · +80 tokens per session f954be7af68f
- 1mo ago Changed · +1 lines · +111 tokens per session 7d5b596d1a94
- 1mo ago First seen · 181 lines · 2,118 tokens per session scan C c4f244199445
tensorlake CLAUDE.md is an instructions file published in the GitHub repository tensorlakeai/tensorlake (1,028 stars, last pushed today), licensed Apache-2.0. It adds 2,259 tokens to every session, about $0.0090 per session on Opus 5.5. A static security scan graded it C with 3 findings (asks for root, unrestricted tool access, runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other instructions, from other repositories
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.
vscode copilot-instructions.md
Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).
vscode model-prompts.instructions.md
Model-specific prompt authoring and registry guidelines.