airs-memspec
A CLI tool for Multi-Project Memory Bank management and GitHub Copilot custom instructions integration.
Overview
airs-memspec is a lightweight command-line tool designed to streamline AI-assisted development workflows by managing Multi-Project Memory Bank structures and GitHub Copilot custom instructions. The tool enables seamless context preservation and intelligent project state management across multiple sub-projects within a workspace.
Key Features
- 📦 Custom Instructions Management: Install and manage GitHub Copilot custom instructions
- 🏗️ Memory Bank Awareness: Parse and display Multi-Project Memory Bank structures
- 📊 Project State Visualization: Quick overview of workspace and sub-project states
- 🎯 Context-Aware Reading: Understand workspace hierarchy and sub-project relationships
- ⚡ Lightweight & Fast: Simple tool focused on essential memory bank operations
Installation
From Source
Using Cargo
Usage
1. Install Custom Instructions
# Install to default .copilot directory
# Install to custom path with force overwrite
2. Check Development Status
# Show workspace overview
# Show specific project status
3. View Context Information
# Show workspace context
# Show sub-project active context
4. View Task Management
# Show tasks with smart filtering (15 most relevant)
# Show all tasks for a specific project
# Show tasks with specific status
Command Reference
Installation Commands
install --path <PATH>- Install custom instructions to specified directory
Status Commands
status [--workspace] [--project <name>]- Show development status and progresscontext [--workspace] [--project <name>]- Show active context and focus areastasks --project <name> [--filter <type>]- Show task lists and progress
Global Options
--path <PATH>- Path to memory bank root [default: .copilot]--verbose, -v- Enable verbose output--quiet, -q- Minimal output for scripting--no-color- Disable colored output--help, -h- Print help information--version, -V- Print version information
Memory Bank Structure
airs-memspec understands and parses the Multi-Project Memory Bank structure:
.copilot/memory_bank/
├── current_context.md # Active sub-project tracker
├── workspace/ # Workspace-level shared knowledge
│ ├── project_brief.md
│ ├── shared_patterns.md
│ ├── workspace_architecture.md
│ └── workspace_progress.md
├── context_snapshots/ # Historical state snapshots
└── sub_projects/ # Individual sub-projects
├── airs-mcp/
│ ├── project_brief.md
│ ├── product_context.md
│ ├── active_context.md
│ ├── system_patterns.md
│ ├── tech_context.md
│ ├── progress.md
│ └── tasks/
│ ├── _index.md
│ └── task_*.md
└── airs-memspec/
└── ...
Integration with GitHub Copilot
- Install Custom Instructions: Use
airs-memspec installto set up custom instructions - Apply to Copilot: Configure GitHub Copilot to use the installed custom instructions
- Create Memory Bank: Chat with Copilot to create the memory bank structure
- Monitor State: Use
airs-memspeccommands to view current project state - Develop with Context: GitHub Copilot automatically maintains context awareness
Example Workflow
# 1. Setup custom instructions
# 2. Check if memory bank exists and current state
# 3. View active context for current work
# 4. Check task progress
# 5. Get workspace overview
Output Examples
Workspace Status
🏢 AIRS Workspace
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Status Active Development - Foundation Phase
Focus MCP Protocol Implementation & Tooling
Updated 2 hours ago
Projects 2 active, 0 paused
├─ airs-mcp 🟢 Week 1/14 - JSON-RPC Foundation
└─ airs-memspec 🟡 Planning - CLI Development
Next Milestone JSON-RPC 2.0 Core Complete (3 days)
Blockers None
Project Context
🎯 airs-mcp Active Context
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Current Focus
JSON-RPC 2.0 Foundation & Transport Layer Implementation
Active Work
🔧 Implementing MCP error code extensions
📝 Serde integration and serialization testing
⏱️ Started 4 hours ago
Integration Points
• Transport abstraction for STDIO and HTTP
• State machine for protocol lifecycle management
• Security layer for OAuth 2.1 + PKCE
Constraints
• Must follow JSON-RPC 2.0 specification exactly
• MCP protocol compliance required for Claude Desktop
• Performance targets: <1ms message processing
Development
Building from Source
# Clone the AIRS workspace
# Build the memspec tool
# Run tests
# Install locally
Contributing
This project is part of the AIRS (AI & Rust) workspace. See the main AIRS README for contribution guidelines and development setup.
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Related Projects
- airs-mcp: Model Context Protocol implementation in Rust
- AIRS Workspace: Complete AI & Rust technology stack
Note: This tool is designed to work in conjunction with GitHub Copilot and the Multi-Project Memory Bank custom instructions. The memory bank structure itself is created and maintained through AI collaboration, while airs-memspec provides installation and state reading capabilities.