How ray-lea/argus works
Argus is a Windows task manager: users inspect processes and system performance, take management actions, and review recorded history. The product spans a GPUI desktop interface, application orchestration, Windows data collection, optional privileged-service support, and persistent history. README capabilities also include file-lock lookup, connections, services and startup items, monitoring surfaces, task-manager replacement, and in-app updates. The excerpts show initialization, history responsibilities, and service dispatch, but do not expose most runtime call sites; uncertain connections are therefore dashed and uncited.
Main entry points: commands.rs UI commands · sampler.rs Live sampling · pages Feature pages · frontend.rs GPUI interface
Components 21
Desktop experience
- GPUI interface
src-gpui/src/frontend.rs - Feature pages
src-gpui/src/frontend/pages - Tray and monitors
src-gpui/src/frontend/tray.rs
Application orchestration
- UI commands
src-gpui/src/commands.rs - App startup
src-gpui/src/lib.rs - Live sampling
crates/argus-app/src/sampler.rs - In-app updater
src-gpui/src/updater.rs
Windows data and actions
- Process inventory
crates/argus-core/src/process.rs - Hardware telemetry
crates/argus-core/src/hardware/mod.rs - Process actions
crates/argus-core/src/actions.rs - Connections
crates/argus-core/src/connections.rs - Services and startup
crates/argus-core/src/services.rs - File-lock lookup
crates/argus-app/src/explorer.rs
Privileged service
- Service pipe
crates/argus-service/src/pipe.rs - Service host
crates/argus-service/src/server.rs - Service installer
crates/argus-service/src/install.rs - Task-manager replacement
crates/argus-service/src/taskmgr/mod.rs
History and settings
- History recorder
crates/argus-core/src/history.rs - Process watch
crates/argus-core/src/watch/program.rs - Preferences
crates/argus-app/src/settings.rs
Other components
- Windows user
Connections 20
- Windows user → GPUI interface: operates
- GPUI interface → Feature pages: shows views
- Feature pages → UI commands: requests actions
- App startup → Live sampling: starts sampling
- Live sampling → Process inventory: collects processes
- Live sampling → Hardware telemetry: collects telemetry
- UI commands → Process actions: requests changes
- UI commands → Connections: manages connections
- UI commands → Services and startup: manages services
- Feature pages → File-lock lookup: looks up locks
- Live sampling → History recorder: records samples
- History recorder → Feature pages: provides history
- Live sampling → Process watch: tracks programs
- GPUI interface → Preferences: reads preferences
- In-app updater → Windows user: offers updates
- Service host → Service pipe: serves pipe
crates/argus-service/src/server.rs - Service pipe → Service installer: supports setup
crates/argus-service/src/install.rs - UI commands → Service pipe: uses privileged service
- Task-manager replacement → Service installer: maintains replacement
crates/argus-service/src/taskmgr/mod.rs - Tray and monitors → Hardware telemetry: shows live readings