cortex-hub: Command for Claude Code

.claude/commands/cs.md

cs is a command for Claude Code from lktiep/cortex-hub. It costs 0 tokens per session (533 once invoked), scanned A, original, MIT.

A session-start workflow for the Cortex project that recalls earlier context, checks for recent changes and conflicts, and picks up available tasks before development work begins. It uses the project's stored session and memory records.

In plain words
What is it for?
Use it at the beginning of a development session to restore context, check repository changes, identify conflicts, and resume tasks.
Why use it?
It reduces the chance of losing prior decisions, overwriting other work, or starting from an outdated project state. The workflow requires its listed startup steps to finish before user work continues.

Command for Claude Code

Written for Claude Code: installed under .claude/.

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

Reuse

Borrowing it

Nothing to install: this file belongs to lktiep/cortex-hub. 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/lktiep/cortex-hub/master/.claude/commands/cs.md
Clone the repo
git clone --depth 1 https://github.com/lktiep/cortex-hub

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 cs

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/lktiep/cortex-hub/cs"><img src="https://agentmods.dev/badge/commands/lktiep/cortex-hub/cs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 533 The whole file, excluding the scripts and references it only reads on demand.
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.00000 $0.00533
Opus 5.5 $0.00000 $0.00213
Sonnet 5.5 $0.00000 $0.00107
Haiku 4.5 $0.00000 $0.00053

Measured today against content hash 70c4d9df3410, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cs 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 today.

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/commands/cs.md · 32 lines

What it actually says

/cs — Cortex Start v0.10.0

Version: 0.10.0 | Updated: 2026-10-22 Changelog: v0.10.0 — one call: session_start with the task answers the recall and the files to read Changelog: v0.9.4 — recall with the task's own words; the generic session query is already in session_start's answer Changelog: v0.9.0 — cortex_plan_quality is actually registered; it scores 0-10 and takes the request too Changelog: v0.8.0 — search-once/read-all-ten ordering from measured retrieval; recall no longer counts as discovery

1. Start, with the task

cortex_session_start(repo: "https://github.com/lktiep/cortex-hub.git", task: "<the task in a few words>")

The task's own words: the feature, the error, the file. The answer holds the recall for it (recalled: knowledge and memory) and where the code is (located: files, line ranges, symbols). That is the recall and the first lookup: do not repeat them with separate searches. A hook adds the conversation id, branch, IDE and identity. No task yet? Start without one, and call it again with the task once you have it.

2. Only when it applies

  • Uncommitted changes in git status → cortex_detect_changes(diff: "<git diff HEAD>").
  • Shared files another agent may hold → cortex_changes(projectId).
  • Conductor work → cortex_task_pickup(); then cortex_task_accept, cortex_task_update.
  • A plan of several steps → cortex_plan_quality(plan, request); 8.0 or more → execute.

3. While working

  • A symbol name → cortex_code_context(name). A behaviour → cortex_code_search(query). An exact literal → rg; in the organization's other repos → cortex_code_grep. Read the lines a hit names, not the whole file.
  • Something breaks → cortex_knowledge_search and cortex_memory_search with the error; a non-obvious fix → cortex_knowledge_store.
  • Before committing → build, typecheck and lint last, then cortex_detect_changes(diff); after pushing → cortex_code_reindex(repo, branch).
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. today Changed · -85 lines 70c4d9df3410
  2. yesterday Changed · -2 lines 05333cf177fa
  3. 13d ago Changed · +4 lines ca89a376c3ed
  4. 24d ago Changed · +20 lines 8fb707638f2e
  5. 1mo ago First seen · 95 lines · 0 tokens per session scan A 4bc850db1ff1

Subscribe to this mod's changes

cs is a command published in the GitHub repository lktiep/cortex-hub (93 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 533 tokens. 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.