Ctxo: Instructions file for Claude Code

CLAUDE.md

Ctxo CLAUDE.md is an instructions file for Claude Code from alperhankendi/Ctxo. It costs 5,885 tokens per session, scanned A, original, MIT.

A project guide for Ctxo, a Node.js tool that gives AI coding assistants code context based on dependencies and Git history.

In plain words
What is it for?
Use it when working on Ctxo in its pnpm workspace, including building packages, running tests and type checks, and installing or using its command-line tool.
Why use it?
It keeps development and usage instructions in one place, so contributors and users know how to build, test, check, and run the project.

Instructions file for Claude Code

Written for Claude Code: PreToolUse hook event. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

This is alperhankendi/Ctxo's own configuration. It tells Claude Code how to work on Ctxo 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 Ctxo configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import { createLogger } from '../../core/logger.js';.

Reuse

Borrowing it

Nothing to install: this file belongs to alperhankendi/Ctxo. 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/alperhankendi/Ctxo/master/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/alperhankendi/Ctxo

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/alperhankendi/ctxo/claude-md.svg)](https://agentmods.dev/instructions/alperhankendi/ctxo/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/alperhankendi/ctxo/claude-md"><img src="https://agentmods.dev/badge/instructions/alperhankendi/ctxo/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 5,885 This file is loaded in full into every session.
When invoked 5,885 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.05885 $0.05885
Opus 5 $0.02942 $0.02942
Sonnet 5 $0.01177 $0.01177
Haiku 4.5 $0.00588 $0.00588

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

Security

Grade A, and why

Ctxo 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 7d 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 · 471 lines

How it starts

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

CLAUDE.md — Ctxo

Project Overview

Ctxo is a Model Context Protocol (MCP) server that gives AI coding assistants dependency-aware, history-enriched context for codebases. It delivers "Logic-Slices" — a symbol plus all transitive dependencies, git intent, anti-pattern warnings, and change health scores — in under 500ms.

  • Type: npm package / CLI tool / MCP server (stdio transport)
  • Author: Alper Hankendi
  • Status: v0.7.0-alpha.0 - 14 MCP tools, pnpm monorepo with 6 packages, 987+ tests
  • Language: TypeScript (ESM-first, "type": "module")
  • Runtime: Node.js >= 20

Quick Reference

# Dev (pnpm workspace)
pnpm --filter @ctxo/cli dev       # zero-build dev run
pnpm -r build                     # build all packages
pnpm -r test                      # run tests across workspace (987+ tests)
pnpm -r typecheck                 # typecheck all packages
pnpm --filter @ctxo/cli test:unit # unit tests only
pnpm --filter @ctxo/cli test:e2e  # end-to-end tests
pnpm --filter @ctxo/cli build     # build CLI package to dist/

# Usage (consumer)
npm install -g @ctxo/cli            # one-time global install (gives you the `ctxo` command)
ctxo install                        # install language plugins (interactive)
ctxo install typescript go --yes    # non-interactive install of specific plugins
ctxo install java                   # syntax tier + full-tier analyzer when JRE 17+ detected
ctxo install java --full-tier       # force full-tier analyzer install
ctxo install java --syntax-only     # skip analyzer, syntax tier only
ctxo install --dry-run --pm pnpm    # preview install plan with chosen pm
ctxo update                         # check + apply updates for ctxo + plugins
ctxo update --check                 # check only, exit 0
ctxo update --print                 # print install command, never execute
ctxo update --global                # force a global install
ctxo update --json                  # machine-readable output
ctxo index                          # build codebase index
ctxo index --install-missing        # auto-install detected plugins, then index
ctxo index --check                  # CI gate: fail if index stale
ctxo index --skip-history           # fast re-index without git history
ctxo index --max-history 5          # limit commit history per file
ctxo watch                          # file watcher for incremental re-index
ctxo sync                           # rebuild SQLite from committed JSON
ctxo init                           # install git hooks + language detection/install prompt
ctxo init --no-install              # init without plugin install prompt
ctxo status                         # show index manifest
ctxo doctor                         # health check all subsystems (--json, --quiet)
ctxo doctor --fix                   # dependency-ordered remediation (--dry-run, --yes)
ctxo version                        # verbose version report (default)
ctxo --version --verbose            # version + installed plugins list
ctxo --version --json               # machine-readable version report
ctxo visualize                      # generate interactive dependency graph HTML
ctxo visualize --max-nodes 200      # limit to top 200 symbols by PageRank
ctxo visualize --no-browser         # skip auto-opening browser
ctxo blast-radius <symbolId> --json # blast radius for one symbol, JSON to stdout
ctxo gate --preview                 # preview which symbols the guard would block
ctxo gate --preview --json          # same, machine-readable

# Environment
DEBUG=ctxo:*                  # enable all debug output
DEBUG=ctxo:git,ctxo:storage   # enable specific namespaces
CTXO_RESPONSE_LIMIT=16384     # response truncation threshold (default 8192)

Read the full file on GitHub · 471 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. 7d ago First seen · 471 lines · 5,885 tokens per session scan A ab9d3149610f

Subscribe to this mod's changes

Ctxo CLAUDE.md is an instructions file published in the GitHub repository alperhankendi/Ctxo (65 stars, last pushed today), licensed MIT. It adds 5,885 tokens to every session, about $0.0294 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.

Related

Other instructions, from other repositories

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens