vellium: Instructions file for Codex

AGENTS.md

vellium AGENTS.md is an instructions file for Codex, OpenCode from tg-prplx/vellium. It costs 6,779 tokens per session, scanned A, original, MIT.

A contributor guide for Vellium, a local-first AI workbench with a web interface, server, database, desktop shell, and features for chat and long-form writing.

In plain words
What is it for?
Use it when changing Vellium's React interface, Express server, SQLite storage, Electron desktop shell, chat features, writing tools, providers, or extensions.
Why use it?
It gives coding agents a map of the product, its runtime parts, and implementation boundaries before they change code. This helps them work in the right layer and understand how the application runs locally.

Instructions file for CodexOpenCode

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

This is tg-prplx/vellium's own configuration. It tells Codex and OpenCode how to work on vellium 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 vellium configures →

Reuse

Borrowing it

Nothing to install: this file belongs to tg-prplx/vellium. 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/tg-prplx/vellium/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/tg-prplx/vellium

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/tg-prplx/vellium/agents-md"><img src="https://agentmods.dev/badge/instructions/tg-prplx/vellium/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 6,779 This file is loaded in full into every session.
When invoked 6,779 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.06779 $0.06779
Opus 5.5 $0.02712 $0.02712
Sonnet 5.5 $0.01356 $0.01356
Haiku 4.5 $0.00678 $0.00678

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

Security

Grade A, and why

vellium 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 · 628 lines

How it starts

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

AGENTS.md — Vellium contributor and coding-agent guide

This file applies to the entire repository. It is the first technical map an agent should read before changing Vellium. More specific documentation under docs/ explains user-facing behavior; this file focuses on implementation boundaries, invariants, safe workflows, and verification.

1. Product and runtime model

Vellium is a local-first AI workbench for:

  • character chat and multi-character roleplay;
  • branching conversations, personas, LoreBooks, RAG, attachments, tool calls, reasoning traces, translation, TTS, and chat export;
  • long-form writing with projects, chapters, scenes, summaries, and DOCX/Markdown;
  • OpenAI-compatible, KoboldCpp, local, and custom provider adapters;
  • plugins, MCP tools, endpoint extensions, and an optional desktop pet;
  • a deprecated Agents workspace that remains available through Settings > Legacy.

The application has four cooperating runtimes:

  1. React + TypeScript renderer in src/.
  2. Express API in server/.
  3. SQLite persistence through better-sqlite3.
  4. Electron desktop shell in electron/.

The browser development topology is:

React/Vite http://127.0.0.1:1420
        │ /api proxy
        ▼
Express   http://127.0.0.1:3002
        │
        ▼
SQLite + providers + MCP + local files

In packaged Electron and headless static mode, Express serves both dist/ and /api, normally from http://127.0.0.1:3001. Electron loads that HTTP URL; it does not normally load the production UI directly from file://.

2. Start every task safely

Before editing:

  1. Run git status --short and preserve unrelated user changes.
  2. Identify the smallest owning subsystem and read its route, service/repository, client, contract, UI, and existing tests before introducing a second path.
  3. Search with rg; do not assume a feature is absent from a large screen.
  4. Treat data/, output/, release/, dist/, dist-electron/, generated bundles, and user-imported assets as user or generated state. Do not modify, delete, or commit them unless the task explicitly requires it.
  5. Do not create commits, tags, releases, or pushes unless explicitly requested.
  6. If asked to checkpoint before risky work, make the checkpoint first and keep the later hardening/refactor in a separate commit.

Read the full file on GitHub · 628 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 · +34 lines · +580 tokens per session d4e638e94c5e
  2. 2mo ago First seen · 594 lines · 6,199 tokens per session scan A c3cd96b38dc5

Subscribe to this mod's changes

vellium AGENTS.md is an instructions file published in the GitHub repository tg-prplx/vellium (145 stars, last pushed 7d ago), licensed MIT. It adds 6,779 tokens to every session, about $0.0271 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-30.

Related

vellium AGENTS.md compared with instructions from other repositories

vellium AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
vellium AGENTS.mdtg-prplx/velliumInstructions file1457d agoMITA6,779Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file275k3d agoMITA4,313Codex, OpenCode