Skip to content

Conventions Command

Quick Start: View, detect, or reset codebase conventions that guide code generation style. Conventions are auto-detected during sequant init and stored in .sequant/conventions.json.

  • Command: sequant conventions [options]

Display current conventions (detected + manual overrides).

Terminal window
sequant conventions

Output:

Detected conventions:
testFilePattern: *.test.ts
exportStyle: named
asyncPattern: async/await
typescriptStrict: enabled
sourceStructure: src/
packageManager: npm
indentation: 2 spaces
semicolons: required
Last detected: 2026-03-13T20:23:03.899Z
Edit .sequant/conventions.json to add manual overrides.

If no conventions file exists, prompts to run detection.

Re-run convention detection. Scans source files and updates the detected section while preserving any manual overrides.

Terminal window
sequant conventions --detect

Use this after significant codebase changes (e.g., migrating from Jest to Vitest, switching to tabs).

Clear all detected conventions. Manual overrides in the manual section are preserved.

Terminal window
sequant conventions --reset
FlagDescription
--detectRe-run convention detection and save results
--resetClear detected conventions, keep manual overrides
-h, --helpDisplay help
KeyWhat It DetectsExample Values
testFilePatternTest file naming convention*.test.ts, *.spec.ts, __tests__/
exportStyleNamed vs default exportsnamed, default, mixed
asyncPatternAsync/await vs promise chainsasync/await, promise-chains, mixed
typescriptStrictTypeScript strict modeenabled, disabled
sourceStructureSource directory layoutsrc/, src/, app/
packageManagerPackage manager from lockfilenpm, yarn, pnpm, bun
indentationIndentation style2 spaces, 4 spaces, tabs
semicolonsSemicolon usagerequired, omitted, mixed
componentDirComponent directory locationsrc/components/, components/
{
"detected": {
"testFilePattern": "*.test.ts",
"exportStyle": "named"
},
"manual": {
"testFilePattern": "*.spec.ts",
"prTitleFormat": "feat(#N): description"
},
"detectedAt": "2026-03-13T20:23:03.899Z"
}
  • detected — Auto-populated by detection scan
  • manual — User-edited overrides (always take precedence)
  • detectedAt — Timestamp of last detection run