Commit Graph

19 Commits

Author SHA1 Message Date
f21426fc43 Add browser extension and shell completions (Milestones 12-13)
M12: Browser Extension
- Chrome/Edge Manifest V3 extension
- Popup UI for saving pages
- Context menu integration (save page/selection/link)
- Background service worker
- Content script for extraction

M13: Shell Completions
- Bash, Zsh, Fish, PowerShell completions
- Dynamic node ID completion
- Dynamic tag completion
- Dynamic graph completion
- Auto-install command (--install)
2026-02-03 11:35:41 +01:00
b1c62c5da9 Add interactive TUI dashboard (Milestone 11)
- Lightweight TUI using Node.js readline (no extra deps)
- Browse nodes with vim-style navigation (j/k/arrows)
- Real-time search with / key
- Detail view with connections
- Filter by kind (1-4 keys)
- CLI: cortex tui, cortex ui
2026-02-03 11:30:44 +01:00
f891f37bde Add smart retrieval with git context (Milestone 10)
- Git context extraction: branch, commits, modified files
- Smart search with context-based re-ranking
- Time boosting for recently accessed nodes
- File relevance boosting for modified files
- Branch keyword matching
- CLI: smart-search, ss, what, now commands
- MCP tools: memory_smart_search, memory_what
2026-02-03 11:28:39 +01:00
aea3e93ff7 Add multi-graph support (Milestone 9)
- Graph manager: create, list, delete, use graphs
- Automatic project detection via .cortex.json or git remote
- Graph switching in db.ts connection manager
- Cross-graph search with --all-graphs flag
- CLI: graphs, use, init commands
- MCP tools: memory_graphs, memory_use_graph, memory_create_graph, memory_delete_graph
- Database migration from .memory to ~/.cortex/graphs
2026-02-03 11:25:44 +01:00
45998c73d0 Add import/export and backup system (Milestone 8)
- Obsidian vault importer with wikilink → edge conversion
- Markdown folder importer with frontmatter parsing
- Markdown exporter with wikilinks and frontmatter
- JSON-LD linked data exporter
- Database backup/restore functionality
- CLI: import, backup, restore-backup, list-backups
- MCP tools: memory_import, memory_backup, memory_export_markdown, memory_export_jsonld
2026-02-03 11:21:42 +01:00
3a334d2941 Add graph visualization exports (Milestone 7)
- Add interactive HTML export with D3.js force-directed graph
- Add SVG export with simple force-directed layout
- Add Mermaid diagram export for documentation
- Support subgraph export from root node with depth
- Add node filtering by kind and tags
- Add light/dark theme support
- Add CLI commands: export, viz
- Add MCP tool: memory_export
2026-02-03 11:08:19 +01:00
c65a5bb03a Add URL and content ingestion (Milestone 6)
- Add URL fetching with HTML-to-text extraction
- Add basic PDF text extraction
- Add smart content chunking with overlap
- Add deduplication via content checksums
- Add auto-linking to semantically related nodes
- Add CLI commands: ingest, clip
- Add MCP tools: memory_ingest, memory_clip
2026-02-03 11:00:28 +01:00
67b1e3b481 Add daily journal system (Milestone 5)
- Add journal service with date-based organization
- Add quick capture with timestamps and tags
- Add auto-linking for mentioned nodes and hashtags
- Add AI-powered daily summary generation
- Add journal search across all entries
- Add CLI commands: journal, j (alias), c (quick capture)
- Add MCP tools: memory_journal, memory_journal_list, memory_journal_summarize
2026-02-03 10:57:23 +01:00
056a02d936 Add codebase indexing system (Milestone 4)
- Add project type detection (Node.js, Python, Rust, Go, generic)
- Add file scanner with ignore patterns and hash tracking
- Add TypeScript/JavaScript parser (exports, imports, classes, functions)
- Add Python parser (imports, classes, functions, __all__)
- Add relationship mapper for import dependencies
- Add architecture summary generation with tech stack detection
- Add incremental update support via file hash comparison
- Add CLI command: cortex index [path] [--update] [--dry-run]
- Add MCP tools: memory_index, memory_components
2026-02-03 10:53:26 +01:00
9490cd1db4 Merge feature/context-injection into main 2026-02-03 10:07:32 +01:00
1cad7d6cb9 Merge feature/auto-capture into main 2026-02-03 10:06:48 +01:00
516b5ec017 Add context injection system (Milestone 3)
- Add src/core/context.ts with context gathering, ranking, and formatting
- Add src/core/config.ts for persistent configuration storage
- Add CLI commands: cortex context, cortex context-hook, cortex config
- Add memory_context MCP tool for Claude Code integration
- Add GET /api/context endpoint
- Include summary.ts from main branch for heartbeat dependency
2026-02-03 10:02:28 +01:00
7a4dc07038 Add auto-capture system (Milestone 2)
- Add capture configuration system with modes: always, manual, decisions, off
- Add Ollama-based conversation summarization and extraction
- Add deduplication via embedding similarity (merge >0.90, link 0.75-0.90)
- Add CLI commands: capture, capture-hook, config
- Add MCP tools: memory_capture, memory_remember, memory_capture_config
- Include summary.ts (previously uncommitted)
2026-02-03 09:59:49 +01:00
761c7a247c Add temporal versioning for node history tracking (Milestone 1)
Enable time-travel queries and history viewing by creating immutable
version records on every node update. Includes database schema changes,
store functions, MCP tools, and CLI commands for viewing history,
comparing versions, and restoring to previous states.
2026-02-03 09:58:16 +01:00
3d5a979a1b Add standalone executable packaging with esbuild + pkg
- Add npm scripts for building Windows/Linux/macOS executables
- Replace uuid package with crypto.randomUUID() for ESM compatibility
- Use esbuild to pre-bundle code before pkg (fixes MCP SDK subpath exports)
- Update CLI name from 'memory' to 'cortex'
- Update USAGE.md with build instructions and standalone setup
- Add bundle/ and build/ to .gitignore
2026-02-03 09:14:26 +01:00
5f7692f5f6 Add structured sections and hierarchical navigation
Add --section flag to add/update commands for structured node content,
render sections and inline children in show, and add memory children command.
2026-02-02 22:29:23 +01:00
f1b59a2d1a Add freshness scoring, auto-decay, and USAGE.md
Add lastAccessedAt timestamp to nodes with schema migration and
backfill. Touch timestamp on read, apply exponential freshness decay
(~69-day half-life) to search scoring alongside BM25 and vector
weights. Add auto-decay that marks untouched nodes as stale after a
configurable threshold, with CLI command and server-side daily interval.
Include comprehensive USAGE.md documenting all CLI commands and REST API.
2026-02-02 22:07:06 +01:00
08c26754a8 Add Cortex Portal — web visualization for knowledge graph
Express API server wrapping existing store/graph core with REST endpoints
for nodes, edges, graph, and search. React + Vite portal with React Flow
for interactive graph visualization, Tailwind CSS styling, and full CRUD UI
(sidebar, node panel, add/link modals, search bar, toast notifications).
2026-02-02 17:01:29 +01:00
21107443a7 Initial commit: Cortex — AI project memory & knowledge graph
SQLite-backed knowledge graph with CLI interface. Supports nodes (memory, component, task, decision) connected by typed edges, with hybrid search (BM25 + Ollama embeddings).
2026-02-02 14:53:26 +01:00