Cortex TMS
Scaffolds and validates the governance docs AI coding agents read, so generated code follows your project's patterns.
- Source repo
- cortex-tms/cortex-tms
- Stars
- ★ 180
- Last updated
- 10d ago
- FARS reviewed
- Dec 02, 2026
- License
- MIT
- Primary language
- MDX
- FA score
- 61/100 · Some gaps
At a glance
- How it runs
- Works with
- Universal · cross-platformClaude Code
- Cost
- Free, no paid service needed
- Setup effort
- Low · running in minutes
- You'll need
- Typical use
- Teams using Claude Code or GitHub Copilot heavily who want agent-written code to reuse the conventions already recorded in PATTERNS.md instead of inventing new ones.
- Not a fit if
- Throwaway prototypes where governance docs cost more than they save
- Single-file or very simple solo projects that need no pattern docs
- Teams needing semantic code-vs-doc analysis; v1 only compares git timestamps
- Website
- cortex-tms.org ↗ set on GitHub
- Maintenance
- Commits in the last 30 dayslast commit 2026-11-23
- Source review
- 61/100 · Some gaps
What does this agent do, and when should you use it?
Cortex TMS is a Node.js CLI published on npm as cortex-tms that generates and audits the governance documentation an AI coding agent should read before changing a codebase. init scaffolds a tiered file set — NEXT-TASKS.md, PROMPTS.md, CLAUDE.md, .github/copilot-instructions.md, plus docs/core/PATTERNS.md, ARCHITECTURE.md and DOMAIN-LOGIC.md — split into HOT/WARM/COLD by access frequency, with --scope controlling the file set and --preset node|python|go filling in ecosystem-specific content. validate then checks that mandatory files exist, that HOT files stay under 200 lines, that placeholders were replaced, that finished tasks were archived, and, since v4.0, that governance docs are not stale relative to git commit activity in watched directories. The staleness check ignores merge, test-only and lockfile-only commits and needs a full (non-shallow) git history. Remaining commands cover status reporting, a three-view terminal dashboard, task archiving, version migration with rollback, a prompt library, pre-commit hook installation, and a read-only MCP server that publishes the docs at stable cortex:// URIs. Everything runs locally on the user's machine under the MIT license, and it reaches AI tools through files and MCP rather than a hosted backend.
cortex-tms init writes the governance skeleton into a project (--scope picks the file set, --preset node|python|go fills ecosystem content, --dry-run previews). cortex-tms validate checks mandatory files, the 200-line ceiling on HOT files, leftover [Project Name] placeholders, archive status, and doc staleness, with --fix repairing missing files and --strict turning warnings into errors. Staleness compares each doc's last-modified date against commits in directories mapped under staleness.docs in .cortexrc, flagging when daysSinceDocUpdate > thresholdDays and meaningfulCommits >= minCommits. status prints health and sprint progress, dashboard renders Overview / Files / Health views with optional --live refresh, archive moves completed tasks into docs/archive/, migrate analyses and upgrades outdated templates (--apply, --rollback), prompt retrieves the Essential 7 prompt library, hooks install writes a pre-commit hook that runs validate, and mcp serves read-only cortex:// resources over STDIO.
- Teams using Claude Code or GitHub Copilot heavily who want agent-written code to reuse the conventions already recorded in PATTERNS.md instead of inventing new ones.
- A long-running repository whose architecture docs have quietly drifted from the code, needing CI in strict mode to block merges on stale docs.
- An organisation with Node, Python and Go repositories that wants ecosystem-specific governance text generated quickly via --preset.
- Anyone driving Claude Desktop or another MCP client who wants NEXT-TASKS.md and the core spec docs readable through a fixed URI list instead of pasted context.
- A brand-new project that wants task list, architecture, patterns and domain rules scaffolded and committed within about a minute.
- Engineering teams that gate every commit on documentation health and want the check moved local via the pre-commit hook.
How do you install or deploy this agent?
No installation is required to try it — run through npx. You need a Node.js runtime and a project that is already a git repository, because staleness detection reads git history. For frequent use, install globally:
How do you use this agent?
Generate the governance docs first, interactively or with explicit flags:
Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
Inherits capabilities of connected MCP servers; audit third-party servers before enabling.
What are this agent's strengths and limitations?
- Scaffolding, health validation and git-based staleness detection live in one CLI, and
validate --strictdrops straight into CI as a build gate. - Ships a read-only MCP server exposing stable cortex:// resource URIs to MCP clients, with no write tools, so agents can read governance docs without mutating them.
- Hook management only touches hooks carrying its own marker and never overwrites foreign pre-commit hooks, which limits the blast radius on existing repos.
- Three governance packs (node/python/go) plus
--scopetiers let you size the doc set to the project instead of adopting every file.
- Staleness v1 is purely temporal: it compares git timestamps and explicitly cannot detect semantic misalignment, and it silently degrades on shallow clones without
fetch-depth: 0. reviewis described as AI-powered semantic validation, but the README does not document which model provider, credentials or request path it uses, so that feature is unverifiable from the source.- Adoption means maintaining a whole tiered documentation set forever; for prototypes or small solo projects the upkeep outweighs the benefit, as the README itself notes.
- v4.0 is breaking:
status --tokensand token/cost analysis were removed andauto-tieris deprecated in favour ofarchive, so existing scripts need migration. - Requires a Node.js runtime, and the npx quickstart needs network access to the npm registry to fetch the package.
How does this agent compare with similar options?
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| Cortex TMS This agent | 61 · Some gaps | CLIFree | ★ 180 | 10d ago | MDX | Claude Code |
| ReevesAgents | 67 · Some gaps | — | ★ 112 | 1d ago | TypeScript | Claude Code |
| Cambium | 85 · Good | CLIFree | ★ 663 | 2mo ago | Python | Codex · Claude Code |
| Grounded Docs MCP Server | 78 · Good | CLIFree + model costs | ★ 1.9k | 10d ago | TypeScript | ChatGPT · Claude Code |
How does FollowAgents rate this agent?
Why each dimension lost points
Trust evidence is uneven. CLAUDE.md and the release/implement skills explicitly require user approval for git writes, release steps, and showing diffs before committing; MCP is described as read-only and hooks claim not to overwrite foreign hooks, supporting user_confirmation = 2. least_privilege is only 1: the plan skill allows broad tools including Read/Glob/Grep/WebSearch/WebFetch/Edit/Write/Task, implement/release have no explicit tool allowlist, and init --force can overwrite files. data_flow_transparency is 1: README lists MCP resources and config, but does not fully explain what code review/Guardian sends to external AI services, retention, or network boundaries. sensitive_data_handling is 2: SECURITY.md and SECURITY-TESTING.md concretely describe API key redaction, .env usage, path traversal protection, and Zod validation, and src/cli.ts imports sanitizeApiKey, but sanitize.ts itself is not in the packet. dependency_security is 2: CI runs pnpm audit --audit-level=high --prod, but only high/critical production dependencies are covered and no lockfile is included. external_effects is 1: the CLI writes files, installs git hooks, starts an MCP server, and review calls an external AI service; dry-run/read-only designs exist, but there is no unified egress or side-effect boundary statement. rollback is 1: migrate has --rollback and backups, init/archive have dry-run, but init --force has no general rollback or backup promise. source_attribution is 2: MIT LICENSE, package author/repository fields, and document references are clear, but publisher identity is unverified and cannot add points by itself.
Reliability has concrete inconsistencies. self_consistency is 1: README says 316 tests (97% pass rate), SECURITY.md says 269 tests, SECURITY-TESTING.md says 60+ E2E; README lists MCP as a v4.2+ future item while README and src/cli.ts already register the mcp command; CLAUDE.md ends with version marker 4.0.2 while README/package.json say 4.1.0. dependency_availability is 1: package.json lists dependencies and Node >=18, CI uses pnpm 8/Node 22, but no lockfile is included, so reproducible installation cannot be statically confirmed. failure_messages is 2: src/cli.ts has centralized error handling, CLIError/ValidationError, exit codes, and sanitizeApiKey, and docs show error examples; not every command failure path is visible in the packet, so it is not full marks.
Adaptability is relatively strong. audience_and_scenarios is 3: README clearly lists good fits (multi-file, team, long-running, AI-heavy) and poor fits (single-file, throwaway prototypes, simple solo projects), plus nano/standard/enterprise scopes and node/python/go presets. capability_boundaries is 3: README has a What Cortex Does / Does NOT Do section, explicitly saying it is not a token optimizer, not code enforcement, not semantic analysis, and that staleness v1 is timestamp-based only. trigger_precision is 2: skills have clear descriptions and disable-model-invocation, and plan/implement/release triggers are fairly clear, but there is no unified manifest and some skill tool scopes are broad. environment_fit is 2: Node >=18, pnpm, full git history, CI fetch-depth: 0, and MCP client setup are documented, but the pnpm and full-history requirements limit some environments.
Convention is generally solid. information_architecture is 3: README, CLI-USAGE, SECURITY, TROUBLESHOOTING, docs/core layering, and the HOT/WARM/COLD table are clear. install_notes is 3: npx, global install, Node version, and pnpm install troubleshooting are documented. naming_stability is 2: MCP URI slugs are claimed stable and auto-tier has a deprecation notice, but version markers and roadmap naming are inconsistent. examples_and_faq is 3: CLI commands, CI, MCP config, dashboard, and troubleshooting examples are plentiful. known_limitations is 3: staleness v1 limits, fit/non-fit scenarios, and non-goals are explicit. license is 3: MIT LICENSE matches package.json. versioning_changelog is 2: README has versions, breaking changes, and a roadmap and references CHANGELOG.md, but no CHANGELOG is included and version markers conflict. maintenance_responsibility is 2: package.json has author email, repository, issues/discussions, but the security contact is still 'to be added' and publisher identity is unverified.
Effectiveness can only be judged statically. output_usability is 2: README/CLI-USAGE show validate, status, dashboard, and MCP config outputs with clear structure, but actual output quality was not executed. marginal_value is 2: documentation governance, staleness detection, hooks, and MCP resource exposure add value to AI coding workflows, but overlap with ordinary AGENTS/CLAUDE governance and value depends on project size. cost_benefit is 1: README acknowledges small projects/prototypes may not be worth it, but gives no quantified setup cost, maintenance cost, or benefit evidence.
Verifiability is weak. claim_traceability is 1: README claims 316 tests, 97% pass rate, 269 tests, 60+ E2E, and enterprise-grade security, but no test files or run results are included, so those numbers cannot be traced. cross_source_corroboration is 1: commands, security practices, installation, and package metadata are cross-referenced across README/SECURITY/CLI-USAGE/package.json, but test counts, version markers, and the MCP roadmap conflict. fact_inference_separation is 1: docs separate what the tool does/does not do and staleness limits, but marketing claims such as 'Production Grade' and test pass rates are mixed with verifiable facts and cannot be confirmed statically.
- Test counts and pass rates conflict across README, SECURITY.md, and SECURITY-TESTING.md, and no test files or run results are included; do not treat '316 tests / 97% pass rate' as verified fact.
- Version markers conflict: CLAUDE.md ends at 4.0.2 while README/package.json say 4.1.0; MCP is still listed as a future roadmap item in README even though the command is registered. Verify the actual published version before use.
- The plan skill allows broad tools such as Edit/Write/WebFetch/Task, and implement/release have no explicit tool allowlist; although the docs require user approval, tighten tool permissions in real deployments.
- review/Guardian calls an external AI service, but the packet does not fully document what data is sent, retention, or network egress; confirm data flow and compliance before using it on private code.
- init --force can overwrite existing files, and while migrate has rollback, init has no general rollback promise; use dry-run and backups before applying to an existing project.
- No lockfile is included, so reproducible dependency installation cannot be statically confirmed; publisher identity is unverified and the security contact is still 'to be added'.
FAQ
Do I need to supply an LLM API key?
review is labelled AI-powered semantic validation, and the source does not state the provider or credentials it needs, so confirm that before relying on it.Why does staleness detection never fire in GitHub Actions?
fetch-depth: 0 on actions/checkout; with a shallow clone the commit counts are wrong and the check cannot work.Does validate check my code quality?
Will installing hooks clobber my existing pre-commit hook?
.cortexrc, so run cortex-tms init first.Can the MCP server modify my documents?
paths.docs / paths.tasks in .cortexrc.Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.