Package Exports
- team-knowledge-graph
- team-knowledge-graph/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (team-knowledge-graph) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Team Knowledge Graph
AI coding agents that remember decisions across sessions. Backed by Neo4j.
Install
npm install -g team-knowledge-graph
tkg-setupThat's it. The setup:
- Starts Neo4j (Docker)
- Configures MCP server
- Adds auto-load hook (loads knowledge at session start)
- Adds auto-save instructions (saves discoveries during work)
Start a new AI coding session — it works.
What Happens Automatically
Session starts → "Loading team knowledge..."
→ Injects known constraints, decisions, rules
You work → agent discovers things
→ Saves to graph in real-time (no manual action)
Next session → starts with everything the team knowsInstall (without npm publish)
If you haven't published to npm yet:
git clone <repo-url>/team-knowledge-graph.git
cd team-knowledge-graph
npm install && npm run build
node bin/setup.jsTeam Sharing
Everyone on the team runs tkg-setup. To share one graph:
Local team: Point everyone to one Neo4j instance:
NEO4J_URI=bolt://your-server:7687 tkg-setupCloud: Use Neo4j Aura (free tier at https://neo4j.com/cloud/aura-free/)
Tools
| Tool | When it's used |
|---|---|
knowledge_query |
Search what the team knows |
knowledge_decide |
Record a decision with reasoning |
knowledge_constraint |
Record something that doesn't work |
knowledge_rule |
Record a business rule |
knowledge_relate |
Record how products connect |
knowledge_status |
See graph stats |
Neo4j Browser
http://localhost:7474 (login: neo4j / knowledge-graph-local)
// Everything the team knows
MATCH (n) WHERE n:Decision OR n:Constraint OR n:Rule RETURN n
// Product dependency map
MATCH (a:Product)-[r]->(b:Product) RETURN a, r, bUninstall
npm uninstall -g team-knowledge-graph
docker stop team-knowledge-neo4j && docker rm team-knowledge-neo4jRemove from ~/.claude/.mcp.json and ~/.claude/settings.json hooks.