Skip to content

intake:capture-behavior

Scan for untested behavior and write characterization tests that assert current functionality as a safety net for future changes.

Status: Planned


The agent identifies functions, endpoints, and components with no test coverage and builds a test plan based on what the code currently does — not what it should do. These characterization tests capture existing behavior so that future changes will immediately surface regressions. Tests are run against the live code to verify they pass before being committed.

NameTypeRequiredDescription
directorystringnoRoot directory to scan for untested behavior. Defaults to project root.
NameTypeDescription
characterization-testsfileTest files asserting current behavior
coverage-reportreportSummary of behavior captured and coverage added
  • Documented codebase (from intake:document-codebase)
  • Project test framework configured and runnable

After capturing behavior, run intake:create-system-description to generate the living system description.