AI Memory That Learns Across Time
TemporalBridge transforms Claude Code conversations into a persistent, searchable knowledge base using Zep's temporal knowledge graphs. Every interaction builds connections between concepts, creating an AI memory that grows smarter over time.
- π§ Persistent Memory: Conversations automatically stored in Zep's knowledge graph
- π Intelligent Search: Query relationships, entities, and conversation history
- β‘ Temporal Learning: AI can reference and build upon past interactions
- ποΈ Robust Architecture: Handles both short messages and long technical content
- πΈοΈ Entity Extraction: Builds rich relationships between concepts, people, and tools
- π Context Continuity: Bridges knowledge across Claude Code sessions
-
Clone or copy this project:
cd /home/uptown/Projects/zabaca/temporal-bridge -
Set up environment:
cp .env.example .env # Edit .env and add your ZEP_API_KEY -
Install dependencies:
pnpm install
Search your memory:
Memory search is available through Claude Code's MCP integration. Once configured, use these tools in Claude Code:
search_personal- Search your personal conversation historysearch_project- Search shared project knowledgesearch_all- Search both personal and project memoriesget_recent_episodes- Get recent conversation contextget_current_context- Get current project context
Available CLI commands:
pnpm run cli hook # Run conversation storage hook
pnpm run cli store-conversation # Store conversation transcript
pnpm run typecheck # Type checking
pnpm run format # Code formatting
pnpm run lint # Lint code
pnpm run test # Run testsapps/temporal-bridge-cli/src/lib/memory-tools.ts- Memory search and retrieval functionsapps/temporal-bridge-cli/src/commands/hook.command.ts- Claude Code hook for auto-storageapps/temporal-bridge-cli/src/lib/types.ts- Shared TypeScript interfacesapps/temporal-bridge-cli/src/lib/zep-client.ts- Zep client utilitiesapps/temporal-bridge-cli/src/lib/project-entities.ts- Project entity managementapps/temporal-bridge-cli/src/mcp/- MCP server integration
- Conversation Happens β Claude Code interaction
- Hook Triggers β
hook.command.tsprocesses transcript via store-conversation command - Smart Storage β All messages β user graph with project metadata
- Knowledge Extraction β Zep builds entities and relationships
- Search & Retrieval β Memory tools query knowledge graph via CLI or MCP
- Edges: Relationships and facts ("developer USES graph.add API")
- Nodes: Entities with AI-generated summaries
- Episodes: Raw conversation content with metadata
# Required
ZEP_API_KEY=your_zep_api_key_here
# Optional
DEVELOPER_ID=developer # Default: "developer"
GROUP_ID=custom-project-group # Default: auto-generated
PROJECT_DIR=/path/to/project # Default: current directoryTemporalBridge integrates automatically with Claude Code via:
-
MCP Server Integration - Add to your
.mcp.json:{ "temporal-bridge": { "command": "node", "args": ["/home/uptown/Projects/zabaca/temporal-bridge/apps/temporal-bridge-cli/dist/mcp.js"] } } -
Automatic Hook Processing - Conversations are stored automatically via session hooks
- Setup Guide - Detailed installation and configuration
- Usage Guide - Command examples and workflows
- Context Continuity: Reference previous conversations across sessions
- Knowledge Discovery: Find relationships between concepts and tools
- Project Memory: Track technical decisions and implementation details
- Learning Acceleration: Build upon past problem-solving approaches
In Claude Code, once MCP is configured, you can use these tools:
// Search your personal knowledge
search_personal("typescript functions", 5)
// Search team/project knowledge
search_project("architecture decisions")
// Combined search across personal and project
search_all("debugging approaches", 10)
// Get recent conversation context
get_recent_episodes(5)
// Get current project information
get_current_context()# Type checking
pnpm run typecheck
# Code formatting
pnpm run format
# Linting
pnpm run lint
# Run tests
pnpm run test
# Run CLI directly
pnpm run cli --helpTemporalBridge was built to bridge conversations across time. Contributions that enhance temporal memory, search capabilities, or integration features are welcome.
AGPL-3.0 License - see LICENSE file for details.
Temporal Bridge is available under the GNU Affero General Public License v3.0 (AGPLv3). This license requires that if you modify Temporal Bridge and offer it as a network service, you must provide the complete source code of your modifications to users.
For organizations that want to use Temporal Bridge in proprietary applications or offer it as a managed service without open-sourcing their modifications, commercial licenses are available. Contact us for commercial licensing options.
TemporalBridge: Where every conversation becomes part of a larger, evolving understanding.