setup

setup is a command for Claude Code from techtheist/engram. It costs 28 tokens per session (481 once invoked), scanned C, original, MIT.

A setup command that connects a repository to Engram, a local project-knowledge system, and registers its MCP server. It also handles the required binary and repository configuration.

In plain words
What is it for?
Use it when preparing a repository for Engram's capture and session-brief features, then restart the coding-agent session so the tools appear.
Why use it?
It removes the manual work of installing Engram, ignoring its local files, and adding the server connection.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the engram plugin — 2 skills, 3 commands, 1 MCP server shipped together

Good fit Use it when preparing a repository for Engram's capture and session-brief features, then restart the coding-agent session so the tools appear.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/techtheist/engram/setup
Install

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.

Clone the repo
git clone --depth 1 https://github.com/techtheist/engram

Made for: Claude Code.

Or install engram, the plugin that ships this one along with the rest of its 2 skills, 3 commands, 1 MCP server.

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 setup

README.md
[![agentmods](https://agentmods.dev/badge/commands/techtheist/engram/setup/github.svg)](https://agentmods.dev/commands/techtheist/engram/setup)
Your own site
<a href="https://agentmods.dev/commands/techtheist/engram/setup"><img src="https://agentmods.dev/badge/commands/techtheist/engram/setup/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 setup

Your own site · 80×15
<a href="https://agentmods.dev/commands/techtheist/engram/setup"><img src="https://agentmods.dev/badge/commands/techtheist/engram/setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 481 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 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.00028 $0.00481
Opus 5.5 $0.00011 $0.00192
Sonnet 5.5 $0.00006 $0.00096
Haiku 4.5 $0.00003 $0.00048

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

Security

Grade C, and why

setup scanned grade C with 2 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 21d 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.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -fsSL https://raw.githubusercontent.com/techtheist/engram/main/install.sh | sh -s -- --bin-only

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -fsSL https://raw.githubusercontent.com/techtheist/engram/main/install.sh | sh -s -- --bin-only
claude-plugin/commands/setup.md · 25 lines

What it actually says

Wire the current repository to Engram. The plugin already provides the capture skill, the session-brief hook and the MCP server globally — the server only binds repositories that are wired, so the per-repo work is the binary and marking this repo as a project. Never install a project-level skill, hook, or .mcp.json entry here.

  1. Binary. Check command -v engram-alpha (also ~/.local/bin/engram-alpha and ~/.cargo/bin/engram-alpha). If missing, ask the user once for consent to install, then run:

    curl -fsSL https://raw.githubusercontent.com/techtheist/engram/main/install.sh | sh -s -- --bin-only
    

    If they decline, stop and point them at https://github.com/techtheist/engram#install. If engram-alpha --version is older than 0.9.9, run engram-alpha update — the plugin's server needs mcp --wired-only.

  2. Wire the repo. From the repository root:

    engram-alpha setup --cli claude --mcp-only
    

    This git-ignores .engram/ and creates it — the directory is what tells the plugin's server this repo is a project. With the plugin installed it writes no .mcp.json entry (that would load every engram tool twice); if it reports an existing engram entry in .mcp.json, remove that entry.

  3. Connect. Tell the user to run /mcp and reconnect the engram server (or start a new session) so it binds this repo. The next session opens pre-briefed via the plugin's SessionStart hook.

  4. Cold start. If this created a brand-new graph, mention that once connected, the skill offers a one-time seeding pass from the project's existing docs/history — and that /engram:pane opens the graph UI.

If anything fails, report the exact error — never pretend the repo is wired.

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. 21d ago Changed · +4 tokens per session af050534f3df
  2. 1mo ago Changed 96ac40bbfe1e
  3. 1mo ago First seen · 25 lines · 24 tokens per session scan C 34651abab0da

Subscribe to this mod's changes

setup is a command published in the GitHub repository techtheist/engram (32 stars, last pushed yesterday), licensed MIT. It adds 28 tokens to every session and 481 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.