Skip to content

A carefully designed set of custom instructions that provide Copilot with a persistent project context integrated with VS Code via structured `Markdown` files. It helps GitHub Copilot maintain understanding of the project across sessions, record decisions and task progress, and quickly provide relevant information when needed.

Notifications You must be signed in to change notification settings

evalor/copilot-memory-bank

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

5 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿง  Copilot Memory Bank

A carefully designed set of custom instructions that provide Copilot with a persistent project context integrated with VS Code via structured Markdown files. It helps GitHub Copilot maintain understanding of the project across sessions, record decisions and task progress, and quickly provide relevant information when needed.

ENGLISH ็ฎ€ไฝ“ไธญๆ–‡

๐Ÿ’ก Inspiration

This project was inspired by:

โœจ Features

  • Persistent Memory: Maintain project knowledge across Copilot sessions using structured Markdown files
  • Task Management: Track tasks with detailed progress logs and status updates
  • Project Intelligence: Capture patterns, preferences, and insights to improve collaboration
  • Real-time Updates: Continuously sync context; the AGENT updates its memory at appropriate times

๐ŸŽฏ Concept & Workflow

Persist project details using a set of structured documents so Copilot can retain previous session knowledge across multiple conversations without re-prompting for the same information.

  • ๐Ÿ—‚๏ธ Collect: Scan the repository for high-value information (architecture notes, decisions, READMEs, unfinished tasks).
  • ๐Ÿงพ Structure: Place canonical files under .memory-bank/ for project brief, active context, decision logs, progress, and tasks.
  • ๐Ÿ” Sync: Keep files updated during development (automatic triggers or manual update memory bank).
  • ๐Ÿงญ Surface: Use these files as context, prompts, and decision history for Copilot.

๐Ÿš€ Quick Start

  1. Clone or download this repository and ensure the custom instructions are placed in the project's .github directory.
  2. Choose a high-performance model and use the built-in Agent mode to run the initialize memory bank command to initialize the Memory Bank.
  3. Review the initially generated memory bank documents and edit them to match the current project state.
  4. After updating the documents, Copilot will gain a deeper understanding of your project and use that knowledge in subsequent development.

Tip: Manually creating a projectbrief.md with key project information will significantly improve Copilot's initial performance.


๐Ÿ“ Memory Bank Structure

.memory-bank/
โ”œโ”€โ”€ projectbrief.md       # Project summary and goals
โ”œโ”€โ”€ productContext.md     # Project goals, users, and value
โ”œโ”€โ”€ activeContext.md      # Current session focus and next steps
โ”œโ”€โ”€ systemPatterns.md     # System architecture and technical decisions
โ”œโ”€โ”€ techContext.md        # Technologies used and technical constraints
โ”œโ”€โ”€ progress.md           # Completed work and pending items
โ””โ”€โ”€ tasks/
    โ”œโ”€โ”€ _index.md         # Tasks overview
    โ””โ”€โ”€ TASKID-*.md       # Individual task files

๐Ÿ” Memory Management

  • Automatic: Optional automatic update triggers (pattern-based) let Copilot update the memory bank at appropriate times.
  • Manual: Use the update memory bank command to force Copilot to re-scan the project and refresh the memory bank.

๐Ÿ—‚๏ธ Task Management

Manage tasks and progress under the .memory-bank/tasks/ folder. Each task is an individual Markdown file (format: TASKID-taskname.md) and is listed in tasks/_index.md for easy tracking and history. You can ask Copilot to explain how the task system works, for example:

Please tell me how the Memory Bank task system works.

Management Flow

Create a task โ†’ Document implementation plan โ†’ Write progress logs in the task file โ†’ Sync status in tasks/_index.md.

Available Commands

  • add task / create task: Create a new task file and add it to tasks/_index.md.
  • update task [ID]: Add a progress entry for today in the specified task file and update status fields (Status, Updated, etc.).
  • show tasks [filter]: Display task lists with filters.

๐Ÿค Contributing

Contributions are welcome: please follow the Copilot custom instruction format when improving this repository.


๐Ÿ“œ License (MIT)

You are permitted to use, copy, modify, merge, publish, distribute, and sublicense the contents of this repository without restriction.

About

A carefully designed set of custom instructions that provide Copilot with a persistent project context integrated with VS Code via structured `Markdown` files. It helps GitHub Copilot maintain understanding of the project across sessions, record decisions and task progress, and quickly provide relevant information when needed.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published