SynapsCLI: Instructions file for Codex

AGENTS.md

SynapsCLI AGENTS.md is an instructions file for Codex, OpenCode from HaseebKhalid1507/SynapsCLI. It costs 15,996 tokens per session, scanned B, original, Apache-2.0.

Developer instructions for SynapsCLI, a Rust terminal-based AI agent made of several Cargo workspace crates. A Cargo workspace is one Rust project containing multiple related packages.

In plain words
What is it for?
They are for working on the agent's configuration, providers, tools, memory, extensions, terminal interface, and command-line runtime.
Why use it?
They provide the project layout and request lifecycle that contributors need before changing the code.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions subagents; mentions AGENTS.md; mentions Codex.

This is HaseebKhalid1507/SynapsCLI's own configuration. It tells Codex and OpenCode how to work on SynapsCLI 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 SynapsCLI configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/HaseebKhalid1507/SynapsCLI/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/HaseebKhalid1507/SynapsCLI

Made for: Codex, OpenCode.

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 SynapsCLI AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/haseebkhalid1507/synapscli/agents-md/github.svg)](https://agentmods.dev/instructions/haseebkhalid1507/synapscli/agents-md)
Your own site
<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.

agentmods 80×15 button for SynapsCLI AGENTS.md

Your own site · 80×15
<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>
Per session 15,996 This file is loaded in full into every session.
When invoked 15,996 The same file — it is already loaded in full.
Security scan B 1 finding. 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.15996 $0.15996
Opus 5.5 $0.06398 $0.06398
Sonnet 5.5 $0.03199 $0.03199
Haiku 4.5 $0.01600 $0.01600

Measured 5d ago against content hash 3b42853bc6c6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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)
AGENTS.md · 869 lines

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 primitives
  • synaps-engine (crates/agent-engine/) — runtime, provider catalogs, credential routing, tools, memory tools, reactive subagent lifecycle, MCP, skills, events, extensions, sidecar, watcher
  • synaps-tui (crates/agent-tui/) — the ratatui TUI
  • synaps (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)

Read the full file on GitHub · 869 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. 5d ago Changed · +35 lines · +1,512 tokens per session 3b42853bc6c6
  2. 11d ago Changed · +19 lines · +792 tokens per session aa9c10215580
  3. 25d ago Changed · +15 lines · +334 tokens per session aa5352060c94
  4. 1mo ago Changed · +33 lines · +500 tokens per session a9d497c34209
  5. 2mo ago First seen · 767 lines · 12,858 tokens per session scan B ff59cad28795

Subscribe to this mod's changes

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.

Related

SynapsCLI AGENTS.md compared with instructions from other repositories

SynapsCLI AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
SynapsCLI AGENTS.mdHaseebKhalid1507/SynapsCLIInstructions file55yesterdayApache-2.0B15,996Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,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