How dwservice/agent works
DWService Agent is a cross-platform remote-management and support agent. Its central workflow is to start the agent, establish server communication, accept remote work, and expose supported applications such as desktop, filesystem, shell, and resource monitoring. Core modules also provide listener, IPC, native-platform, and connection services; the repository includes a user-facing installer and monitor UI. Application dispatch and several UI interactions are inferred from the product structure, so those links are marked unverified rather than presented as inspected call paths.
Main entry points: agent.py Agent manager · desktop.py Remote desktop · installer.py Installer UI · shell.py Remote shell
Components 24
Agent runtime
- Agent manager
core/agent.py - Server communication
core/communication.py - Connection listener
core/listener.py - Process IPC
core/ipc.py - App registry
core/applications.py
Remote applications
- Remote desktop
app_desktop/desktop.py - Frame encoding
app_desktop/encoder.py - File management
app_filesystem/filesystem.py - Remote shell
app_shell/shell.py - Windows console
app_shell/os_win_pyconpty/conpty.py - Text editor
app_texteditor/texteditor.py - Log watch
app_logwatch/logwatch.py - Resource monitor
app_resource/resource.py
Platform capabilities
- Native bridge
core/native.py - Screen capture
lib_screencapture/src/main.cpp - OS utilities
lib_osutil/src/main.h
User interface
- Agent UI
ui/ui.py - Installer UI
ui/installer.py - Monitor UI
ui/monitor.py - GUI backend
ui/gdi.py
Agent services
- Platform detection
core/detectinfo.py - Core utilities
core/utils.py - Windows service
os_win_service/src/main.cpp
Other components
- Operator
Connections 31
- Operator → Agent manager: starts
README.md - Agent manager → Server communication: uses
core/agent.py - Agent manager → Connection listener: uses
core/agent.py - Agent manager → Process IPC: initializes
core/agent.py - Agent manager → App registry: queries
core/agent.py - Agent manager → Platform detection: queries
core/agent.py - Agent manager → Core utilities: uses
core/agent.py - Connection listener → Process IPC: uses
core/listener.py - Server communication → Core utilities: uses
core/communication.py - Remote desktop → Agent manager: uses
app_desktop/desktop.py - Remote desktop → Process IPC: uses
app_desktop/desktop.py - Remote desktop → Native bridge: uses
app_desktop/desktop.py - Remote shell → Agent manager: uses
app_shell/shell.py - Remote shell → Native bridge: uses
app_shell/shell.py - Remote shell → Windows console: uses
app_shell/shell.py - Resource monitor → Agent manager: uses
app_resource/resource.py - Installer UI → Server communication: uses
ui/installer.py - Installer UI → Connection listener: uses
ui/installer.py - Installer UI → Process IPC: uses
ui/installer.py - Installer UI → Agent UI: uses
ui/installer.py - Installer UI → Monitor UI: uses
ui/installer.py - Agent UI → GUI backend: uses
- Remote desktop → Screen capture: captures with
- Remote desktop → Frame encoding: encodes with
- Agent manager → File management: dispatches to
- Agent manager → Remote shell: dispatches to
app_shell/shell.py - Agent manager → Text editor: dispatches to
- Agent manager → Log watch: dispatches to
- Agent manager → Resource monitor: dispatches to
app_resource/resource.py - Native bridge → OS utilities: calls
- Agent manager → Windows service: runs as