Axon copilot-instructions.md

Axon copilot-instructions.md is an instructions file for GitHub Copilot from jyunming/Axon. It costs 4,209 tokens per session, scanned A, original, MIT.

Persistent instructions for Axon, a local knowledge system that stores documents and helps retrieve relevant information. It explains Axon's projects, which group related knowledge into separate searchable areas.

In plain words
What is it for?
Use it when ingesting or searching knowledge, switching project areas, or working with Axon's local REST API or MCP server.
Why use it?
It gives an AI assistant the background needed to store and retrieve information in the correct project and understand Axon's structure.

Instructions file for GitHub Copilot

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/jyunming/axon/copilot-instructions
Clone the repo
git clone --depth 1 https://github.com/jyunming/Axon

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/jyunming/axon/copilot-instructions.svg)](https://agentmods.dev/instructions/jyunming/axon/copilot-instructions)
Your own site
<a href="https://agentmods.dev/instructions/jyunming/axon/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/jyunming/axon/copilot-instructions.svg" alt="Measured on agentmods" height="20"></a>
Per session 4,209 This file is loaded in full into every session.
When invoked 4,209 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.04209 $0.04209
Opus 5 $0.02105 $0.02105
Sonnet 5 $0.00842 $0.00842
Haiku 4.5 $0.00421 $0.00421

Measured 3d ago against content hash 2cc9f821edb0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

Axon 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 3d 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 · 417 lines

How it starts

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

Axon Knowledge Center — Copilot Instructions

These instructions give GitHub Copilot persistent context about the Axon knowledge center so you can ingest and retrieve information correctly across every session.


What Axon Is

Axon is a local RAG (Retrieval-Augmented Generation) system exposed as a REST API (localhost:8420) and as an MCP stdio server. It stores embeddings in a local vector store (ChromaDB by default) and a BM25 index. All storage is free and local; only the LLM call (if using Ollama) runs locally too.


Project Namespaces

Projects group related knowledge. The active project determines which vector store collection and BM25 index are read and written.

Project name Use for
default General-purpose knowledge, catch-all (canonical name; was _default in earlier versions)
(add project-specific rows here as namespaces are created)

Switch the active project with POST /project/switch before ingesting if the content belongs to a specific namespace.

Hierarchical projects (up to 5 levels)

Projects support slash-separated nesting up to 5 levels deep:

research/               ← top-level parent
research/papers/        ← child
research/papers/2024    ← grandchild
research/papers/2024/q1 ← great-grandchild (max depth: 5 segments total)

Searching a parent automatically searches all its descendants. When you switch_project("research"), Axon builds a MultiVectorStore and MultiBM25Retriever that fan out queries across research, research/papers, and research/papers/2024 — results are merged and ranked together.

Writes (ingestion) always go to the parent's own store. Reads fan out.

Pattern for searching across unrelated topics: If you need to search both react-docs and python-stdlib together, place them under a shared parent: docs/react-docs and docs/python-stdlib. Then switch_project("docs") searches both in one call.

Use list_projects to discover available namespaces before switching.

Read the full file on GitHub · 417 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. 3d ago First seen · 417 lines · 4,209 tokens per session scan A 2cc9f821edb0

Subscribe to this mod's changes

Axon copilot-instructions.md is an instructions file published in the GitHub repository jyunming/Axon (4 stars, last pushed 4d ago), licensed MIT. It adds 4,209 tokens to every session, about $0.0210 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.