How frys3333/arrow-contract-intelligence-organization works
Arrow is a local-first SAM.gov contract-opportunity intelligence tool. Users sync public bulk CSV data into a local SQLite store, then browse/search, save or archive notices, and rank them against a company profile; optional Ollama calls provide explanations and summaries. The REPL and TUI are separate user interfaces over the same capabilities. Edges reflect excerpted calls or README descriptions; some subsystems are indexed but not excerpted, so their internal links are omitted where evidence is limited.
Main entry points: repl.py Command REPL · tui.py Terminal UI · sync_engine.py Sync engine · repo.py Opportunity repository
Components 19
User interfaces
- Command REPL
arrow/repl.py - Terminal UI
arrow/tui.py - Environment loading
arrow/env.py
Opportunity ingestion
- Sync engine
arrow/sync_engine.py - CSV downloader
arrow/bulk_download.py - CSV reader
arrow/bulk_csv.py - Opportunity normalization
arrow/normalize.py - Canonical mapping
arrow/canonical.py - IPv4 preference
arrow/ipv4_preference.py
Local data and profile
- Opportunity repository
arrow/repo.py - SQLite datastore
arrow/db.py - JSON archive
arrow/archive_store.py - Company profile
arrow/company_profile.py
Ranking and analysis
- Fit ranking
arrow/ranking.py - Structured analysis
arrow/analysis.py - Ollama runtime
arrow/ollama_runtime.py - Ollama client
arrow/ollama_client.py
Other components
- Arrow user
- Local Ollama
Connections 30
- Arrow user → Command REPL: runs commands
README.md - Arrow user → Terminal UI: opens interface
README.md - Command REPL → Sync engine: requests sync
arrow/repl.py - Terminal UI → Sync engine: requests sync
arrow/tui.py - Sync engine → CSV downloader: downloads CSV
arrow/sync_engine.py - Sync engine → CSV reader: reads rows
arrow/sync_engine.py - CSV downloader → CSV reader: uses CSV cache
arrow/bulk_download.py - Sync engine → Opportunity normalization: normalizes notices
arrow/sync_engine.py - Opportunity normalization → Canonical mapping: maps fields
arrow/normalize.py - Sync engine → Opportunity repository: upserts records
arrow/sync_engine.py - Opportunity repository → SQLite datastore: reads and writes
arrow/repo.py - Command REPL → Opportunity repository: browses and saves
arrow/repl.py - Terminal UI → Opportunity repository: browses opportunities
arrow/tui.py - Command REPL → JSON archive: manages exports
arrow/repl.py - Terminal UI → JSON archive: manages exports
arrow/tui.py - Command REPL → Company profile: edits profile
arrow/repl.py - Terminal UI → Company profile: edits profile
arrow/tui.py - Command REPL → Fit ranking: ranks leads
arrow/repl.py - Terminal UI → Fit ranking: ranks leads
arrow/tui.py - Command REPL → Structured analysis: requests explanations
arrow/repl.py - Terminal UI → Structured analysis: requests analysis
arrow/tui.py - Structured analysis → Ollama client: requests model output
arrow/analysis.py - Ollama runtime → Ollama client: checks service
arrow/ollama_runtime.py - Ollama client → Local Ollama: sends HTTP requests
arrow/ollama_client.py - Command REPL → Ollama runtime: starts if needed
arrow/repl.py - Terminal UI → IPv4 preference: enables preference
arrow/tui.py - Command REPL → IPv4 preference: enables preference
arrow/repl.py - Command REPL → Environment loading: loads configuration
arrow/repl.py - Terminal UI → Environment loading: loads configuration
arrow/tui.py - Arrow user → Fit ranking: sets fit context
README.md