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.
npx agentmods add instructions/btraceio/btrace/copilot-instructionsgit clone --depth 1 https://github.com/btraceio/btraceWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.01098 | $0.01098 |
| Opus 5 | $0.00549 | $0.00549 |
| Sonnet 5 | $0.00220 | $0.00220 |
| Haiku 4.5 | $0.00110 | $0.00110 |
Grade A, and why
btrace 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 2d 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.
How it starts
The opening of the file, as written. The whole thing — 126 lines — stays where its author put it; the contents beside it link to each section on GitHub.
GitHub Copilot Instructions for BTrace
About BTrace
BTrace is a safe, dynamic tracing tool for the Java platform. It dynamically instruments running Java applications to inject tracing code at runtime using bytecode instrumentation.
Project Structure
- Gradle multi-module project with modules named
btrace-* - Core modules:
btrace-core,btrace-agent,btrace-runtime,btrace-client,btrace-instr - Build artifacts:
btrace-distfor distributions - Tests:
integration-tests/for integration tests,src/test/javain modules for unit tests - Documentation:
docs/directory
Architecture Overview
- btrace-agent: Attachable Java agent with class transformer, manages script lifecycle
- btrace-compiler: Verifies and compiles BTrace scripts to bytecode
- btrace-instr: ASM-based instrumentation and weaving utilities
- btrace-runtime: APIs for scripts (printing, timers, data collection)
- btrace-client: CLI/attach tooling for sending scripts to target JVM
- services: SPI for pluggable exporters (e.g., statsd)
Development Guidelines
Language & Versions
- Language: Java
- Source/Target: Java 8
- Build toolchain: JDK 11
- Test framework: JUnit Jupiter (JUnit 5)
Code Style
- Format: Google Java Format enforced via Spotless
- Packages: All under
io.btrace.* - Naming: Module names follow
btrace-<component>pattern - Imports: Order enforced; remove unused imports
- Comments: Only add if they match existing style or explain complex logic
Building & Testing
# Full build with unit tests
./gradlew build
# Build distribution only
./gradlew :btrace-dist:build
# Run unit tests
./gradlew test
# Run integration tests (requires dist build first)
./gradlew -Pintegration test
# Format code
./gradlew spotlessApply
# Check formatting
./gradlew spotlessCheck
Important Environment Variables
JAVA_HOME: Required for buildsTEST_JAVA_HOME: Required for integration tests (typically JDK 11)BTRACE_TEST_DEBUG=true: Enable verbose integration test outputBTRACE_HOME: Optional, points to exploded dist
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.
- 2d ago First seen · 126 lines · 1,098 tokens per session scan A ec3b5fa1b3d5
btrace copilot-instructions.md is an instructions file published in the GitHub repository btraceio/btrace (5,991 stars, last pushed 8d ago), licensed Apache-2.0. It adds 1,098 tokens to every session, about $0.0055 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.
Other instructions, from other repositories
Cobalt CLAUDE.md
Instructions for Auties00/Cobalt, covering cobalt, build, maven modules, architecture and client hierarchy.
imgui-java CLAUDE.md
Instructions for SpaiR/imgui-java: This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
SHAFT_ENGINE CLAUDE.md
Claude Code instructions for ShaftHQ/SHAFT_ENGINE, covering claude adapter and graphify.
toBeBetterJavaer AGENTS.md
AGENTS.md instructions for itwanger/toBeBetterJavaer, covering 工具权限设置, 工具使用规则, 获取网页内容 and 图片生成 / 文章配图.
Sighthound AGENTS.md
Instructions for Corgea/Sighthound, covering claude, commands, python / django test naming and agent skill.
deptrust AGENTS.md
Instructions for clidey/deptrust, covering what this is, commands, architecture, adding an ecosystem and distribution.