sounio copilot-instructions.md

sounio copilot-instructions.md is an instructions file for GitHub Copilot from Sounio-lang/sounio. It costs 975 tokens per session, scanned A, original, Apache-2.0.

Instructions for GitHub Copilot when writing Sounio, a systems and scientific programming language. They explain Sounio’s syntax, compiler commands, and required declarations for side effects such as input/output or mutation.

In plain words
What is it for?
Checking and running Sounio programs, applying the language’s syntax rules, and declaring effects on functions correctly.
Why use it?
They help Copilot avoid treating Sounio like Rust and producing code the Sounio compiler will reject.

Instructions file for GitHub Copilot

Written for GitHub Copilot: a Copilot instructions file.

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/sounio-lang/sounio/copilot-instructions
Clone the repo
git clone --depth 1 https://github.com/Sounio-lang/sounio

Made for: GitHub Copilot.

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 sounio copilot-instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/sounio-lang/sounio/copilot-instructions.svg)](https://agentmods.dev/instructions/sounio-lang/sounio/copilot-instructions)
Your own site
<a href="https://agentmods.dev/instructions/sounio-lang/sounio/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/sounio-lang/sounio/copilot-instructions.svg" alt="Measured on agentmods" height="20"></a>
Per session 975 This file is loaded in full into every session.
When invoked 975 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.1 $0.00975 $0.00975
Opus 5 $0.00487 $0.00487
Sonnet 5 $0.00195 $0.00195
Haiku 4.5 $0.00097 $0.00097

Measured 6d ago against content hash 7e683a074e1b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

sounio copilot-instructions.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 6d 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.

.github/copilot-instructions.md · 104 lines

How it starts

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

Sounio Language Instructions for GitHub Copilot

Sounio (.sio) is a systems + scientific programming language. It is NOT Rust. Full syntax reference: docs/LLM_PROGRAMMING_GUIDE.md

Compiler

SOUC=./bin/souc
$SOUC check file.sio        # type-check
$SOUC run file.sio          # compile to temp ELF, then execute

Critical Syntax Differences from Rust

  • NO semicolons: let x = 5 not let x = 5;
  • NO &mut: use &! for exclusive refs
  • NO let mut: use var for mutable bindings
  • NO Rust macros: assert(cond) not assert!(cond), println("text") not println!("text")
  • NO unary minus: 0 - 42 not -42
  • NO closure literals: |x| x + 1 does not work. Use named fn refs: let f = square
  • NO attributes: no #[test], #[derive()]
  • Bit shifts require u8: x >> 4u8

Effects System (REQUIRED)

Functions must declare side effects or the compiler rejects them:

fn pure(a: i64, b: i64) -> i64 { a + b }
fn greet(name: &str) with IO { println(name) }
fn mutate(x: &!i32) with Mut { *x = 42 }
fn divide(a: f64, b: f64) -> f64 with Div, Panic { a / b }
fn main() with IO, Mut, Panic, Div { /* ... */ }

Effects: IO (print/file), Mut (&! mutation), Div (division/modulo), Panic (array access, assert, as casts)

Variables and Types

let x = 5                           // immutable
var y: i32 = 10                     // mutable
var buf: [i64; 8] = [0; 8]          // fixed-size array
let p = Point { x: 1.0, y: 2.0 }   // struct
let (a, b) = (1, 2)                 // tuple destructuring

Primitives: i8, i16, i32, i64, u8, u16, u32, u64, f32, f64, bool, char

Control Flow

for i in 0..10 { /* exclusive */ }
for i in 0..=10 { /* inclusive */ }
for x in arr { /* array iteration */ }
while cond { /* ... */ }
if x > 0 { "pos" } else { "neg" }   // if is an expression

break and continue work in for-in and while loops.

Functions and Methods

fn square(x: i64) -> i64 { x * x }

// Function references (closures do NOT work)
let f = square
let r = f(7)

// Higher-order
fn apply(f: fn(i64) -> i64, x: i64) -> i64 { f(x) }

// Methods use explicit self
impl MyStruct {
    fn new() -> MyStruct { MyStruct { val: 0 } }
    fn get(self: &MyStruct) -> i64 { self.val }
    fn set(self: &!MyStruct, v: i64) with Mut { self.val = v }
}

Read the full file on GitHub · 104 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. 6d ago First seen · 104 lines · 975 tokens per session scan A 7e683a074e1b

Subscribe to this mod's changes

sounio copilot-instructions.md is an instructions file published in the GitHub repository Sounio-lang/sounio (6 stars, last pushed today), licensed Apache-2.0. It adds 975 tokens to every session, about $0.0049 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-31.