spark-attic: Instructions file for Codex

AGENTS.md

spark-attic AGENTS.md is an instructions file for Codex, OpenCode from bertholomus/spark-attic. It costs 1,471 tokens per session, scanned B, original, Apache-2.0.

Repository instructions for installing and changing spark-attic on an NVIDIA GB10 or DGX Spark node. The software lends display-reserved GPU memory to CUDA programs on a headless machine, using a daemon called atticd.

In plain words
What is it for?
Use them to install the released software, run the preflight, handle refusals, and follow the repository's rules when changing the installer, service, or driver-related steps.
Why use it?
They reduce the risk of changing driver, kernel, display, or running-service settings incorrectly. They require a read-only preflight and user approval for changes that affect the system or a running inference server.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md.

This is bertholomus/spark-attic's own configuration. It tells Codex and OpenCode how to work on spark-attic itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything spark-attic configures →

Reuse

Borrowing it

Nothing to install: this file belongs to bertholomus/spark-attic. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/bertholomus/spark-attic/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/bertholomus/spark-attic

Made for: Codex, OpenCode.

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 spark-attic AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/bertholomus/spark-attic/agents-md/github.svg)](https://agentmods.dev/instructions/bertholomus/spark-attic/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/bertholomus/spark-attic/agents-md"><img src="https://agentmods.dev/badge/instructions/bertholomus/spark-attic/agents-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.

agentmods 80×15 button for spark-attic AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/bertholomus/spark-attic/agents-md"><img src="https://agentmods.dev/badge/instructions/bertholomus/spark-attic/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,471 This file is loaded in full into every session.
When invoked 1,471 The same file — it is already loaded in full.
Security scan B 2 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.01471 $0.01471
Opus 5.5 $0.00588 $0.00588
Sonnet 5.5 $0.00294 $0.00294
Haiku 4.5 $0.00147 $0.00147

Measured 2d ago against content hash c4d487d453a7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

spark-attic AGENTS.md scanned grade B 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 2d 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.

sudo bash install.sh --check # add --format json for machine-readable output

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -fsSL https://github.com/bertholomus/spark-attic/releases/latest/download/install.sh -o install.sh
AGENTS.md · 89 lines

How it starts

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

Instructions for coding agents

This file has two parts. Read the part that matches your task.

  • Installing spark-attic for a user on their GB10 / DGX Spark: read "Install for a user".
  • Changing this repository (issues, pull requests, reviews): read "Contributor instructions".

Install for a user

spark-attic lends the GB10's display carveout (about 2 GiB that the driver keeps for a display) to CUDA programs on a headless node. The daemon is atticd. The full guide is INSTALL.md. This section is the procedure an agent follows. Run every step on the node itself, as root (sudo).

Rules

  1. Use the release installer. Do not build from source, hand-copy binaries or edit the unit unless the user asks.
  2. Run the read-only preflight first. Show the user its result before you install anything.
  3. Do not work around a refusal. Each refusal line names its cause and the fix: report it to the user. Do not pass --drm-dir, stop a display or another carveout lender, or change the driver or kernel settings without the user's consent.
  4. Ask the user before --with-sysctl (it changes a kernel setting from the next boot) and before you restart a running inference server to attach it.
  5. Never print, copy or paste the key in /etc/spark-attic/key. Give it to engines as a mounted file.
  6. Report what the node says (spark-attic status, /run/spark-attic/status.json), not what you expect.

Steps

  1. Check the node.
    uname -m                                   # must print aarch64
    head -n1 /proc/driver/nvidia/version       # the NVIDIA driver must be loaded
    
  2. Preflight. It is read-only and writes nothing.
    curl -fsSL https://github.com/bertholomus/spark-attic/releases/latest/download/install.sh -o install.sh
    sudo bash install.sh --check               # add --format json for machine-readable output
    
    Exit 0 means clean. Exit 1 means problems: each one is a sentence with what to do. A line that starts with ~ is a warning, not a failure. "no device-tree model readable" is such a warning: the driver and the carveout probe still settle whether the box is a GB10. Without the release tarball, --check cannot run the shim and display checks yet and says so; the install runs them after the download and before it writes anything (or run --check --from <tarball> to see them first). If the user runs another carveout lender, set ATTIC_OTHER_SOCKETS to its socket path so the preflight can see it.
  3. Install.
    sudo bash install.sh
    
    The installer verifies the release tarball against its checksums, installs, creates a root-only key, validates the running driver and then starts attic.service. If a step after the first write fails, it rolls back what that run changed and says so. A second run changes nothing. A newer release upgrades in place. The log is /var/log/spark-attic/install.log. Offline: download spark-attic-<version>-aarch64.tar.gz from the release page, then run sudo bash install.sh --from spark-attic-<version>-aarch64.tar.gz.
  4. Verify.
    spark-attic status                         # state, MiB free and lent, clients, driver, validated
    cat /run/spark-attic/status.json           # the same, keyless (STATUS-FILE.md)
    sudo spark-attic doctor                    # every check with a fix line; the exit code is the number of problems
    
    Success is "state":"ready", "validated":true and a size_mib of about 2,044 on a stock GB10. If the state is refusing, the why field says why. Look it up in INSTALL.md, Troubleshooting.
  5. Attach an engine, only if the user asks. atticd lends nothing until an engine borrows.
    • vLLM or SGLang: mount /run/spark-attic, the key file (read-only) and the Python package, and set PYTHONPATH and SPARK_ATTIC_KEY_FILE. INSTALL.md, section 6, has the exact docker run line. The plugin loads by itself and logs one spark-attic: line. SPARK_ATTIC_PLACE=off turns it off for a comparison run.
    • TensorFold: no TensorFold release takes the carveout yet. It needs a build from the open pull request branch; INSTALL.md, section 6, has the settings.
    • gr8: only gr8 main from kindlingai/gr8 #614 on reads atticd's key file; no gr8 release or published gr8 image has it yet. Set GR8_DISPRAM=1 DISPRAM_SOCKET=/run/spark-attic/attic.sock DISPRAM_KEY_FILE=/etc/spark-attic/key. README.md, "gr8", has the details.
    • Your own CUDA program: spark_attic.borrow() (in python/spark_attic) maps memory into the calling process only. Another process cannot hand that memory to a running server.

Read the full file on GitHub · 89 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. 2d ago First seen · 89 lines · 1,471 tokens per session scan B c4d487d453a7

Subscribe to this mod's changes

spark-attic AGENTS.md is an instructions file published in the GitHub repository bertholomus/spark-attic (52 stars, last pushed 5d ago), licensed Apache-2.0. It adds 1,471 tokens to every session, about $0.0059 per session on Opus 5.5. A static security scan graded it B with 2 findings (asks for root, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-27.

Related

spark-attic AGENTS.md compared with instructions from other repositories

spark-attic AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
spark-attic AGENTS.mdbertholomus/spark-atticInstructions file525d agoApache-2.0B1,471Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150kyesterdayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA3,303GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file289k2d agoMITA4,393Codex, OpenCode