-
-
Notifications
You must be signed in to change notification settings - Fork 0
Configuration
LoFi edited this page Jan 26, 2026
·
1 revision
LoFi Gate is designed to work out-of-the-box (Zero Config), but you can customize the "Physics" of your workspace using the lofi.toml file found in .agent/skills/lofi-gate/.
The configuration is divided into two sections: Project (Environment) and Gate (Rules).
[project]
test_command = "" # Override auto-detection
[gate]
strict_tdd = true # Block code without tests
lint_check = true # Run linter
security_check = true # Run audit-
Default:
""(Auto-Detect) - Description: The command used to verify logic correctness.
-
Auto-Detection: If left empty, LoFi Gate looks for:
-
npm run test:agent(The Speed Lane) npm testpython -m pytestcargo testgo test ./...
-
-
Usage: Set this if you use a custom runner (e.g.,
make testor./scripts/verify.sh).
These are the "Physics" toggles.
-
Default:
true - Description: Enforces Red-Green-Refactor.
-
Behavior:
-
Enabled: Fails if you add a new source file (e.g.,
api.py) without adding a corresponding test file (e.g.,test_api.py) or updating existing tests. - Disabled: Allows "Cowboy Coding" (code without tests). Useful for pure prototyping phases.
-
Enabled: Fails if you add a new source file (e.g.,
-
Default:
true - Description: Enforces Code Style/Quality.
-
Behavior: Runs
npm run lint,cargo check, orgo vet. If the linter reports errors, the Gate closes.
-
Default:
true - Description: Enforces Supply Chain Security.
-
Behavior: Runs
npm audit(High/Critical only) orcargo audit. Failure blocks the build.