agentgram CLAUDE.md

agentgram CLAUDE.md is an instructions file for coding agents from dfradehubs/agentgram. It costs 1,457 tokens per session, scanned A, original, MIT.

Repository instructions for Agentgram, a system that lets users interact with multiple AI agents through a web interface. They describe the Go API, Next.js web app, project folders, and basic startup commands.

In plain words
What is it for?
Use them when developing Agentgram, starting its API and web app, or working with its Docker-based local environment.
Why use it?
They give a coding agent the project context needed to navigate the repository and run its development environment. This reduces time spent discovering the architecture and commands.

Instructions file

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.

agentmods
npx agentmods add instructions/dfradehubs/agentgram/claude-md
Clone the repo
git clone --depth 1 https://github.com/dfradehubs/agentgram

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 agentgram CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/dfradehubs/agentgram/claude-md.svg)](https://agentmods.dev/instructions/dfradehubs/agentgram/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/dfradehubs/agentgram/claude-md"><img src="https://agentmods.dev/badge/instructions/dfradehubs/agentgram/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,457 This file is loaded in full into every session.
When invoked 1,457 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.01457 $0.01457
Opus 5 $0.00728 $0.00728
Sonnet 5 $0.00291 $0.00291
Haiku 4.5 $0.00146 $0.00146

Measured 4d ago against content hash 251d169b8557, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

agentgram CLAUDE.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 4d 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.

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.

CLAUDE.md · 138 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Project Overview

Agentgram is a unified interface for interacting with multiple AI agents. The system consists of:

  • API (Go): Multiplexer that connects to remote agents, handles authentication (Keycloak JWT), permissions (Google Workspace groups/users), and emits AG-UI protocol events
  • Web (Next.js + SSE/AG-UI): User interface for chatting with agents

Repository Structure

agentgram/
├── api/              # Go API (multiplexer)
│   ├── cmd/server/   # Entry point
│   ├── internal/     # Core packages
│   ├── configs/      # YAML configuration
│   ├── docker/       # Docker compose for dev environment
│   └── test/         # Mock agent and test frontend
├── web/              # Next.js web with SSE/AG-UI
└── Makefile          # Root commands

Quick Start

# Full environment with Docker (api + mock agents + test frontend)
make docker-up

# Or run separately:
make api              # Terminal 1: Go API on :8080
make web              # Terminal 2: Next.js on :3000

Architecture

┌──────────────────────┐     ┌─────────────────────┐     ┌─────────────────┐
│        Web           │────>│        API          │────>│  Agent (Custom) │
│  (Next.js+SSE/AG-UI)│<────│   (Go Multiplexer)  │<────│  SSE or JSON    │
└──────────────────────┘     │                     │     └─────────────────┘
         ↑                   │  - JWT Auth         │     ┌─────────────────┐
    AG-UI Events             │  - Permissions      │────>│  Agent (A2A)    │
                             │  - AG-UI Response   │<────│  JSON-RPC       │
                             │  - Session Store    │     └─────────────────┘
                             └─────────────────────┘

Key Design Decisions

  1. AG-UI Protocol: API emits AG-UI events (RUN_STARTED, TEXT_MESSAGE_*, RUN_FINISHED) that SSE/AG-UI consumes directly
  2. Protocol Abstraction: Web doesn't know if agent uses REST or A2A - API handles conversion
  3. Sessions in Redis: The API manages sessions directly via store.SessionStore (Redis); agents are stateless with respect to sessions
  4. Permission Model: Access controlled by Google Workspace groups + individual users per agent
  5. Configuration: Bootstrap and secret-bearing configuration lives in YAML with ${ENV:VAR} syntax; operational settings that admins can tune at runtime live in the runtime_config database table
  6. Security Layers: Security headers, body size limits, JWT audience+nonce validation, rate limiting, sanitized error responses

Read the full file on GitHub · 138 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. 4d ago First seen · 138 lines · 1,457 tokens per session scan A 251d169b8557

Subscribe to this mod's changes

agentgram CLAUDE.md is an instructions file published in the GitHub repository dfradehubs/agentgram (20 stars, last pushed 13d ago), licensed MIT. It adds 1,457 tokens to every session, about $0.0073 per session on Opus 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-08-30.