platform AGENTS.md

Repository instructions for Dash Platform, a monorepo where multiple JavaScript, TypeScript, and Rust projects are managed together in one codebase.

In plain words
What is it for?
Use them when working on packages, Rust crates, client SDKs, WebAssembly bridges, gRPC services, tests, documentation, or Docker-based development.
Why use it?
They help coding agents understand the project’s folders, technologies, major components, and local development setup before making changes.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/dashpay/platform/agents-md
Clone the repo
git clone --depth 1 https://github.com/dashpay/platform

Made for: Codex, OpenCode.

Per session 2,252 This file is loaded in full into every session.
When invoked 2,252 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.02252 $0.02252
Opus 5 $0.01126 $0.01126
Sonnet 5 $0.00450 $0.00450
Haiku 4.5 $0.00225 $0.00225

Measured yesterday against content hash cac488c8301a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

platform 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 yesterday.

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 · 157 lines

How it starts

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

Repository Guidelines

Guidance for AI coding agents (Claude Code, Codex, etc.) working in this repository.

Project Structure & Module Organization

  • Monorepo using Yarn workspaces and a Rust Cargo workspace.
  • Source packages live in packages/* (JS/TS and Rust crates). Examples: packages/js-dash-sdk, packages/rs-drive, packages/rs-dpp.
  • End-to-end tests and helpers: packages/platform-test-suite.
  • Docs in docs/, scripts in scripts/, Docker config at repo root, local fixtures in db/.

Architecture

Technology Stack

  • Rust: Core platform components (Drive, DAPI server, DPP implementation)
  • JavaScript/TypeScript: Client SDKs, developer tools, test suite
  • WebAssembly: Bridge between Rust and JavaScript implementations
  • gRPC: Service communication protocol
  • Docker: Local development environment

Key Components

  • Drive (packages/rs-drive): Platform's decentralized storage component, implementing a replicated state machine for storing and retrieving application data.
  • DAPI (packages/dapi): Decentralized API server that provides a unified interface for interacting with the Dash network and Platform.
  • DPP (packages/rs-dpp, packages/wasm-dpp): Dash Platform Protocol implementation that defines data structures and validation rules.
  • SDK (packages/js-evo-sdk, packages/rs-sdk): Client libraries providing high-level interfaces for building applications on Dash Platform. js-evo-sdk is the recommended JavaScript SDK, built on the Rust/WASM layer with proof verification support. packages/js-dash-sdk is a legacy SDK used internally by the platform test suite and is not recommended for new projects. See packages/rs-sdk/README.md for the Rust SDK checklist for implementing new Fetch/FetchMany queries.
  • WASM SDK (packages/wasm-sdk): WebAssembly bindings for browser-based applications. See AI_REFERENCE.md for comprehensive API documentation.
  • Dashmate (packages/dashmate): Node management tool for setting up and managing Dash Platform nodes.

Read the full file on GitHub · 157 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. yesterday First seen · 157 lines · 2,252 tokens per session scan A cac488c8301a

Subscribe to this mod's changes

platform AGENTS.md is an instructions file published in the GitHub repository dashpay/platform (92 stars, last pushed yesterday), licensed MIT. It adds 2,252 tokens to every session, about $0.0113 per session on Opus 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.