Automated Pre-commit Test Creation and Execution for AI-written Code

Know what your change breaks.
Before you commit.

CodeMD maps your codebase into the product features it implements. On every change, it finds the tests that matter for the features you touched—creates the ones that are missing—and runs them before you commit.

Free VS Code extension. CodeMD analyzes without changing your source.

Pre-commit check

3 features touched by this change

2 files · 4 functions changed · not yet committed

Ready to commit
Feature affectedResultCoverageTests
◎Billing controlsPassed5 run
◆Enterprise accessPassed3 run
▥Usage reportingTest created1 new
↗Team onboardingNot affected—
✓ 9 targeted tests passed
+ 1 missing test created

Your tests know about functions.
Your users care about features.

Most tools tell you a test failed. CodeMD tells you which part of your product you were about to break—because it knows how every function maps to a feature.

✓Pre-commit

Every change, checked against the features it touches.

As you or your coding agent edit code, CodeMD detects each changed and new function, follows the call graph to the features it affects, reuses the most relevant existing tests, creates the ones that are missing, and runs that focused set in VS Code—before anything is committed.

See how focused testing works →
Pre-commit reportNot yet committed
Recommendation
Ready to commit
Features affected
3
Evidence
✓ 8 existing tests reused✓ 1 missing test created✓ 7 call paths checked1 caller without coverage
◇How it knows

The feature map is what makes the tests right.

Connect your repository once. CodeMD builds the call graph, reads repository evidence, and maps every function to the product feature it implements. Nothing to configure. A generic test runner sees changed files—CodeMD sees that you just touched Billing controls, and which tests protect it.

Map your repository →
Discovered featuresReview 3
Account onboardingConfirmed

Mapped to 18 functions across authentication, invitations, and workspace setup · 12 tests.

Usage reportingReview

Detected from dashboards, event aggregation, exports, and analytics routes · 4 tests.

Billing controlsConfirmed

Mapped to 21 functions across invoices, plans, and payment webhooks · 15 tests.

✦Agents

Guardrails for your coding agent.

CodeMD’s MCP server gives Claude Code and other MCP-compatible agents the callers, impact radius, and covering tests for a function before they edit it—and the exact tests to run before they call the change done. Every AI-written change arrives with evidence.

Test AI-written code →
Agent sessionMCP
Before editing calculateRisk()Impact

7 callers · 2 features affected: Billing controls, Usage reporting.

After editingReview

4 functions changed · 5 tests to verify · 1 changed function without coverage.

↳ Reused 4 existing tests
↳ Created 1 regression test
✓ 5 passed — safe to commit
↻For the team

Every commit becomes feature progress.

The same feature map turns commits into a daily view your whole team can read. See which features changed, where tests fell behind, which defects are open, and what is ready to ship—without reconstructing the story from tickets and diffs.

See daily feature progress →
Daily feature progressLast 7 days
Today
Usage reporting moved to 78%

3 functions changed · 2 tests added · export sub-feature updated

Yesterday
Enterprise access changed

SSO callback updated · 8 affected tests passed

Monday
Team onboarding marked ready

All mapped functions tested · no open defects

Evidence for developers. Progress for everyone.

Developers commit knowing what they touched and that it still works. Product and engineering leads see every feature move, every day.

Pre-commit testing

Run the tests that matter for your change in VS Code, before it is committed.

Missing-test creation

Unit, contract, integration, and regression tests created where coverage is missing.

Feature map

Every function mapped to the product feature it implements, from your call graph.

Feature tracking

Follow changes, test movement, defects, and readiness by feature, every day.

Commit with evidence, not hope.

Install the free VS Code extension and run the tests that matter for your next change.