krauncher: Instructions file for Codex

AGENTS.md

krauncher AGENTS.md is an instructions file for Codex, OpenCode from Ilya-a-sergeyev-ger/krauncher. It costs 8,409 tokens per session, scanned A, original, MIT.

A project instruction file for krauncher, a Python tool that runs ordinary Python functions on remote GPUs and returns their results asynchronously.

In plain words
What is it for?
Use it when writing or modifying krauncher code, including GPU tasks, decorators, task handles, and configuration.
Why use it?
It gives coding agents a reliable reference for krauncher's required code patterns, settings, and task handling.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions Claude Code.

This is Ilya-a-sergeyev-ger/krauncher's own configuration. It tells Codex and OpenCode how to work on krauncher 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 krauncher configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Ilya-a-sergeyev-ger/krauncher. 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/Ilya-a-sergeyev-ger/krauncher/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/Ilya-a-sergeyev-ger/krauncher

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 krauncher AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/ilya-a-sergeyev-ger/krauncher/agents-md"><img src="https://agentmods.dev/badge/instructions/ilya-a-sergeyev-ger/krauncher/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 8,409 This file is loaded in full into every session.
When invoked 8,409 The same file — it is already loaded in full.
Security scan A 0 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.08409 $0.08409
Opus 5.5 $0.03364 $0.03364
Sonnet 5.5 $0.01682 $0.01682
Haiku 4.5 $0.00841 $0.00841

Measured 1mo ago against content hash 2206b8757432, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

krauncher AGENTS.md scanned grade A with 0 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 1mo 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 644 lines

How it starts

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

Krauncher — reference for coding agents / LLMs

Accurate, self-contained reference for generating working krauncher code. If anything here conflicts with prose in the README, trust this file and the docstrings in krauncher/. Runnable, verified examples live in tutorial/.

krauncher runs a plain Python function on a remote GPU and returns its result. It is async. No platform abstractions, no container definitions.


The one canonical pattern

import asyncio
from krauncher import KrauncherClient

client = KrauncherClient()                 # config from env / .env

@client.task(vram_gb=24, timeout=600)      # decorator makes the function async
def train(epochs: int = 3):
    import torch                           # ALL imports go inside the function
    # ... work on the GPU ...
    return {"loss": 0.01}                  # return value must be JSON-serializable

async def main():
    handle = await train(epochs=5)         # calling submits → returns TaskHandle
    print(handle.task_id, handle.classification.tier)
    result = await handle                  # awaiting the handle → TaskResult
    # or: result = await handle.wait(timeout=3600, on_log=print)
    print(result.output, result.actual_gpu, result.charged_ku)

asyncio.run(main())

Rules that must hold for generated code:

  • The task function is called with keyword arguments only (train(epochs=5), not train(5)).
  • The function must be self-contained: every import and helper it uses must be defined inside it (or passed via the helper-function mechanism, tutorial 12). It runs in a fresh sandbox with no access to your module-level globals.
  • The return value is serialized — return JSON-compatible data (dict, list, str, number, bool, None).
  • Everything is async — call task functions inside an async def and await.

Install & configuration

pip install krauncher
export CAS_API_KEY="cas_..."

Python 3.11+. All settings read from constructor args (highest priority), then env vars / a .env file in CWD.

Read the full file on GitHub · 644 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. 1mo ago Changed · +95 lines · +1,195 tokens per session 2206b8757432
  2. 2mo ago First seen · 549 lines · 7,214 tokens per session scan A 649b4e7ee9fe

Subscribe to this mod's changes

krauncher AGENTS.md is an instructions file published in the GitHub repository Ilya-a-sergeyev-ger/krauncher (0 stars, last pushed 1mo ago), licensed MIT. It adds 8,409 tokens to every session, about $0.0336 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

krauncher AGENTS.md compared with instructions from other repositories

krauncher AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
krauncher AGENTS.mdIlya-a-sergeyev-ger/krauncherInstructions file01mo agoMITA8,409Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode