How abcel-thomas/smartrenameai-lite works
SmartRenameAI Lite is a local-first file analysis and filename-suggestion prototype. Its active CLI workflow discovers files in a selected folder, extracts text or prepares images, obtains a model-generated description and name, validates the suggestion, and prints a dry-run preview; it does not rename or move files. A separate inventory service scans and hashes files, records metadata and duplicate links in SQLite, and is not wired into the CLI. Operation planning, approval, persistence, and execution modules are present, but their detailed runtime flow is not established by the excerpts; edges show only documented or indexed references.
Main entry points: main.py Preview CLI · db_manager.py Database Manager · analyzer.py Content Analysis · inventory.py Inventory Service
Components 19
Naming Preview
- Preview CLI
main.py - Shared Settings
config.py - Text Extraction
engines/text_engine.py - Image Preparation
engines/image_engine.py - Content Analysis
intelligence/analyzer.py - Name Generation
intelligence/filename_generator.py - Name Validation
intelligence/validator.py - Ollama Client
engines/ollama_client.py
File Inventory
- Inventory Service
file_manager/inventory.py - File Scanner
file_manager/scanner.py - SHA-256 Hasher
file_manager/hasher.py
SQLite Persistence
- Database Manager
database/db_manager.py - Typed Records
database/models.py - SQLite Store
Operations Workflow
- Operation Planner
operations/planner.py - Approval Manager
operations/approval_manager.py - Operation Executor
operations/executor.py
Other components
- User
- Local Ollama
Connections 24
- User → Preview CLI: runs
README.md - Preview CLI → Text Extraction: extracts text
main.py - Preview CLI → Image Preparation: requests OCR
main.py - Preview CLI → Content Analysis: requests summary
main.py - Preview CLI → Name Generation: requests name
main.py - Preview CLI → Name Validation: validates suggestion
main.py - Preview CLI → Shared Settings: uses settings
main.py - Text Extraction → Shared Settings: uses limits
engines/text_engine.py - Content Analysis → Shared Settings: uses prompts
intelligence/analyzer.py - Content Analysis → Image Preparation: uses image support
intelligence/analyzer.py - Content Analysis → Ollama Client: requests model
intelligence/analyzer.py - Name Generation → Ollama Client: requests model
intelligence/filename_generator.py - Ollama Client → Shared Settings: reads endpoint
engines/ollama_client.py - Ollama Client → Local Ollama: sends chat request
engines/ollama_client.py - User → Inventory Service: indexes folder
README.md - Inventory Service → File Scanner: scans files
file_manager/inventory.py - Inventory Service → SHA-256 Hasher: hashes files
file_manager/inventory.py - Inventory Service → Database Manager: records inventory
file_manager/inventory.py - Database Manager → SQLite Store: reads and writes
database/db_manager.py - Database Manager → Typed Records: constructs records
database/db_manager.py - Operation Planner → Database Manager: uses persistence
- Approval Manager → Database Manager: records decisions
operations/approval_manager.py - Operation Executor → Database Manager: uses persistence
- Operation Executor → SHA-256 Hasher: uses hashing
operations/executor.py