How 23swccp/m9a works
M9A automates gameplay through image recognition and simulated control, with MaaFramework hosting the agent runtime. The principal flow is client launch → agent startup and custom registration → task dispatch to recognition and action handlers → in-game results. The README documents a broad set of daily, combat, event, account, and reward tasks. Resource checks and hot updates support runtime operation. The graph groups task handlers by domain; some feature mappings are documented but their internal dispatch paths were not sampled, so those links are omitted.
Main entry points: agent_runtime.py Agent runtime · resource_updater.py Resource updater · maa_types.py Recognition types · auto_promotion.py Auto promotion
Components 23
Agent runtime
- Agent entry
agent/main.py - Agent runtime
agent/agent_runtime.py - Custom registration
agent/custom/__init__.py
Gameplay tasks
- Daily & activity tasks
agent/custom/action - Combat task
agent/custom/action/combat.py - Induction task
agent/custom/action/complete_induction.py - Silence event task
agent/custom/action/syndrome_of_silence.py - Account & codes
agent/custom/action - Special event tasks
agent/custom/action
Recognition logic
- Auto promotion
agent/custom/reco/auto_promotion.py - Auto trail
agent/custom/reco/auto_trail.py - Combat recognition
agent/custom/reco/combat.py - General recognition
agent/custom/reco/general.py - Silence recognition
agent/custom/reco/syndrome_of_silence.py
Runtime support
- Resource version check
agent/utils/manifest_checker.py - Resource updater
agent/utils/resource_updater.py - HTTP session
agent/utils/http_session.py - Parameter handling
agent/utils/params.py - Recognition types
agent/utils/maa_types.py - Logging
agent/utils/logger.py - Time utilities
agent/utils/time.py
Other components
- Maa client
- MaaFramework
Connections 16
- Maa client → Agent entry: launches
README.md - Agent entry → Agent runtime: calls
agent/main.py - Agent runtime → Custom registration: registers
agent/agent_runtime.py - Agent runtime → MaaFramework: starts agent
agent/agent_runtime.py - Agent runtime → Resource version check: checks versions
agent/agent_runtime.py - Agent runtime → Resource updater: updates resources
agent/agent_runtime.py - Resource version check → HTTP session: uses
agent/utils/manifest_checker.py - Resource updater → HTTP session: uses
agent/utils/resource_updater.py - Combat task → Combat recognition: uses
agent/custom/action/combat.py - Auto promotion → Auto trail: resets state
agent/custom/reco/auto_promotion.py - Silence event task → Recognition types: uses
agent/custom/action/syndrome_of_silence.py - Auto promotion → Parameter handling: parses parameters
agent/custom/reco/auto_promotion.py - Combat recognition → Recognition types: uses
agent/custom/reco/combat.py - General recognition → Recognition types: uses
agent/custom/reco/general.py - Resource updater → Time utilities: uses
agent/utils/resource_updater.py - Agent runtime → Logging: logs
agent/agent_runtime.py