Skip to content

Self-managing context memory protocol for GitHub Copilot. Autonomous setup via a single Genesis Prompt.

License

Notifications You must be signed in to change notification settings

muaz742/copilot-context-cortex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧠 Copilot Context Cortex

The "Self-Managing" Memory Protocol for GitHub Copilot.

Cortex is a single-prompt protocol that transforms your GitHub Copilot into a context-aware partner. It establishes a persistent memory structure, enforces project-specific rules, and adopts user-centric versioning logic autonomously.

🧠 Philosophy: Why "Cortex"?

In brain anatomy, the Cerebral Cortex is the outer layer responsible for high-level functions like memory, attention, and decision-making.

This protocol is named Cortex because it adds a "thinking layer" to your AI assistant:

  • Spinal Cord (Reflexes): GitHub Copilot's base code completion.
  • Cortex (Memory/Consciousness): The .github/context structure that remembers why decisions were made (DECISION_LOG) and how you prefer to work (WORKFLOW).

🚀 Quick Start

  1. Copy the prompt from genesis-prompt.md.
  2. Open Copilot Chat in your IDE (VS Code, JetBrains, etc.).
  3. Paste the prompt and press Enter.
  4. Done. Your project now has a brain.

✨ Features

  • Autonomous Setup: Analyzes your project (Languages, Git history, Architecture) to populate its own memory.
  • User-Centric SemVer: Intelligently decides between PATCH, MINOR, and MAJOR based on user impact, not just code changes.
  • Active Learning: "Learn this" or "Don't do that" commands automatically update the WORKFLOW.md file.
  • Safety First: Enforces git status checks and prevents committing sensitive data.

📂 The Cortex Structure

The protocol creates a smart .github/ structure:

  • .github/copilot-instructions.md: The Router (Reflexes & Logic).
  • .github/context/PROJECT_DNA.md: Technical Identity & Tech Stack.
  • .github/context/WORKFLOW.md: Rules, Preferences & Anti-Patterns.
  • .github/context/DECISION_LOG.md: Architecture Decision Records (ADR).
  • .github/context/SESSION_JOURNAL.md: Session Memory & Next Steps.

🤝 Contributing

Contributions are welcome! Please check CHANGELOG.md to understand the evolution and philosophy behind Cortex before submitting changes.

📄 License

MIT License.

About

Self-managing context memory protocol for GitHub Copilot. Autonomous setup via a single Genesis Prompt.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors