cognee: Command for GitHub Copilot

.github/prompts/docs_edit.md

docs_edit is a command for GitHub Copilot from topoteretes/cognee. It costs 0 tokens per session (442 once invoked), scanned A, original, Apache-2.0.

A documentation editing agent for the Cognee project. It updates existing Markdown or MDX pages to describe behavior and API changes from a merged code change.

In plain words
What is it for?
It helps inspect a planned documentation scope, verify implementation details, and edit the specified documentation files.
Why use it?
It keeps documentation edits tied to the actual change and source code, rather than adding unrelated improvements or guessing about behavior.

Command for GitHub Copilot

Written for GitHub Copilot: a Copilot chat mode or prompt.

This is topoteretes/cognee's own configuration. It tells GitHub Copilot how to work on cognee 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 cognee configures →

About the project

Cognee is an AI memory platform that stores information in a self-hosted knowledge graph so agents can retain context across sessions. It ingests data, connects related information, and helps agents retrieve it for reasoning and actions. The catalogue includes skills and instructions that extend agent workflows around Cognee.

topoteretes/cognee · 30,576 stars · on GitHub · cognee.ai

Reuse

Borrowing it

Nothing to install: this file belongs to topoteretes/cognee. 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/topoteretes/cognee/main/.github/prompts/docs_edit.md
Clone the repo
git clone --depth 1 https://github.com/topoteretes/cognee

Made for: GitHub Copilot.

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 docs_edit

README.md
[![agentmods](https://agentmods.dev/badge/commands/topoteretes/cognee/docs_edit.svg)](https://agentmods.dev/commands/topoteretes/cognee/docs_edit)
Your own site
<a href="https://agentmods.dev/commands/topoteretes/cognee/docs_edit"><img src="https://agentmods.dev/badge/commands/topoteretes/cognee/docs_edit.svg" alt="Measured on agentmods" 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 442 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.00442
Opus 5 $0.00000 $0.00221
Sonnet 5 $0.00000 $0.00088
Haiku 4.5 $0.00000 $0.00044

Measured yesterday against content hash 3a33cd952877, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

docs_edit 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 yesterday.

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.

.github/prompts/docs_edit.md · 35 lines

How it starts

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

You are a documentation improvement agent for the Cognee project.

Update the existing Cognee documentation to reflect this merged PR. Your job is to document the actual behavior and API changes introduced by this PR, not to make adjacent or generic documentation improvements.

Required inputs

Read these first:

  • Documentation scope plan
  • Branch notes
  • Documentation assessment

Available resources

  • Documentation repo (./docs-repo): Contains the documentation pages. Use existing .md and .mdx pages as the primary targets for edits. Read ./docs-repo/docs.json only if the scope plan requires navigation context.
  • Cognee source code (current workspace root): Use the source code to verify actual implementation details, defaults, supported options, function signatures, env vars, and behavior.

Editing rules

  1. Follow the documentation scope plan.
  2. If the scope plan says Docs Needed is false, make no documentation edits and print the reason.
  3. Inspect only the source files listed in the scope plan unless they are insufficient to verify a specific planned edit.
  4. Edit only docs files listed in the scope plan unless they are clearly the wrong target; if so, choose the smallest better existing docs target.
  5. Document only user-facing behavior, public API changes, examples, or developer-facing semantics that actually changed in this PR.
  6. If a proposed docs edit cannot be traced back to a concrete source diff in this PR, do not make that edit.
  7. Do not present pre-existing behavior as if this PR introduced it.
  8. Do not make unrelated cleanup edits, style edits, or generic improvements.
  9. Edit at most 3 documentation files unless the scope plan explicitly justifies more.
  10. Prefer updating existing pages over creating new ones.
  11. Do not edit docs.json unless the scope plan says a new docs page is strictly required.
  12. Only edit documentation files inside ./docs-repo. Do NOT modify the source repository files, workflow files, or non-documentation assets.
  13. Do NOT create git commits.

Read the full file on GitHub · 35 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. yesterday First seen · 35 lines · 0 tokens per session scan A 3a33cd952877

Subscribe to this mod's changes

docs_edit is a command published in the GitHub repository topoteretes/cognee (30,576 stars, last pushed today), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 442 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-07.