Cortex
CLAUDE.md2 starsChanged 11 months agoMITView on GitHub
Generated by Cortex Memory System - 2026-01-09 At the start of EVERY session, when the Cortex connector is available: Review loaded context before writing any code. If the connector is unavailable, read docs/strategy/PRODUCT_DIRECTION.md and inspect the repository directly; never claim that memory was queried when it was not. Cortex preserves verified engineering state so a human or coding agent can resume work safely across sessions, tools, and vendors. Prefer task, evidence, decision, artifact, verification, and handoff concepts over generic memories.…
- Reads credentials
In this repository3 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/cortex.mdcCursor rule
The file
We split this CLAUDE.md into the rules it gives an agent
5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 43
Read Code Carefully: Follow data flow, don't assume
- Distinctive: line 50
When reviewing, act as a critical senior developer:
- Very specific: line 77
Create reusable prompts in .claude/commands/:
- Very specific: line 104
Use /security-review for vulnerability analysis
- Distinctive: line 107
Never expose credentials in logs or errors
≈ “Common” is an estimate: at least 1 in 5 of the 28,633 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Claude Code Instructions
Generated by Cortex Memory System - 2026-01-09
Core Principle: Evidence-First Engineering
At the start of EVERY session, when the Cortex connector is available:
cortex_context("summary of current task")Review loaded context before writing any code. If the connector is unavailable, read docs/strategy/PRODUCT_DIRECTION.md and inspect the repository directly; never claim that memory was queried when it was not.
Product Boundary
Cortex preserves verified engineering state so a human or coding agent can resume work safely across sessions, tools, and vendors. Prefer task, evidence, decision, artifact, verification, and handoff concepts over generic memories. Read docs/strategy/README.md before architecture work.
Workflow Pattern
EXPLORE → PLAN → CODE → VERIFY → COMMIT| Phase | Action |
| Explore | Read files, query memory, understand context |
| Plan | Use think hard or ultrathink for complex problems |
| Code | Incremental changes with git add -p checkpoints |
| Verify | Run tests after each logical change |
| Commit | Conventional commits, document "why" not "what" |
Extended Thinking Modes
| Keyword | When to Use |
think | Simple decisions, quick reasoning |
think hard | Complex logic, multi-file changes |
ultrathink | Architecture decisions, security review |
Structured Debugging Workflow
- Clear Bug Report: Specific symptoms, not vague descriptions
- Read Code Carefully: Follow data flow, don't assume
- List All Causes: Generate hypotheses, not just fixes
- Rank by Likelihood: Prioritize investigation order
- Test Fixes in Isolation: One change at a time
Adversarial Code Review
When reviewing, act as a critical senior developer:
"Do a git diff and pretend you're a senior dev doing a code
review and you HATE this implementation. What would you
criticize? What edge cases am I missing?"Context and Evidence Integration
| Event | Action |
| Architecture decision | cortex_add(type="decision") |
| Discovered pattern | cortex_add(type="code") |
| Configuration choice | cortex_add(type="config") |
| Important fact | cortex_add(type="fact") |
| Potential risk | cortex_add(type="risk") |
File Imports (Monorepo Pattern)
Reference other docs with @path/to/file.md syntax:
@docs/architecture.md
@packages/core/README.mdCustom Commands
Create reusable prompts in .claude/commands/:
<!-- .claude/commands/fix-issue.md -->
Analyze issue #$ARGUMENTS and create a fixXML Tags for Structure
<context>Current task environment</context>
<instructions>Step-by-step goals</instructions>
<constraints>Must use existing patterns</constraints>
<output_format>Desired response structure</output_format>Anti-Patterns (NEVER DO)
- ❌ Never assume context not in memory
- ❌ Never claim that
cortex_contextwas queried when the connector is unavailable - ❌ Never commit without running tests
- ❌ Never use
anytype - useunknown - ❌ Never log secrets or PII
- ❌ Never over-engineer - keep changes focused
- ❌ Never refactor beyond what was asked
Security Practices
- Use
/security-reviewfor vulnerability analysis - Block risky operations on
.envand.git/ - Validate inputs before processing
- Never expose credentials in logs or errors
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

