rnix: Instructions file for GitHub Copilot

.github/copilot-instructions.md

rnix copilot-instructions.md is an instructions file for GitHub Copilot from rnixai/rnix. It costs 1,564 tokens per session, scanned A, original, MIT.

Project instructions for Rnix, a Go-based operating system for AI agents. They describe its background service, virtual filesystem, process management, communication sockets, and build checks.

In plain words
What is it for?
Use them when working on Rnix, including its kernel, inter-process communication, command-line tool, agent orchestration, or debugging features.
Why use it?
They give coding and testing rules for a project with several system-level components and require the full validation command after changes.

Instructions file for GitHub Copilot

Written for GitHub Copilot: a Copilot instructions file.

This is rnixai/rnix's own configuration. It tells GitHub Copilot how to work on rnix 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 rnix configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is go test -race -run TestFunctionName ./package/....

Reuse

Borrowing it

Nothing to install: this file belongs to rnixai/rnix. 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/rnixai/rnix/main/.github/copilot-instructions.md
Clone the repo
git clone --depth 1 https://github.com/rnixai/rnix

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/rnixai/rnix/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/rnixai/rnix/copilot-instructions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,564 This file is loaded in full into every session.
When invoked 1,564 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.01564 $0.01564
Opus 5.5 $0.00626 $0.00626
Sonnet 5.5 $0.00313 $0.00313
Haiku 4.5 $0.00156 $0.00156

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

Security

Grade A, and why

rnix 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 2mo 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 · 156 lines

How it starts

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

Copilot Instructions for Rnix

Project Overview

Rnix is an operating system for AI agents, inspired by Unix design philosophy. Written in Go 1.26 (github.com/rnixai/rnix). It provides process management, a virtual filesystem (VFS), IPC via Unix domain sockets, multi-agent orchestration, intent decomposition, and debugging tools.

语言

  • 回复语言使用简体中文
  • 代码注释使用英文

Build & Test Commands

make build          # Build binary → ./rnix
make test           # Run all tests with race detection
make lint           # golangci-lint
make vet            # go vet
make all            # lint + vet + modernize-check + test + build

# Single test
go test -race -run TestFunctionName ./package/...

# Package tests
go test -race ./kernel/...
go test -race ./ipc/...

Run make all after finishing any coding work to catch errors.

Architecture

Daemon Model

Rnix runs as a background daemon holding the kernel and process table. CLI commands communicate over a Unix domain socket ($XDG_RUNTIME_DIR/rnix/rnix.sock or /tmp/rnix-$UID/rnix.sock). The CLI auto-starts the daemon via EnsureDaemon().

Core Data Flow

CLI (cmd/rnix) → IPC Client → Unix Socket → IPC Server → Kernel
                                                            ↓
                                              Process ReasonStep Loop
                                                  ↓           ↑
                                             VFS Devices    Context
                                            (LLM, FS, Shell, MCP)

Package Hierarchy

cmd/rnix           ← Entry point, Cobra CLI
├── ipc            ← Client/Server, NDJSON protocol over Unix socket
├── kernel         ← Microkernel: process table, spawn, kill, wait, reaper
│   ├── vfs        ← VFS file abstraction, device registry, FD table
│   ├── context    ← Per-process conversation history (CtxAlloc/Write/BuildPrompt)
│   └── debug      ← Strace, recording, distributed tracing, GDB
├── drivers/       ← VFS device implementations
│   ├── llm        ← /dev/llm/* (Claude CLI, Cursor CLI, HTTP API providers)
│   ├── fs         ← /dev/fs - sandboxed host filesystem
│   ├── shell      ← /dev/shell - subprocess execution
│   └── mcp        ← /dev/mcp/* - MCP server stdio transport
├── intent         ← Declarative intent decomposition
├── compose        ← DAG-based multi-agent orchestration from YAML
├── shell          ← AgentShell scripting language
├── agents         ← Agent loader (lib/agents/{name}/agent.yaml + instructions.md)
├── skills         ← Skill loader (lib/skills/{name}/SKILL.md with YAML frontmatter)
├── skillpkg       ← Skill package management (install/search/update from registry)
└── internal/      ← Shared utilities
    ├── types      ← PID, FD, CtxID, Signal, ProcessState, ErrCode
    ├── xsync      ← Thread-safe SyncMap, Registry, Future
    └── ui         ← Terminal rendering, progress reporting

Read the full file on GitHub · 156 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. 2mo ago First seen · 156 lines · 1,564 tokens per session scan A f53efdc3658a

Subscribe to this mod's changes

rnix copilot-instructions.md is an instructions file published in the GitHub repository rnixai/rnix (6 stars, last pushed 3mo ago), licensed MIT. It adds 1,564 tokens to every session, about $0.0063 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

rnix copilot-instructions.md compared with instructions from other repositories

rnix copilot-instructions.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rnix copilot-instructions.mdrnixai/rnixInstructions file63mo agoMITA1,564GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,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