REFERENCE IMPLEMENTATIONS

TensAI Reusables

59 curated open-source repos, each solving one sub-problem from the Spine. Clone the one that matches your need. Every repo maps to a concept page that teaches the context.

IIIThe Craft
Memory & Context6 repos
tensai-memory-layer56k

Universal memory layer — semantic, episodic, factual

forked from mem0ai/mem0
tensai-memory-graph23k

Temporal knowledge graph memory

forked from getzep/graphiti
tensai-memory-mcp9.4k

Persistent memory for coding agents via MCP

forked from rohitg00/agentmemory
tensai-memory-compress3.3k

Lifelong memory with semantic compression

forked from aiming-lab/SimpleMem
tensai-memory-zettelkasten973

Self-organizing dynamic memory

forked from agiresearch/A-mem
tensai-context-engine1k

Self-improving context via reflection

forked from ace-agent/ace
Harness Engineering3 repos
tensai-harness-control18.1k

Interaction control harness for customer-facing agents

forked from emcie-co/parlant
tensai-harness-open12.6k

Full Agent = Model + Harness reference

forked from HKUDS/OpenHarness
tensai-harness-learn4.4k

Harness engineering tutorial

forked from walkinglabs/learn-harness-engineering
RAG & Its Evolutions6 repos
tensai-rag-graph35k

Lightweight graph RAG

forked from HKUDS/LightRAG
tensai-rag-corrective300

Self-correcting / corrective RAG

forked from HuskyInSalt/CRAG
tensai-rag-chunking3.7k

Multi-strategy chunking library

forked from chonkie-inc/chonkie
tensai-rag-late-chunk490

Context-preserving chunk embeddings

forked from jina-ai/late-chunking
tensai-rag-reranker1.6k

Unified reranker API

forked from AnswerDotAI/rerankers
tensai-rag-eval12.9k

RAG evaluation framework

forked from explodinggradients/ragas
Code & Doc Indexing4 repos
tensai-index-graph17.2k

Codebase knowledge graph (tree-sitter + MCP)

forked from tirth8205/code-review-graph
tensai-index-incremental6.9k

Incremental data indexing engine

forked from cocoindex-io/cocoindex
tensai-index-search1k

Semantic code search (ripgrep + tree-sitter)

forked from probelabs/probe
tensai-index-memory2.5k

High-perf code intelligence (155 languages)

forked from DeusData/codebase-memory-mcp
Tools & MCP5 repos
tensai-mcp-servers86.1k

Official MCP reference server implementations

forked from modelcontextprotocol/servers
tensai-mcp-framework3.1k

High-level TypeScript MCP server framework

forked from punkpeye/fastmcp
tensai-mcp-database15.3k

Production MCP server for databases

forked from googleapis/mcp-toolbox
tensai-mcp-gateway1.3k

Containerised MCP server management

forked from docker/mcp-gateway
tensai-mcp-connect10k

Agent-to-MCP integration framework

forked from mcp-use/mcp-use
Multi-Agent, Handoffs & A2A3 repos
tensai-multi-swarm20k

Educational multi-agent with handoffs

forked from openai/swarm
tensai-multi-router7.6k

Classifier-based multi-agent routing

forked from awslabs/agent-squad
tensai-multi-dag5.5k

Goal-to-DAG orchestration (TypeScript)

forked from open-multi-agent/open-multi-agent
The Five Patterns3 repos
tensai-patterns-canonical5k

Anthropic's canonical five pattern implementations

forked from anthropics/claude-cookbooks
tensai-patterns-mcp7.9k

Five patterns + MCP + Temporal durability

forked from lastmile-ai/mcp-agent
tensai-patterns-minimal9.3k

100-line minimal agent/workflow core

forked from The-Pocket/PocketFlow
Agents vs Workflows1 repo
tensai-agentic-workflows651

Workflow-as-agent patterns

forked from githubnext/agentics
AFK & Autonomous Agents4 repos
tensai-afk-governance1.5k

Kill-switch, policy enforcement, OWASP coverage

forked from microsoft/agent-governance-toolkit
tensai-afk-runner1.5k

Self-hosted background agent runner

forked from ColeMurray/background-agents
tensai-afk-fleet8.5k

Teams-first multi-agent orchestration

forked from Yeachan-Heo/oh-my-claudecode
tensai-afk-credentials

Agent credential management with kill-switch

forked from joelhooks/agent-secrets
Evals & Observability4 repos
tensai-eval-framework21k

Prompt/agent/RAG testing with CI/CD

forked from promptfoo/promptfoo
tensai-eval-otel7k

OpenTelemetry-native LLM observability

forked from traceloop/openllmetry
tensai-eval-trajectory300

Agent trajectory evaluators

forked from langchain-ai/agentevals
tensai-eval-regression100

Snapshot-based agent regression testing

forked from hidai25/eval-view
Steering4 repos
tensai-steer-vectors693

Control vectors via representation engineering

forked from vgel/repeng
tensai-steer-structured11.9k

Structured outputs (Python constrained decoding)

forked from dottxt-ai/outlines
tensai-steer-grammar1.7k

Fast grammar-based constrained decoding

forked from mlc-ai/xgrammar
tensai-steer-safety200

RepE for hallucination/safety control

forked from wisent-ai/wisent
The Failure Taxonomy3 repos
tensai-failure-diagnosis150

Agent failure diagnosis from trajectories

forked from microsoft/AgentRx
tensai-failure-taxonomy328

Multi-agent failure taxonomy

forked from multi-agent-systems-failure-taxonomy/MAST
tensai-failure-cases160

Real-world agent failure case studies

forked from vectara/awesome-agent-failures
IIThe Operating Model
Skills2 repos
tensai-skills-collection45.4k

Production-grade agent skills + SKILL.md standard

forked from addyosmani/agent-skills
tensai-skills-standard2.4k

Agent skills standard and registry

forked from microsoft/skills
Agent Catalog1 repo
tensai-catalog-gateway3.8k

Unified discovery (MCP + A2A + REST/gRPC)

forked from IBM/mcp-context-forge
IThe Groundwork
Token Sourcing2 repos
tensai-gateway-perf5.2k

High-performance AI gateway (Go, 23+ providers)

forked from maximhq/bifrost
tensai-gateway-router1.9k

LLM quality-cost routing

forked from ulab-uiuc/LLMRouter
Security Architecture4 repos
tensai-security-scanner7.9k

LLM vulnerability scanner (red-teaming)

forked from NVIDIA/garak
tensai-security-guard3k

LLM input/output security scanner

forked from protectai/llm-guard
tensai-security-audit172

Static security scanner for agents (OWASP)

forked from HeadyZhang/agent-audit
tensai-security-sandbox2.3k

Kubernetes-native agent sandbox

forked from kubernetes-sigs/agent-sandbox
FinOps for AI2 repos
tensai-finops-pricing2k

Token price database (400+ LLMs)

forked from AgentOps-AI/tokencost
tensai-finops-cache231

Semantic cache for LLM cost reduction

forked from messkan/prompt-cache
Governance & Risk2 repos
tensai-govern-pii8.3k

PII detection and anonymisation

forked from microsoft/presidio
tensai-govern-validate6.9k

LLM output validation and guardrails

forked from guardrails-ai/guardrails