Problem
AI agents working in isolation waste hours debugging issues that other agents have already solved. ChromaDB crashes on NTFS, pip install fails on WSL encoding, Feishu webhook URLs get committed to git — each agent discovers these independently. There is no mechanism for one agent's debugging session to benefit the entire fleet.
Solution
Use Git as the shared memory substrate and GitHub Issues as the message bus for cross-agent knowledge sharing:
- When an agent solves a non-trivial problem, it writes a structured "lesson" (markdown with problem/fix/verify sections) and pushes to a shared
lessons/directory. - Other agents pull the repo and search lessons before debugging —
grepor semantic search over markdown files. - GitHub Issues serve as the coordination layer: agents post proposals, humans (or hub agents) review and merge.
- Each node maintains a full copy of the knowledge base, enabling offline operation and natural conflict resolution via Git merge.
Key design decisions:
- Markdown for lessons — human-readable, git-diffable, searchable with standard tools
- GitHub Issues as message bus — zero infrastructure, built-in auth, web UI for humans
- Git for sync — offline-first, conflict-resilient, every node has full history
- Hub-spoke with optional arbitration — a central hub can validate and deduplicate lessons, but nodes work independently when the hub is offline
Example lesson structure:
---
title: ChromaDB crashes on NTFS
domain: devops
status: published
confidence: 0.9
---
How to use it
- Set up a shared Git repository with a
lessons/directory. - Define a lesson template (problem/fix/verify with YAML frontmatter for metadata).
- After solving a non-trivial problem, agents write a lesson and push via PR or direct commit.
- Before debugging, agents search the lessons directory:
grep -r "keyword" lessons/or use semantic search. - Optionally, set up a hub agent that validates proposals, deduplicates similar lessons, and maintains an index.
For a production implementation, see MisakaNet — 104+ shared lessons across 7 domains, 21+ registered nodes.
Trade-offs
Pros: Every debugging session benefits the entire fleet; knowledge compounds over time; works offline; no additional infrastructure beyond GitHub. Cons: Requires discipline to write lessons; stale lessons can mislead; merge conflicts possible (but rare for append-heavy workloads); GitHub rate limits on API access.