Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
Malware / Trojaner / VirenStreaming-Piraterie: Piraten wechseln vom Firestick zu Social Media(23.09.2026 um 19:09 Uhr)
KI & AI VideosUsing Claude Opus 5.5 as your daily driver(23.09.2026 um 18:41 Uhr)
Sicherheitslücken (CVE)Security Weekly - A CRA Resource: The AI Vulnerability That Isn’t AI(23.09.2026 um 19:00 Uhr)
IT Security ToolsGitHub Release: google/clusterfuzz v2.41.0 (23.09.2026)(23.09.2026 um 18:55 Uhr)
IT Security ToolsGitHub Release: trufflesecurity/trufflehog v3.97.7 (23.09.2026)(23.09.2026 um 18:56 Uhr)
IT Security NachrichtenHackers Say They Stole Thousands of Sensitive F.B.I. Personnel Records(23.09.2026 um 19:33 Uhr)
IT Security NachrichtenMikroTrick: Zwei RouterOS-Fehler kombinieren sich zu Admin-Übernahme(23.09.2026 um 18:53 Uhr)
Malware / Trojaner / VirenStreaming-Piraterie: Piraten wechseln vom Firestick zu Social Media(23.09.2026 um 19:09 Uhr)
KI & AI VideosUsing Claude Opus 5.5 as your daily driver(23.09.2026 um 18:41 Uhr)
Sicherheitslücken (CVE)Security Weekly - A CRA Resource: The AI Vulnerability That Isn’t AI(23.09.2026 um 19:00 Uhr)
IT Security ToolsGitHub Release: google/clusterfuzz v2.41.0 (23.09.2026)(23.09.2026 um 18:55 Uhr)
IT Security ToolsGitHub Release: trufflesecurity/trufflehog v3.97.7 (23.09.2026)(23.09.2026 um 18:56 Uhr)
IT Security NachrichtenHackers Say They Stole Thousands of Sensitive F.B.I. Personnel Records(23.09.2026 um 19:33 Uhr)
IT Security NachrichtenMikroTrick: Zwei RouterOS-Fehler kombinieren sich zu Admin-Übernahme(23.09.2026 um 18:53 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

How I Gave My AI Agents a Permanent Memory That Syncs Across Machines

If you've spent any time working with AI coding agents like Claude Code, you've probably noticed the elephant in the room: every session starts from scratch. Your agent debugs a tricky deployment issue, discovers that your project needs a…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

If you've spent any time working with AI coding agents like Claude Code, you've probably noticed the elephant in the room: every session starts from scratch. Your agent debugs a tricky deployment issue, discovers that your project needs a specific environment variable, figures out the architecture of your codebase — and then forgets all of it the moment the session ends.



The next session? Back to square one.



I built agent-knowledge to fix this. It's an open-source MCP server that gives AI agents a persistent, git-synced memory — a knowledge base they can read from and write to across sessions, across machines, and across different AI clients.



Knowledge Base with category filtering









The Problem: Ephemeral Agent Sessions



When you're working with Claude Code (or any AI coding agent), the conversation is stored as a JSONL transcript file — but the agent itself can't search or learn from previous sessions. Every new session is a blank slate.



This means you end up repeating yourself constantly. You re-explain your project structure. You re-describe team preferences. You re-debug the same issues. It's like working with a brilliant colleague who has amnesia.









The Solution: Two Complementary Memory Systems



agent-knowledge tackles this with two systems working together:



Knowledge Base — A git-synced markdown vault where structured entries live. Think of it as a shared wiki that your agent can read and write. Entries are organized into categories like projects, decisions, workflows, people, and notes. Each entry is a markdown file with YAML frontmatter, and every write is automatically committed and pushed to git.



Session Search — TF-IDF ranked full-text search across all your past session transcripts. Instead of those JSONL files just sitting on disk, they become a searchable archive. Your agent can look up what happened in previous sessions — what errors occurred, what decisions were made, what files were modified.



TF-IDF ranked session search









How It Works Under the Hood



The architecture is straightforward. agent-knowledge runs as an MCP server over stdio, exposing 12 tools that your AI client can call. It also auto-starts a dashboard on localhost:3423 for browsing everything visually.



On the knowledge side, markdown files live in a git repository (by default at ~/claude-memory). Every read triggers a git pull, every write triggers a git add, commit, and push. This means if you're working on two machines, your knowledge stays in sync automatically.



On the session search side, it parses the JSONL transcript files that Claude Code generates and builds a TF-IDF index over them. The index is cached for 60 seconds and rebuilt on demand. Individual files are cached based on their modification time so unchanged files are never re-parsed.



There's also a scoped recall system with six predefined filters: errors (stack traces, exceptions), plans (architecture, TODOs), configs (settings, env vars), tools (MCP calls, CLI commands), files (paths, modifications), and decisions (trade-offs, rationale). This lets your agent ask targeted questions like "what errors have I seen in this project before?"









Getting Started



Setup is simple:




git clone https://github.com/keshrath/agent-knowledge.git
cd agent-knowledge
npm install && npm run build






Then register it as an MCP server in Claude Code:




claude mcp add agent-knowledge -s user \
-e KNOWLEDGE_MEMORY_DIR="$HOME/claude-memory" \
-- node /path/to/agent-knowledge/dist/index.js






And grant permissions in your ~/.claude/settings.json:




{
"permissions": {
"allow": ["mcp__agent-knowledge__*"]
}
}






That's it. Open http://localhost:3423 in your browser and you'll see the dashboard with four tabs: Knowledge, Search, Sessions, and Recall.









Works With Claude Code and OpenCode



agent-knowledge works with any MCP client over stdio. The setup guide includes configuration examples for both Claude Code and OpenCode.



Claude Code gets the richest experience with lifecycle hooks and session auto-distillation. You can set up a SessionStart hook that announces the knowledge dashboard URL at the beginning of every session, so the agent always knows where to look.



OpenCode supports MCP servers through its opencode.json config and offers lifecycle hooks via its plugin system. You can wire up events like session.created and tool.execute.after to integrate agent-knowledge into your workflow.



Both clients support the full set of 12 MCP tools — knowledge CRUD, session search, scoped recall, and admin configuration.









The Dashboard



The built-in web dashboard is a vanilla JS single-page app — no framework, no build step. It connects over WebSocket for live updates and supports light/dark theming with Material Design 3 tokens.



The Knowledge tab shows a card grid of your entries, filterable by category. The Search tab gives you full-text search with TF-IDF ranking and role filtering. The Sessions tab lists all your past conversations with project names and git branches. And the Recall tab lets you do scoped searches to quickly find errors, plans, or decisions from your history.



There's even a live reload feature for development — edit the UI files and connected browsers auto-refresh.









Auto-Distillation and Secrets Scrubbing



Two features that stood out to me: auto-distillation and secrets scrubbing.



Auto-distillation automatically extracts insights from completed sessions and pushes them to the knowledge base. Instead of manually curating what the agent learned, it happens automatically.



Secrets scrubbing ensures that API keys, tokens, passwords, and private keys are redacted before anything gets pushed to git. This is critical — you don't want your agent accidentally committing sensitive data to a shared repository.









Why This Matters



AI coding agents are incredibly powerful, but the lack of persistent memory has been a major friction point. Every time you start a new session, there's a ramp-up cost. The agent needs to re-learn your project, your preferences, your past decisions.



agent-knowledge eliminates that ramp-up. Your agent remembers what it learned, can search its own history, and shares knowledge across machines and sessions. It turns ephemeral conversations into a cumulative knowledge base that grows over time.



If you're using AI coding agents seriously, give agent-knowledge a look. It's MIT licensed, well tested, and the documentation is thorough. Check out the architecture docs if you want to understand how the internals work, or jump straight to the setup guide to get started.






Have you been dealing with the same "amnesia" problem with your AI agents? I'd love to hear what approaches you've tried. Drop a comment below!

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten How I Gave My AI Agents a Permanent Memory That Syncs Across Machines

Thematisch verwandte Begriffe: Gave, Agents, Permanent, Memory · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-18181 | IBM Financial Transaction Manager (FTM) for RedHat OpenShift could allow…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel TTP ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick