Ix CLAUDE.md

Ix CLAUDE.md is an instructions file for coding agents from ix-infrastructure/Ix. It costs 3,958 tokens per session, scanned A, original, Apache-2.0.

Project instructions for Ix, a command-line tool and agent skill for exploring code. The repository includes a TypeScript CLI, a parser for many programming languages, documentation, and a visual web interface.

In plain words
What is it for?
Use them to build and test the CLI, run the parser and services, work with the agent skill, or follow the project’s setup and troubleshooting procedures.
Why use it?
They clarify which parts are local and which run as Docker services, reducing confusion when developing or troubleshooting the project.

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/ix-infrastructure/ix/claude-md
Clone the repo
git clone --depth 1 https://github.com/ix-infrastructure/Ix

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/ix-infrastructure/ix/claude-md.svg)](https://agentmods.dev/instructions/ix-infrastructure/ix/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/ix-infrastructure/ix/claude-md"><img src="https://agentmods.dev/badge/instructions/ix-infrastructure/ix/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 3,958 This file is loaded in full into every session.
When invoked 3,958 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.03958 $0.03958
Opus 5 $0.01979 $0.01979
Sonnet 5 $0.00792 $0.00792
Haiku 4.5 $0.00396 $0.00396

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

Security

Grade A, and why

Ix 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 · 296 lines

How it starts

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

Project: Ix (this repo)

This checkout is Ix itself plus the ix agent skill that wraps it. The backend is NOT in this repo — it is the released Docker image running at http://localhost:8090; the Compass visualizer serves the SPA + API proxy on http://localhost:8080. Requires Node ≥ 22, git, Docker, ripgrep.

Layout

Path What it is
ix-cli/ The @ix/cli TypeScript package — command routing (src/cli/), registration hub (src/cli/register/oss.ts), HTTP client (src/client/api.ts), response types (src/client/types.ts)
core-ingestion/ Tree-sitter parser/classifier (26 languages)
skills/ix/ The agent skill this project ships: SKILL.md, references/ (commands, output-formats, troubleshooting), scripts/ (bootstrap.sh/ps1)
docs/ api/ (HTTP API reference + OpenAPI spec), llm-format.md, prerequisites.md
scripts/ bootstrap.sh (first-run), install-skill.sh (deploy skill to ~/.claude/skills + ~/.agents/skills)

Commands

# CLI dev (from ix-cli/)
npm run build         # build-core-ingestion + tsc
npm run typecheck     # tsc --noEmit
npm test              # build + vitest + parser smoke
npm run dev           # tsx src/cli/main.ts

# Skill + tooling (from repo root)
bash scripts/bootstrap.sh [repo-root]   # install CLI, start backend, map repo
bash scripts/install-skill.sh           # deploy skills/ix to ~/.claude + ~/.agents
# Repackage the skill zip into ./dist (gitignored). Needs the skill-creator
# skill installed; on Windows set PYTHONIOENCODING=utf-8 or its emoji print crashes.
python "$HOME/.agents/skills/skill-creator/scripts/package_skill.py" skills/ix ./dist

# Visualizer / preview
ix view start --all --no-open --port 8080   # combined multi-workspace view
ix map --silent                             # refresh the graph after code changes

Boundaries & Gotchas (all verified this session — write these down, they cost hours)

  • ix reset is GLOBAL. ix reset / ix reset --code take no workspace_id and wipe every workspace's graph in the shared backend (Ix + packwise + any other). The only scoped variant is /v1/reset/workspace, which the CLI does not expose. After a reset, re-map each workspace.
  • The OSS↔Pro command boundary is derived at runtime, not declared. main.ts snapshots ossCmdNames right after registerOssCommands(); the Pro probe diffs against it. Adding a command to oss.ts silently makes it OSS; removing one makes Pro own it. registerProCommands is async and MUST be awaited.
  • ix patches is OSS, not Pro (#371). It is implemented here and registered in oss.ts. @ix/pro also registers a patches; commander throws on the duplicate and Pro's tryRegister swallows the throw, so the OSS one — which registers first — wins on a Kartr install too. Do not re-add it to PRO_COMMANDS: a stub for a command that exists in OSS shadows the real implementation, and the failure is silent rather than a crash.
  • ix upgrade wipes ~/.ix/cli/compass. The Compass assets ship only via ix upgrade, and re-running the installer re-extracts over them, so a re-install can leave ix view with no UI. bootstrap.sh re-runs ix upgrade when it finds the directory missing; skip that with IX_SKIP_COMPASS=1.
  • Windows path trap: Git Bash /tmp ≠ Windows C:\tmp — node/python cannot read files Git Bash wrote to /tmp. Use project-relative paths.

Read the full file on GitHub · 296 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 · 296 lines · 3,958 tokens per session scan A 915958d18876

Subscribe to this mod's changes

Ix CLAUDE.md is an instructions file published in the GitHub repository ix-infrastructure/Ix (821 stars, last pushed today), licensed Apache-2.0. It adds 3,958 tokens to every session, about $0.0198 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.