cortex-app CLAUDE.md

cortex-app CLAUDE.md is an instructions file for coding agents from mocaOS/cortex-app. It costs 2,278 tokens per session, scanned A, original, Apache-2.0.

Project instructions for maintaining the documentation used by the Cortex app’s coding agent. Cortex is a knowledge-base application that turns documents into searchable information and connected entities.

In plain words
What is it for?
Use them when navigating, changing, documenting, or deploying the Cortex app.
Why use it?
They tell the agent where project information lives, how the application is organized, and which documentation must stay synchronized.

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/mocaos/cortex-app/claude-md
Clone the repo
git clone --depth 1 https://github.com/mocaOS/cortex-app

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 cortex-app CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/mocaos/cortex-app/claude-md.svg)](https://agentmods.dev/instructions/mocaos/cortex-app/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/mocaos/cortex-app/claude-md"><img src="https://agentmods.dev/badge/instructions/mocaos/cortex-app/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,278 This file is loaded in full into every session.
When invoked 2,278 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.02278 $0.02278
Opus 5 $0.01139 $0.01139
Sonnet 5 $0.00456 $0.00456
Haiku 4.5 $0.00228 $0.00228

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

Security

Grade A, and why

cortex-app 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 · 85 lines

How it starts

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

CLAUDE.md

Cortex is an agentic knowledge base that ingests documents, extracts entities/relationships via LLMs, builds a Neo4j knowledge graph, and exposes it through a FastAPI REST API for RAG applications. Next.js 15 frontend for search, Q&A, graph exploration, and document management.

File Description
.claude/architecture.md Tech stack, backend service map, frontend routes & components
.claude/environment.md All 160+ env vars grouped by concern (DB, LLMs, features, skills, auth)
.claude/development.md Docker/local dev commands, Neo4j setup, deployment (Coolify, Dokploy, standalone)
.claude/design-system.md Design tokens, visual principles, .impeccable.md reference
.claude/maintenance.md Doc sync rules for README, documentation/, handbook/, design-system/, .claude/
.claude/frontend-patterns.md Explore browsers, graph expansion, chat rendering, source modal, pagination
.claude/domain/document-pipeline.md Upload → Docling → chunking → embedding → extraction → image analysis
.claude/domain/relationships.md Per-chunk extraction, batch analysis (Phase 1/2), ERR, multi-round, batching
.claude/domain/entities.md Fuzzy resolution, dedup (rapidfuzz), merging, editing, search, type normalization
.claude/domain/communities.md Leiden/Louvain detection, summarization, staleness tracking
.claude/domain/knowledge-graph-ui.md 3-step pipeline page, staleness, regeneration flow, image awareness
.claude/domain/rag-pipeline.md Researcher/writer agents, tools, speed/quality modes, hybrid search
.claude/domain/skills.md AgentSkills standard, auto-activation, http_request, config wizard
.claude/domain/admin-features.md System reset, library import/export, bulk download, API key management
.claude/domain/git-integration.md Git connector (GitHub/GitLab/Gitea): provider abstraction, incremental sync engine, document provenance, git_repo write tool, scheduled polling
.claude/domain/web-crawl.md MDHarvest powered by Crawl4ai — web→markdown harvesting via a (self-hosted or shared) crawl4ai service, crawl client, Web Import endpoints/UI, multi-tenant privacy model
.claude/domain/x402.md x402 pay-per-query monetization — env flag → runtime config → verification, monetized public keys (read-only + endpoint allowlist), settle-before-serve payment gate, vendor-agnostic facilitator client, earnings
.claude/domain/apps.md In-instance app hosting (ENABLE_APPS) — zip install, minted per-app keys, sandboxed iframe + app tokens, endpoint-allowlisted SSE-safe proxy, share-link grants; ecosystem plan in cortex-registry/ECOSYSTEM.md
.claude/domain/observability.md Langfuse LLM tracing & cost — env-driven activation, OpenAI client factory, agentic-trace grouping (observed_trace/traced_sse), manual records for Haystack embeddings + raw-httpx vision, streaming usage capture. GlitchTip error tracking (SENTRY_*): backend error_tracking.py, frontend @sentry/nextjs + source-map upload
.claude/bench.md Bench harness (bench/) — LLM-stack benchmark orchestrator, model registry, safety backup, heuristics. Not yet publicly documented — keep changes scoped.
.claude/qa.md QA & testing — backend pytest suite (.qa-venv, conftest fixtures, coverage map), live E2E harness (test_live_e2e*.py), canonical QA spreadsheet (qa/), defect log

Read the full file on GitHub · 85 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 · 85 lines · 2,278 tokens per session scan A 565b04dcb01f

Subscribe to this mod's changes

cortex-app CLAUDE.md is an instructions file published in the GitHub repository mocaOS/cortex-app (5 stars, last pushed 16d ago), licensed Apache-2.0. It adds 2,278 tokens to every session, about $0.0114 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-31.

Related

Other instructions, from other repositories