AI Agent Hub
Back to plugins
🖥️

dsh-gitmemo

Client Updated 2026.08.25

Run the following command in DeepSeek Harness:

dsh plugin install fonlan/dsh-gitmemo

Paste the following prompt into your AI chat to install this plugin:

Run dsh plugin install fonlan/dsh-gitmemo in DeepSeek Harness to install the plugin; source code is available at https://github.com/fonlan/dsh-gitmemo. Restart the dsh profile after installation to activate the tools and rules.

About this plugin

DeepSeek Harness agents are stateless by design: the moment a session ends, every architectural decision, pitfall, and validated conclusion vanishes. The next time a similar problem appears, the agent re-derives everything from scratch, wasting tokens and sometimes reaching contradictory results. dsh-gitmemo turns a local Git repository into a durable memory layer for root agents. Completed task outcomes are stored as immutable markdown entries under a project-local .mem repo; before starting new work, the agent automatically searches and reuses prior conclusions. The entire lifecycle of search, read, write, replace, and delete requires no manual memory commands and no cloud service, with the git CLI as the sole runtime dependency.

The design centers on immutability and auditability. Every write produces a brand-new file and a single ADD commit; corrections go through mem_replace, an atomic commit that deletes the old file and adds the new one in one shot; withdrawals use mem_delete with a required reason. Search operates via git log --grep over structured commit trailers, never scanning entry bodies. Entries link to each other with wiki references, and mem_read with expand resolves those links one hop while following any replacement chain to the active version. Topic pages aggregate the current truth of a subject and evolve through mem_replace rather than per-task rewrites. All mutations run under a cross-process lock with a pre-write journal, making the system crash-safe and every action recoverable from .mem Git history.

This plugin is aimed at developers who work on repository-related tasks inside dsh and want cross-session continuity without standing up a database or any network service. Install it, restart the profile, and every new root-agent session automatically gains the search and write tools. Subagents carry neither the workflow rules nor the tool schemas, keeping their token footprint clean.

Use Cases

  • Root agents automatically search and reuse prior architectural decisions to avoid re-deriving solutions across sessions
  • When a stored conclusion is corrected or overruled, the agent atomically replaces it via mem_replace in a single commit
  • Once a topic accumulates several memories, a kind: "topic" page aggregates current truth and evolves through mem_replace

Best For

  • Developers working on repository-related tasks in dsh who want agents to retain project decisions across sessions
  • Users who prefer a lightweight toolchain with no database or cloud service, relying solely on the local git CLI
  • Development teams that require all memory operations to be auditable and traceable through Git history