tokensafe
Copilot instructions47 starsChanged 2 days agoApache-2.0View on GitHub
In this repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- rules/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/tokensafe.mdcCursor rule
- token-optimizerSkill
The file
We found no rules to list in this file: it reads as prose or reference rather than instructions.
Files
<!-- tokensafe -->TOKENSAFE GRAPH-FIRST OPTIMIZATION PROTOCOL
The full protocol is installed globally in the agent-level instructions (~/.zcode/AGENTS.md, ~/.claude/CLAUDE.md, ~/.codex/AGENTS.md, ~/.kimi-code/AGENTS.md) and applies to this project. Core tools: tokensafe:repo_map(view='graph'|'api'|'tree') for architecture & directory trees, tokensafe:scoped_search (single or queries batch, never raw grep/find), tokensafe:smart_read_file (symbol, targets bundle, or .d.ts package_name), tokensafe:apply_edits for multi-file edits, tokensafe:oumv (MANDATORY first on OUMV-supported React/Vue/Go/FastAPI stacks — live or static offline; check status in mixed monorepos), tokensafe:session_context(action='budget'|'compact'|'prune'|'mistakes') for context & anti-stuck hygiene, and tokensafe:run_helper(action='sanitize'|'guard'|'diff'|'deps'|'web'|'expand'|'image'|'compress'); never hardcode secret fallbacks; append the ⚡ TokenSafe Turn Savings footer on tool-using turns.
<!-- /tokensafe -->Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

