Borrowing it
Nothing to install: this file belongs to mattv8/ragtime. 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/mattv8/ragtime/beta/.github/instructions/userspace-spec.instructions.mdgit clone --depth 1 https://github.com/mattv8/ragtimeWrote 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/mattv8/ragtime/userspace-spec)<a href="https://agentmods.dev/instructions/mattv8/ragtime/userspace-spec"><img src="https://agentmods.dev/badge/instructions/mattv8/ragtime/userspace-spec/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/mattv8/ragtime/userspace-spec"><img src="https://agentmods.dev/badge/instructions/mattv8/ragtime/userspace-spec.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.05025 | $0.05025 |
| Opus 5.5 | $0.02010 | $0.02010 |
| Sonnet 5.5 | $0.01005 | $0.01005 |
| Haiku 4.5 | $0.00502 | $0.00502 |
Grade C, and why
ragtime userspace-spec.instructions.md scanned grade C with 2 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 2mo 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.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
docker exec runtime-dev sh -c 'rm -rf /data/_userspace/workspaces/<test_id>/rootfs' Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
- Why the browser lane can never be write-enabled: `ExecuteComponentRequest.request` is client-supplied query/command text with no execution-time binding of `component_id` to a server-registered query. Write-enabling it How it starts
The opening of the file, as written. The whole thing — 204 lines — stays where its author put it; the contents beside it link to each section on GitHub.
User Space Feature Implementation Instructions
Last updated: 2026-07-14 (codebase-scanned; concise agent-focused)
Scope
- Apply to User Space runtime/collab/share work in
ragtime/userspace/**andruntime/**. - Keep changes incremental; do not invent new UX or role semantics.
- Endpoint details belong in
/docs(do not maintain static route dumps here).
Big Picture (How User Space Actually Works)
- Control plane is in Ragtime app code (
ragtime/userspace/runtime_service.py,ragtime/userspace/runtime_routes.py). - Data plane runs in runtime manager/worker code (
runtime/manager/**,runtime/worker/**). runtime/main.pychooses service mode viaRUNTIME_SERVICE_MODE; manager mode also mounts worker routes.- Workspace runtime files live under
${INDEX_DATA_PATH}/_userspace/workspaces/{workspace_id}/files. - Preview is runtime-only and now uses dedicated per-workspace preview origins dispatched by
PreviewHostDispatchMiddlewareinragtime/userspace/preview_host.py. - Preview launch is an explicit API step: control-plane routes mint short-lived bootstrap grants and the preview host mints a preview session cookie on first load.
- Browser-auth cookie surfaces are only for
collabandruntime_pty; preview no longer uses capability cookies.
Workspace Code Index Queue
- Hidden User Space code indexes run through
WorkspaceCodeIndexService(ragtime/userspace/workspace_code_index_service.py), not the generic filesystem indexer. - Dirty paths, manual reindex, missing-baseline reconcile, and
process_dirty_workspace()all converge on durableworkspace_code_index_jobsrows. Do not reintroduce directasyncio.create_task()indexing paths. - Queue state is DB-owned:
pendingrows carrywaiting_for_job_id; the runner atomically claims rows withFOR UPDATE SKIP LOCKED, clears the wait pointer, then runs them asindexing. userspace_code_index_max_concurrencycontrols active jobs (default1, admin range1..8), but one workspace must not have two active code-index jobs at once.- Pending jobs cancel immediately; running jobs set
cancel_requestedand trip the in-memory cancellation flag checked during processing. Keepcancelleddistinct fromfailed.
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.
- 2mo ago First seen · 204 lines · 5,025 tokens per session scan C ed45c73de026
ragtime userspace-spec.instructions.md is an instructions file published in the GitHub repository mattv8/ragtime (33 stars, last pushed today), licensed MIT. It adds 5,025 tokens to every session, about $0.0201 per session on Opus 5.5. A static security scan graded it C with 2 findings (recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
ragtime userspace-spec.instructions.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ragtime userspace-spec.instructions.mdmattv8/ragtime | Instructions file | 33 | today | MIT | C | 5,025 | GitHub Copilot |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |