claude-copilot: Command for Claude Code

.claude/commands/knowledge-copilot.md

knowledge-copilot is a command for Claude Code from Everyone-Needs-A-Copilot/claude-copilot. It costs 0 tokens per session (733 once invoked), scanned A, original, MIT.

A command that finds the local Knowledge Copilot repository and passes control to its documented method for building a knowledge-management system. If it cannot find the repository, it guides the user toward locating it.

In plain words
What is it for?
Use it to start work with the Knowledge Copilot repository and its knowledge-system building process.
Why use it?
It avoids manually finding the repository and loading the right instructions. The command itself is only a starting point; the main method lives in the repository.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths; names the AskUserQuestion tool.

This is Everyone-Needs-A-Copilot/claude-copilot's own configuration. It tells Claude Code how to work on claude-copilot 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 claude-copilot configures →

Part of the claude-copilot plugin — 73 skills, 18 commands, 16 agents, 6 hooks shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to Everyone-Needs-A-Copilot/claude-copilot. 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/Everyone-Needs-A-Copilot/claude-copilot/main/.claude/commands/knowledge-copilot.md
Clone the repo
git clone --depth 1 https://github.com/Everyone-Needs-A-Copilot/claude-copilot

Made for: Claude Code.

Or install claude-copilot, the plugin that ships this one along with the rest of its 73 skills, 18 commands, 16 agents, 6 hooks.

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 knowledge-copilot

README.md
[![agentmods](https://agentmods.dev/badge/commands/everyone-needs-a-copilot/claude-copilot/knowledge-copilot/github.svg)](https://agentmods.dev/commands/everyone-needs-a-copilot/claude-copilot/knowledge-copilot)
Your own site
<a href="https://agentmods.dev/commands/everyone-needs-a-copilot/claude-copilot/knowledge-copilot"><img src="https://agentmods.dev/badge/commands/everyone-needs-a-copilot/claude-copilot/knowledge-copilot/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 knowledge-copilot

Your own site · 80×15
<a href="https://agentmods.dev/commands/everyone-needs-a-copilot/claude-copilot/knowledge-copilot"><img src="https://agentmods.dev/badge/commands/everyone-needs-a-copilot/claude-copilot/knowledge-copilot.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 733 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.00733
Opus 5.5 $0.00000 $0.00293
Sonnet 5.5 $0.00000 $0.00147
Haiku 4.5 $0.00000 $0.00073

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

Security

Grade A, and why

knowledge-copilot 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/commands/knowledge-copilot.md · 83 lines

How it starts

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

Knowledge Copilot — Bootstrapper

Locates the Knowledge Copilot repository on this machine, then hands off to the methodology inside it. This command is a thin bootstrapper; the substantive KMS-building methodology lives in the repo at docs/00-knowledge-copilot/01-build-a-kms.md.


Step 1 — Hydrate env vars

eval "$(cc env)"

This populates CC_KNOWLEDGE_REPO (and CC_SHARED_DOCS) if the machine config has a path set.


Step 2 — Locate the Knowledge Copilot repo

Resolve REPO_PATH by checking these sources in order; stop at the first hit:

# 1. Canonical env var (set via cc env)
echo "${CC_KNOWLEDGE_REPO:-}"

# 2. Config lookup (in case env wasn't hydrated this session)
cc config get paths.knowledge_repo 2>/dev/null && echo "FOUND_CONFIGURED"

# 3. Generic install location (symlink at ~/.claude/knowledge)
readlink -f ~/.claude/knowledge 2>/dev/null

Set REPO_PATH to the first resolved path. If none resolve, proceed to Step 3.


Step 3 — If repo not found: guide the user

The canonical GitHub repo during transition:

  • Current name: https://github.com/Everyone-Needs-A-Copilot/knowledge-copilot
  • Future canonical: https://github.com/Everyone-Needs-A-Copilot/knowledge-copilot

Ask the user (use AskUserQuestion):

Question: "No Knowledge Copilot repo found on this machine. What would you like to do?" Header: "Setup" Options:

  1. "Clone the canonical repo" — ask where to put it (default: a sibling directory next to this project), then git clone https://github.com/Everyone-Needs-A-Copilot/knowledge-copilot.git "$REPO_PATH" (the repo is public, so this works anonymously over HTTPS with no sign-in or SSH key)
  2. "Create a new knowledge repo" — start fresh with guided discovery
  3. "Link an existing local repo" — provide a path

After cloning or creating, set REPO_PATH and register it:

cc config set paths.knowledge_repo "$REPO_PATH"
cc config set paths.shared_docs "$REPO_PATH"

Read the full file on GitHub · 83 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 Changed 4da1d2ea607e
  2. 1mo ago First seen · 83 lines · 0 tokens per session scan A 4fbc12cb6ee2

Subscribe to this mod's changes

knowledge-copilot is a command published in the GitHub repository Everyone-Needs-A-Copilot/claude-copilot (14 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 733 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-09-04.