Borrowing it
Nothing to install: this file belongs to HaseebKhalid1507/SynapsCLI. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/HaseebKhalid1507/SynapsCLI/main/AGENTS.mdgit clone --depth 1 https://github.com/HaseebKhalid1507/SynapsCLIWrote 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.
[](https://agentmods.dev/instructions/haseebkhalid1507/synapscli/agents-md)<a href="https://agentmods.dev/instructions/haseebkhalid1507/synapscli/agents-md"><img src="https://agentmods.dev/badge/instructions/haseebkhalid1507/synapscli/agents-md/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.
<a href="https://agentmods.dev/instructions/haseebkhalid1507/synapscli/agents-md"><img src="https://agentmods.dev/badge/instructions/haseebkhalid1507/synapscli/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.15996 | $0.15996 |
| Opus 5.5 | $0.06398 | $0.06398 |
| Sonnet 5.5 | $0.03199 | $0.03199 |
| Haiku 4.5 | $0.01600 | $0.01600 |
Grade B, and why
SynapsCLI AGENTS.md scanned grade B with 1 finding 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 5d 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.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
│ ├── sudo_askpass/ — bash tool's sudo password path: `synaps-sudo-askpass` helper + per-call broker (Linux) How it starts
The opening of the file, as written. The whole thing — 869 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md — SynapsCLI Developer & Agent Guide
This is the onboarding doc for any agent (Cursor, Aider, or SynapsCLI itself) touching this codebase. Read this first. If you only read one file, read this one.
SynapsCLI is a terminal-native AI agent runtime written in Rust. ~210K LOC across the workspace (counts drift — verify with find src crates -name '*.rs' -not -path '*/target/*' | xargs wc -l). Cargo workspace with three library crates + a root binary crate:
synaps-core(crates/agent-core/) — config, session, auth, credential broker, models, memory, orchestration policy, prompt manifests, pricing, protocol primitivessynaps-engine(crates/agent-engine/) — runtime, provider catalogs, credential routing, tools, memory tools, reactive subagent lifecycle, MCP, skills, events, extensions, sidecar, watchersynaps-tui(crates/agent-tui/) — the ratatui TUIsynaps(src/main.rs) — the binary; CLI dispatch
Each crate has extern crate self as synaps_cli; and re-exports its dependencies, so internal synaps_cli:: paths still resolve for contributors navigating older references. Talks to Anthropic, OpenAI Codex, xAI, GitHub Copilot, Google Gemini, Azure OpenAI, Amazon Bedrock, Google Vertex AI, and Kimi natively, plus any OpenAI-compatible provider (Groq, Cerebras, NVIDIA, OpenRouter, local Ollama, etc.) via the built-in provider engine. Streams SSE, dispatches tools, renders a TUI.
Build & Test
cargo build --release # full release build (lto, single codegen unit, strip)
cargo build # dev build — faster compile, slower runtime
cargo test --workspace # all crates + integration tests
cargo test -p synaps-engine # single crate
cargo test -p synaps-engine -- --test-threads=1 # required for PTY tests (TTY fd contention)
cargo test --test extensions_e2e # end-to-end with real extension process
cargo clippy --workspace --all-targets --locked -- -D warnings # linting (CI gate)
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.
- 5d ago Changed · +35 lines · +1,512 tokens per session 3b42853bc6c6
- 11d ago Changed · +19 lines · +792 tokens per session aa9c10215580
- 25d ago Changed · +15 lines · +334 tokens per session aa5352060c94
- 1mo ago Changed · +33 lines · +500 tokens per session a9d497c34209
- 2mo ago First seen · 767 lines · 12,858 tokens per session scan B ff59cad28795
SynapsCLI AGENTS.md is an instructions file published in the GitHub repository HaseebKhalid1507/SynapsCLI (55 stars, last pushed yesterday), licensed Apache-2.0. It adds 15,996 tokens to every session, about $0.0640 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
SynapsCLI AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| SynapsCLI AGENTS.mdHaseebKhalid1507/SynapsCLI | Instructions file | 55 | yesterday | Apache-2.0 | B | 15,996 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | yesterday | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |