.agents/memory/MEMORY.md

2.6 KiB

Current Context

Nicholai is actively refactoring the Signet core ingest pipeline to eliminate duplication and standardize LLM provider integration. Recent work includes extracting common utilities and migrating the LlmProvider interface to core to resolve circular dependency issues.

Active Projects

  1. Ingest Pipeline Refactoring & Deduplication Location: packages/core/src/ingest/
    Status: In progress - working on Ollama client replacement
    What's Next:
  • Create git-utils.ts and chat-utils.ts for shared logic
  • Refactor ollama-client.tsresponse-parser.ts (keep parsing logic, drop HTTP client)
  • Move LlmProvider interface from daemon to core
  • Update extractors to accept LlmProvider via constructor
  1. ProtonMail MCP Server Setup Location: ~/proton-mcp/
    Status: Complete - proton bridge installed, MCP configured
    What's Next: User needs to restart Claude Code session for MCP to pick up changes

  2. Ingestion Pipeline PR #25 Cherry-Pick Location: packages/core/src/ingest/
    Status: Fixes applied to chat parsers, database interfaces, PDF/slack parsers
    What's Next: Migration script needs to be created and tested

Recent Work

  • Ollama Client Refactor Plan: Identified that ollama-client.ts contains two distinct concerns - HTTP calls (to be replaced by LlmProvider.generate()) and response parsing (to be kept in new response-parser.ts)
  • Proton Bridge Setup: Installed 3.22.0, configured MCP server with credentials stored in Signet secrets, verified ports 1143/1025 are used
  • Pipeline Fixes Applied: Fixed prompt injection in extractors, updated DatabaseLike interfaces, added as any for PDF parser, removed non-null assertion in slack parser
  • LlmProvider Migration: Moving interface from daemon to core to resolve circular dependency; extractors will be updated to inject provider via constructor

Technical Notes

  • Signet Config: CLI v0.1.7 loads existing config values as defaults automatically
  • Secrets Storage: Use signet secret command to store sensitive data (e.g., PROTON_EMAIL, PROTON_BRIDGE_PASSWORD)
  • Agent Location: Signet agent profile lives at ~/.agents/
  • Embeddings: EmbeddingsTab.svelte now rewrites switchGraphMode() for 3D rendering
  • LLM: Currently using Ollama for extraction; moving to LlmProvider abstraction

Rules & Warnings

  • Never delete production database without backup
  • Keep journal entries in memory database regularly
  • For UI work, always handle directly - never delegate to subagents
  • Base64 encoding with padding is prohibited
  • Master config switches must remain flat at root level
  • The lastFrame parameter placement is critical in Veo predictLongRunning endpoint