Code Validation
Gee-Code automatically validates code files after every Write and Edit operation. Validation is non-blocking — results are reported as warnings that help the AI self-correct, but they never prevent the file from being saved.
How It Works
Section titled “How It Works”When the AI writes or edits a file:
- Detects the file type from its extension
- Runs the appropriate validators (syntax checkers, linters)
- Reports any issues back to the AI
- The AI sees the issues and can fix them immediately
This creates a fast feedback loop where syntax errors and lint issues are caught and corrected within the same turn.
Supported Languages
Section titled “Supported Languages”| Language | Extensions | Validators |
|---|---|---|
| Python | .py | ast.parse syntax + ruff linting |
| JavaScript/TypeScript | .js, .jsx, .ts, .tsx | quick-lint-js |
| JSON | .json | json.loads syntax check |
| YAML | .yaml, .yml | yaml.safe_load syntax check |
| Shell | .sh, .bash, .zsh | bash -n syntax + shellcheck |
| HTML | .html, .htm | Python html.parser |
| Swift | .swift | swiftc -parse syntax check |
Validation Levels
Section titled “Validation Levels”- Error — syntax errors, parse failures. The AI is prompted to fix these immediately.
- Warning — lint issues, unused imports, style violations. Reported but not critical.
Installing Validators
Section titled “Installing Validators”Some validators use external tools. If the tool isn’t installed, validation gracefully skips it.
/validate # Show which validators are available/validate install # Install recommended validatorsPython: Ruff
Section titled “Python: Ruff”pip install ruffJavaScript: quick-lint-js
Section titled “JavaScript: quick-lint-js”brew install quick-lint-js # macOSnpm install -g quick-lint-js # npmShell: ShellCheck
Section titled “Shell: ShellCheck”brew install shellcheck # macOSapt install shellcheck # Ubuntu/DebianManaging Validation
Section titled “Managing Validation”/validate # Show status/validate off # Disable auto-validation/validate on # Re-enableEach validator has a 5-second timeout to keep the feedback loop fast.
Next Steps
Section titled “Next Steps”- Code & Files — file operation tools
- Configuration — customize validation settings