Skip to main content
This document describes the integration between Artemis City core and the Artemis Agentic Memory Layer (MCP Server), enabling agents to interact with Obsidian vault as a persistent knowledge base.

Overview

The memory integration bridge connects the Python-based Artemis City agent system with the Node.js MCP server, allowing:
  • Persistent Context Storage: Agents can store and retrieve context across sessions
  • Trust-Based Access Control: Memory operations filtered by agent trust scores
  • Structured Knowledge Base: Obsidian vault acts as versioned source of truth
  • Agent-Vault Interaction: Search, tag, and organize knowledge programmatically

Components

1. Memory Client (memory/integration/memory_client.py)

Python REST client for the MCP server with full coverage of 8 MCP operations. Features:
  • Bearer token authentication
  • Standardized response format (MCPResponse)
  • Automatic error handling
  • Built-in HTTP client (no external dependencies)
Operations:
  • get_context(path) - Read note content
  • append_context(path, content) - Append to note
  • update_note(path, content) - Replace note content
  • search_notes(query) - Search vault
  • list_notes(folder) - List notes in folder
  • delete_note(path) - Delete note
  • manage_frontmatter(path, action, key, value) - YAML frontmatter ops
  • manage_tags(path, action, tags) - Tag management
  • search_replace(path, search, replace) - Find and replace
Example:

2. Trust Interface (memory/integration/trust_interface.py)

Trust-based access control for memory operations with decay model. Features:
  • Trust scores for agents (0.0-1.0)
  • Trust levels (FULL, HIGH, MEDIUM, LOW, UNTRUSTED)
  • Operation permission matrix
  • Natural trust decay over time
  • Reinforcement/penalty system
Trust Levels & Permissions: Example:

3. Context Loader (memory/integration/context_loader.py)

High-level interface for loading and organizing context from vault. Features:
  • Load notes as ContextEntry objects
  • Search vault with relevance scoring
  • Load by tags or folders
  • Agent history tracking
  • Related content discovery
  • Date range filtering

With Artemis Persona

Artemis can store and load context for continuity:

With Instruction Hierarchy

Memory can provide agent-specific instructions:
Planned improvements aligned with the plan:
  1. Enhanced CLI Integration
    • Automatic context loading on startup
    • Persistent conversation history
    • Cross-session memory
  2. MCP Configuration Helper
    • Auto-discovery of MCP server
    • Configuration validation
    • Health monitoring
  3. Agent Communication
    • Message protocol with context hashing
    • Shared workspace in vault
    • Cross-agent knowledge graphs
  4. Advanced Search
    • Semantic search with embeddings
    • Relevance ranking algorithms
    • Context-aware suggestions
Last modified on July 17, 2026