Contextweave — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Contextweave (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
<div align="center">
Stop losing context. Start building faster.
Works with Cursor • Claude Desktop • Kiro • GitHub Copilot • any MCP-compatible AI
</div>
Every developer knows this moment:
"Why is this function written this way?" "Why did we choose PostgreSQL over MongoDB?" "Why is there a 500ms sleep in this critical path?"
You dig through git blame, search Slack, ping colleagues who may have left. The context is gone. You either make a decision blind, or spend hours reconstructing what someone already figured out.
This is the #1 productivity killer in software development. Context loss costs teams hours every week — and it compounds. AI coding assistants make it worse: they have no memory of your project's history, constraints, or the reasoning behind past decisions.
ContextWeave is a local-first, zero-config project memory engine that automatically:
// WHY:, // DECISION:, // NOTE:) from your source code Your Codebase
│
┌──────────────┼──────────────┐
│ │ │
git log source files package.json
│ │ │
└──────────────┼──────────────┘
│
ContextWeave
(watching)
│
SQLite Database
(local, yours)
│
┌─────────────┼─────────────┐
│ │ │
CLI MCP Dashboard
(humans) (AI tools) (browser)# Install globally
npm install -g contextweave
# Initialize in your project
cd my-project
contextweave init
# Scan — builds the knowledge graph (~5s for most projects)
contextweave scan
# Start the MCP server for your AI assistant
contextweave mcpTip:cwis a built-in short alias —cw scan,cw why src/auth.ts, etc.
That's it. Your AI assistant now has full project context.
ContextWeave extracts architectural decisions from three sources:
1. Git history mining
commit 7f3a9b2
Author: Sarah Chen
Switched auth from JWT to session-based
Performance benchmarks showed JWT verification was adding 12ms latency
per request. With 500+ concurrent users, sessions with Redis reduces
this to <1ms for cached sessions.→ Captured as a decision: "Switched from JWT to session-based auth"
2. WHY/DECISION comments
// WHY: We use exponential backoff here instead of fixed delays because
// thundering herd problems killed us in production with 500+ clients.
async function retryWithBackoff(fn: () => Promise<void>) {
// DECISION: Chose PostgreSQL over MongoDB for ACID transaction support
// needed by the payment flow. Benchmarked both — Mongo was 15%
// faster for reads but we can't sacrifice consistency.
const db = createConnection(DATABASE_URL);3. Manual recording
contextweave decide
# Interactive prompts to record any decisionOnce connected to your AI assistant, it gains 8 powerful tools:
| Tool | What it does |
|---|---|
search_context | Semantic search over all knowledge |
get_file_context | Full history + symbols for any file |
get_decisions | All architectural decisions with rationale |
add_decision | Record a decision mid-conversation |
get_project_summary | Languages, frameworks, stats |
find_related | Code related to any term |
get_recent_changes | Recent commits with context |
annotate | Add notes to any file or function |
Example: Ask your AI "Before refactoring auth, check what decisions were made" — it'll call get_file_context and surface the JWT→sessions migration rationale automatically.
Both contextweave and cw work as the command name.
cw search "rate limiting" # Find anything in the knowledge base
cw why src/api/middleware.ts # Understand a file — symbols, decisions, notes
cw decisions --source git # All decisions extracted from git history
cw annotate src/auth.ts "Uses PKCE" # Add a note to a file
cw decide # Interactively record an architectural decision
cw export --format markdown # Export full knowledge as Markdown ADR doc
cw status # Project health at a glance
cw watch # Live updates as you code
cw dashboard # Open visual web dashboard
cw mcp # Start MCP server for AI toolsA beautiful, zero-dependency web UI (single HTML file, no build step):
| Language | Files | Functions | Classes | Comments |
|---|---|---|---|---|
| TypeScript | ✅ | ✅ | ✅ | ✅ |
| JavaScript | ✅ | ✅ | ✅ | ✅ |
| Python | ✅ | ✅ | ✅ | ✅ |
| Go | ✅ | ✅ | ✅ (structs) | ✅ |
| Rust | ✅ | ✅ | ✅ (structs) | ✅ |
| Java | ✅ | — | — | ✅ |
| Ruby | ✅ | — | — | ✅ |
Dependency manifests: `package.json`, `requirements.txt`, `go.mod`, `Cargo.toml`
Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"contextweave": {
"command": "contextweave",
"args": ["mcp"]
}
}
}Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"contextweave": {
"command": "contextweave",
"args": ["mcp"]
}
}
}Add to .kiro/settings/mcp.json:
{
"mcpServers": {
"contextweave": {
"command": "contextweave",
"args": ["mcp"]
}
}
}Add to .vscode/settings.json:
{
"github.copilot.chat.mcp.enabled": true,
"mcp": {
"servers": {
"contextweave": {
"type": "stdio",
"command": "contextweave",
"args": ["mcp"]
}
}
}
}See examples/mcp-config.json for more.
Add these to any source file — ContextWeave extracts them automatically:
// WHY: <rationale> → Captured as a Decision
// DECISION: <rationale> → Captured as a Decision
// TODO: <task> → Captured as an Annotation
// FIXME: <issue> → Captured as an Annotation
// NOTE: <info> → Captured as an Annotation
// HACK: <explanation> → Captured as an Annotation
// WARN: <warning> → Captured as an AnnotationWorks with // (JS/TS/Go/Rust), # (Python/Ruby). The comment delimiter must be at the start of the (trimmed) line — inline code strings are ignored.
| Command | Description |
|---|---|
cw init | Initialize in current directory |
cw scan | Full project scan |
cw watch | Continuous watch mode |
cw search <query> | Search the knowledge base |
cw why <file> | Show context for a specific file |
cw decisions | List all captured decisions |
cw decide | Interactively record a decision |
cw annotate <file> <note> | Add a note to a file |
cw export | Export knowledge as Markdown or JSON |
cw dashboard | Open web dashboard |
cw mcp | Start MCP server for AI tools |
cw status | Project health stats |
.contextweave/config.json (created by contextweave init):
{
"projectRoot": "/path/to/project",
"dbPath": ".contextweave/context.db",
"watchDebounce": 500,
"maxFileSizeKb": 500,
"gitDepth": 300,
"dashboardPort": 4242,
"excludePatterns": ["**/generated/**"]
}See docs/ARCHITECTURE.md for the full deep-dive.
Stack:
better-sqlite3 + FTS5 for full-text searchchokidar with 500ms debounce@modelcontextprotocol/sdk over stdiocommander + chalk + ora.contextweave/decisions.md manual ADR formatWe'd love your help! See docs/CONTRIBUTING.md.
Good first issues:
.contextweave/ directory goes with your projectMIT — see LICENSE
<div align="center">
Built with ❤️ for developers who write // WHY: comments
[Documentation](docs/) • [Examples](examples/) • [Contributing](docs/CONTRIBUTING.md) • [GitHub](https://github.com/deyavinaba597-pixel/contextweave)
</div>
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.