trace group (alias: t).
trace init
Scan your codebase for LLM usage and generate avaliqor_init.py initialization file with workflow suggestions.
What It Does
- Runs a context scanner for feature detection
- Scans your codebase for LLM usage (detects providers and entry points)
- Generates
valiqor_init.pywith recommended workflow decorators - Creates the trace output directory
- Updates
.gitignoreto exclude trace files
Example
.valiqorrc exists, the CLI auto-configures the project before scanning.
trace apply
Apply@trace_workflow decorators to your Python files based on scan suggestions.
Behavior
- By default, applies decorators only to recommended entry points.
--allincludes alternative entry points as well.- Creates backups of modified files before applying changes.
- If
valiqor_init.pyis stale (scan ID mismatch), the CLI re-scans automatically before applying.
Example
trace uninstrument
Remove auto-applied Valiqor instrumentation (decorators and imports) from Python files.Example
Excludes dotfiles and
valiqor_init.py by default.trace refresh
Re-scan the codebase and regeneratevaliqor_init.py with updated suggestions.
Example
valiqor_init.py.