Imported from fossadmin/ollama-tui (
AGENTS.md). Install upstream withnpx skills add fossadmin/ollama-tui. Copyright stays with the author.
Agent Guidelines for Ollama Project
This document outlines the conventions and commands for agentic coding in this repository.
Build/Lint/Test Commands
- Lint:
uv ruff check . --fix,statix check - Test:
pytest(coverage);nix-buildornix flake check - Single Test:
pytest <file>::<test-name> - Format:
ruff format,markdownlint
Code Style Guidelines
- Imports: Group stdlib, third-party, local imports with blank lines.
- Formatting: Use Ruff and markdownlint.
- Types: Type hints for Python functions.
- Naming:
snake_case(vars/functions),PascalCase(classes). - Error Handling: Use specific exception types; avoid bare except.
- Comments: Add detailed comments for complex logic to aid beginners.
Environment & Security Policy
- Activation: Load Nix env before commands (
direnv allow). - Isolation: All tasks must be performed within the isolated Nix environment.
- Security: Consult
@NixOS-Env-Enforcerfor env/dependency changes. - Software: Prioritize open-source software.
- Web Search: Prioritize
nixos.org,nixos.wiki,nixos/nixpkgs.
Additional Rules
- No Cursor or Copilot rules configured.
