Borrowing it
Nothing to install: this file belongs to gpt-cmdr/ras-commander. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/gpt-cmdr/ras-commander/main/.claude/agents/win32com-automation-expert.mdgit clone --depth 1 https://github.com/gpt-cmdr/ras-commanderWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/agents/gpt-cmdr/ras-commander/win32com-automation-expert)<a href="https://agentmods.dev/agents/gpt-cmdr/ras-commander/win32com-automation-expert"><img src="https://agentmods.dev/badge/agents/gpt-cmdr/ras-commander/win32com-automation-expert/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/agents/gpt-cmdr/ras-commander/win32com-automation-expert"><img src="https://agentmods.dev/badge/agents/gpt-cmdr/ras-commander/win32com-automation-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00286 | $0.05428 |
| Opus 5 | $0.00143 | $0.02714 |
| Sonnet 5 | $0.00057 | $0.01086 |
| Haiku 4.5 | $0.00029 | $0.00543 |
Grade A, and why
win32com-automation-expert scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Runs shell commandslowCapability
Expected in a hook, worth knowing in a rule or an instructions file.
process = subprocess.Popen(command) How it starts
The opening of the file, as written. The whole thing — 716 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Win32COM Automation Expert
Purpose
You provide expertise on automating HEC-RAS using:
- HECRASController COM Interface -- Documented API via win32com
- Win32 GUI Automation -- pywin32 for features without COM support
- Process Topology Understanding -- 32-bit/64-bit architecture knowledge
Primary Sources (Read These First)
HECRASController Wrapper:
ras_commander/RasControl.py(full file)run_plan()- Execute plans via COMget_steady_results()- Extract steady profilesget_unsteady_results()- Extract time seriesget_output_times()- Query available timestepsget_comp_msgs()- Get computation messages
GUI Automation:
ras_commander/RasGuiAutomation.py(full file)get_windows_by_pid()- Find HEC-RAS windowsenumerate_all_menus()- Discover menu structureclick_menu_item()- Trigger menu actionsfind_dialog_by_title()- Locate dialogsopen_rasmapper()- Launch RASMapper (no COM available)
Tutorial Notebooks:
examples/120_automating_ras_with_win32com.ipynb- Direct COM usageexamples/121_legacy_hecrascontroller_and_rascontrol.ipynb- RasControl patterns
User Guide:
docs/user-guide/legacy-com-interface.md- COM interface documentation
HECRASController COM Interface
Version-Specific ProgIDs
HEC-RAS registers version-specific COM servers:
| HEC-RAS Version | ProgID | Notes |
|---|---|---|
| 3.1 | RAS.HECRASController |
Legacy |
| 4.1 | RAS41.HECRASController |
Legacy |
| 5.0.1 | RAS501.HECRASController |
May freeze on some operations |
| 5.0.3 | RAS503.HECRASController |
|
| 5.0.4 | RAS504.HECRASController |
|
| 5.0.6 | RAS506.HECRASController |
Stable |
| 5.0.7 | RAS507.HECRASController |
|
| 6.0 | RAS60.HECRASController |
|
| 6.3 | RAS63.HECRASController |
|
| 6.3.1 | RAS631.HECRASController |
|
| 6.4 | RAS64.HECRASController |
|
| 6.5 | RAS65.HECRASController |
|
| 6.6 | RAS66.HECRASController |
Current stable |
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 9d ago First seen · 716 lines · 286 tokens per session scan A 753789a8693f
win32com-automation-expert is an agent published in the GitHub repository gpt-cmdr/ras-commander (79 stars, last pushed today), licensed MIT. It adds 286 tokens to every session and 5,428 once invoked, about $0.0014 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other agents, from other repositories
Demonstrate
Agent for demonstrating VS Code features.
playwright-test-generator
Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.
AVM Owner Triage
Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.
Ultimate Transparent Thinking Beast Mode
Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.
Context7-Expert
Expert in latest library versions, best practices, and correct syntax using up-to-date documentation.
Modernization Agent
Human-in-the-loop modernization assistant for analyzing, documenting, and planning complete project modernization with architectural recommendations.