Advanced Usage
import { Tabs, TabItem, Steps } from ‘@astrojs/starlight/components’;
For teams integrating Cortex into their custom internal tools or extending its capabilities.
Programmatic Scans
You can use the ProjectScanner in your own build pipelines or CI scripts to automatically capture project state.
import { ProjectScanner, MemoryStore } from '@ecuabyte/cortex-core';
const scanner = new ProjectScanner();const store = new MemoryStore();
const result = await scanner.scan({ path: './src', scanTodos: true, scanDocs: true});
// Save only high-priority memoriesfor (const memory of result.memories) { if (memory.content.includes('URGENT')) { await store.add(memory); }}Custom MCP Tools
The Cortex MCP Server can be extended with project-specific logic.
Database Management
If you need to perform bulk operations or manual migrations, you can access the SQLite database directly.