synapse-cli-ts: Instructions file for Codex

AGENTS.md

synapse-cli-ts AGENTS.md is an instructions file for Codex, OpenCode from 2ndbrainlabs-ai/synapse-cli-ts. It costs 2,053 tokens per session, scanned A, original, Apache-2.0.

The main contributor instructions for Synapse CLI, a TypeScript command-line tool that turns a codebase into a runnable MCP server. They explain the repository, its commands, architecture, tools, testing, and release process.

In plain words
What is it for?
Use them to understand how the repository works, choose the right development procedure, run checks, and follow its rules for code generation and publishing.
Why use it?
They give coding agents and contributors the project context and required workflow needed to make changes without breaking its conventions or release process.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

This is 2ndbrainlabs-ai/synapse-cli-ts's own configuration. It tells Codex and OpenCode how to work on synapse-cli-ts 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 synapse-cli-ts configures →

Reuse

Borrowing it

Nothing to install: this file belongs to 2ndbrainlabs-ai/synapse-cli-ts. 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/2ndbrainlabs-ai/synapse-cli-ts/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/2ndbrainlabs-ai/synapse-cli-ts

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 synapse-cli-ts AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/2ndbrainlabs-ai/synapse-cli-ts/agents-md/github.svg)](https://agentmods.dev/instructions/2ndbrainlabs-ai/synapse-cli-ts/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/2ndbrainlabs-ai/synapse-cli-ts/agents-md"><img src="https://agentmods.dev/badge/instructions/2ndbrainlabs-ai/synapse-cli-ts/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 synapse-cli-ts AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/2ndbrainlabs-ai/synapse-cli-ts/agents-md"><img src="https://agentmods.dev/badge/instructions/2ndbrainlabs-ai/synapse-cli-ts/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,053 This file is loaded in full into every session.
When invoked 2,053 The same file — it is already loaded in full.
Security scan A 0 findings. 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.02053 $0.02053
Opus 5.5 $0.00821 $0.00821
Sonnet 5.5 $0.00411 $0.00411
Haiku 4.5 $0.00205 $0.00205

Measured yesterday against content hash 4b4b751af19c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

synapse-cli-ts AGENTS.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 yesterday.

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.

AGENTS.md · 104 lines

How it starts

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

AGENTS.md

Instructions for every coding agent (Claude Code, Cursor, Codex, Copilot, Gemini) and for humans. This file is the single source of truth. Agent-specific files (CLAUDE.md, .claude/) only point here.

This is a public repository. Everything you write here (code, docs, tests, commit messages, PR descriptions) is visible to anyone.

What this repo is

@2ndbrainlabs-ai/synapse-cli, the synapse binary: a Node ESM TypeScript CLI that reads a codebase and generates a runnable MCP server (Python / FastMCP today).

  • Code exploration always runs on the user's machine (tree-sitter surface extraction).
  • Code generation runs either on the hosted Synapse backend over gRPC (the default) or in-process on the user's own model with --local.
  • Stack: TypeScript (strict), commander, @grpc/grpc-js, tree-sitter, zod, vitest, tsup, ESLint.
  • Distribution: npm, published by release-please from GitHub Actions. See docs/RELEASING.md.

Read docs/architecture.md for how the pieces fit together.

Commands

Command What it does
npm ci --legacy-peer-deps Install exactly what CI installs
npm run dev -- <command> [flags] Run the CLI from source with tsx (e.g. npm run dev -- build --local)
npm run build tsup bundle into dist/
npm run lint ESLint over src/ and tests/
npm run typecheck tsc --noEmit on src/ only
npm run typecheck:tests Typecheck src/ and tests/ (tsconfig.test.json)
npm test vitest run, the whole suite
npx vitest run <file> / npx vitest run -t "<name>" One test file / tests matching a name
npm run ci lint + typecheck + typecheck:tests + test + build. Run this before you say a task is done.
npm audit --audit-level=high The dependency audit CI runs
npm pack --dry-run List exactly what would be published to npm

More detail, including the local-backend --dev flag: docs/development.md.

Read the full file on GitHub · 104 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. yesterday First seen · 104 lines · 2,053 tokens per session scan A 4b4b751af19c

Subscribe to this mod's changes

synapse-cli-ts AGENTS.md is an instructions file published in the GitHub repository 2ndbrainlabs-ai/synapse-cli-ts (6 stars, last pushed yesterday), licensed Apache-2.0. It adds 2,053 tokens to every session, about $0.0082 per session on Opus 5.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-11-09.

Related

synapse-cli-ts AGENTS.md compared with instructions from other repositories

synapse-cli-ts AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
synapse-cli-ts AGENTS.md2ndbrainlabs-ai/synapse-cli-tsInstructions file6yesterdayApache-2.0A2,053Codex, OpenCode
create-trimble-app typescript.instructions.mdjulianoczkowski/create-trimble-appInstructions file34mo agoMITA583GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,649GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot