Skip to main content

RETIX - The Optic Nerve for Autonomous Agents

Project description

RETIX

RETIX - The Optic Nerve for Autonomous Agents.

RETIX is a local-first vision CLI for coding agents. It analyzes screenshots, extracts visible text, and verifies visual claims with deterministic defaults suitable for engineering workflows.

Installation

git clone https://github.com/SNiPERxDD/retix.git
cd retix
python3 -m pip install -e .

Quick Start

retix setup
retix config
retix describe test_ui_screenshot.png

Core Commands

Describe

retix describe <image>
retix describe <image> --prompt "focus on form validation"
retix describe <image> --json

OCR

retix ocr <image>
retix ocr <image> --json

Check

retix check <image> "submit button is visible"
retix check <image> "error banner is red" --json

Setup and Configuration

retix setup
retix setup --non-interactive
retix config

retix setup performs:

  • environment validation (macOS tooling checks)
  • virtual environment creation in ~/.cache/retix/venv
  • hardware-aware model tier selection (2B, 8B, MoE profile)
  • optional custom Hugging Face model repo selection with format and reachability checks
  • editable install (pip install -e .) for global command availability

retix config initializes project context in .retix/ and updates .gitignore with RETIX-specific ignore entries.

Model Management

retix model list
retix model info
retix model switch 2b
retix model switch 8b
retix model switch moe

Benchmarking

retix bench

Daemon Mode

retix daemon start
retix daemon status
retix daemon stop

retix daemon stop performs deterministic shutdown:

  • sends SIGTERM
  • waits for graceful exit
  • escalates to SIGKILL on timeout
  • removes stale PID/socket files

Project Context

RETIX project context is stored in:

.retix/
  SKILL.md
  config.yaml

The generated skill file uses a strict metadata header:

  • ID
  • Name
  • Version

Security and Hygiene

  • Unix daemon socket permissions are set to 600.
  • Stale sockets are cleaned up when daemon responsiveness checks fail.
  • Local project context and archive artifacts are ignored through .gitignore.

Testing

Unit and Integration Tests

pytest tests

Real-World Screenshot Suite

RETIX_RUN_REAL_WORLD=1 pytest tests/real_world -m real_world

The real-world suite covers:

  • login screenshots
  • dashboard screenshots
  • code editor screenshots

If fixtures are missing, tests are skipped with explicit reasons.

License

MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

retix-1.2.0.tar.gz (30.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

retix-1.2.0-py3-none-any.whl (37.1 kB view details)

Uploaded Python 3

File details

Details for the file retix-1.2.0.tar.gz.

File metadata

  • Download URL: retix-1.2.0.tar.gz
  • Upload date:
  • Size: 30.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for retix-1.2.0.tar.gz
Algorithm Hash digest
SHA256 ca8cf701c5576ed4c3a9d258049c28b0f139e1a3fb838f27c26bf1c276b97d32
MD5 f3883c52511bccdcd9e072327dd9fb86
BLAKE2b-256 c6abd8729c12257610e442f3b602955d2383b93ac4c119814a0e84acdfbc3fa1

See more details on using hashes here.

File details

Details for the file retix-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: retix-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 37.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for retix-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 07aba230dfeb760497639f711de3d0b015e6aa2b563ff333d904236de608057e
MD5 e3edecfa9d1fd6a6f2ee2180f26534d0
BLAKE2b-256 e43f11be2707b1b5006522b84e9719af08088314e14bfa8d4fbac936e726f85d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page