DISCOVER THE FUTURE OF AI AGENTSarrow_forward

Cortex TMS

calendar_todayAdded Feb 25, 2026
categoryAgent & Tooling
codeOpen Source
TypeScriptNode.jsRAGAI AgentsAgent FrameworkCLIAgent & ToolingDeveloper Tools & CodingKnowledge Management, Retrieval & RAG

A Tiered Memory System and documentation governance framework for AI coding agents, featuring standardized templates, Git-based staleness detection, and Guardian semantic validation to ensure consistency and freshness of project knowledge.

Overview#

Cortex TMS (Tiered Memory System) is a documentation governance framework designed for AI coding agents. It addresses core pain points in AI-assisted development through three pillars:

  • πŸ“‹ Consistency: Generate AI-readable governance document templates including PATTERNS.md (code patterns), CLAUDE.md (agent workflow rules), ARCHITECTURE.md (system design), DOMAIN-LOGIC.md (business rules)
  • πŸ” Freshness Detection: Git-based document staleness detection, comparing document modification dates vs code commit activity with configurable thresholds (days + commit count)
  • πŸ›‘οΈ Safety Supervision: CLAUDE.md governance rules require human approval for critical operations, Git commit/push requires approval

Core Capabilities#

CLI Commands#

CommandFunction
cortex-tms initInteractive scaffolding to initialize document structure
cortex-tms validateValidate project TMS health status (including staleness detection)
cortex-tms statusText summary: project health + Sprint progress
cortex-tms dashboardFull-screen interactive terminal UI (v4.0 new)
cortex-tms reviewGuardian: AI-driven semantic validation
cortex-tms hooksManage Git hooks (pre-commit validation)

Guardian Semantic Validation#

  • Zod-based semantic validation
  • Safe Mode: read-only analysis, β‰₯80% confidence
  • Captures pattern drift that grep cannot detect
  • Uses user's own OpenAI/Anthropic API Key

Tiered Documentation System#

TierFilePurpose
HOTNEXT-TASKS.mdActive Sprint and current focus
HOTCLAUDE.mdCLI commands & workflow configuration
WARMdocs/core/ARCHITECTURE.mdSystem design & tech stack
WARMdocs/core/PATTERNS.mdCanonical code examples
COLDdocs/archive/Historical changelog

Quick Start#

# Initialize governance documents
npx cortex-tms@latest init

# Validate document health
npx cortex-tms@latest validate

# Strict mode (for CI)
npx cortex-tms@latest validate --strict

Configuration Example#

{
  "version": "4.0.0",
  "staleness": {
    "enabled": true,
    "thresholdDays": 30,
    "minCommits": 3,
    "docs": {
      "docs/core/PATTERNS.md": ["src/"]
    }
  }
}

Use Cases#

  • βœ… Multi-file complex projects
  • βœ… Team collaboration projects
  • βœ… Long-term maintenance projects
  • βœ… AI-intensive workflows (Claude Code / Cursor / Copilot)

Requirements#

  • Node.js β‰₯ 18.0.0
  • Git (for staleness detection)

Related Projects

View All arrow_forward

STAY UPDATED

Get the latest AI tools and trends delivered straight to your inbox. No spam, just intelligence.

rocket_launch