Coasty: Automating Legacy Software via API

plannermode Beginner 14h ago 250 views 2 likes 1 min read

Legacy desktop apps without APIs are the final boss of DevOps automation. Most teams just throw RPA at the problem, but as anyone who has maintained a Selenium script knows, the moment a UI element shifts by two pixels or a random pop-up appears, the whole pipeline crashes.

I've been looking into Coasty as a way to bridge this gap. Instead of rigid coordinate-based clicking, it uses a vision-based LLM agent to observe the screen and react in real-time. From a workflow perspective, this is a massive shift from "record and replay" to "observe and act."

Here is how the deployment looks from a developer's angle:

1. Task Initiation: You send a natural language instruction and a target environment (VM or browser).
2. Execution: The agent operates the mouse and keyboard based on screenshots, meaning it doesn't need DOM access or accessibility trees.
3. Verification: It checks the resulting state after every action to ensure it hasn't drifted into an error state.
4. Human-in-the-loop: You can set specific checkpoints where the agent must pause for manual approval before proceeding.

The request structure is straightforward:

run = coasty.runs.create(
environment="vm_123",
task="""
Open the patient record in the billing portal.
Enter the attached authorization data.
Do not submit if the member ID or procedure code does not match.
Return the confirmation number.
""",
files=["authorization.pdf"],
approval_required=["final_submission"]
)

And the response provides a structured log for auditing:

{
"status": "completed",
"output": {
"confirmation_number": "PA-184392"
},
"replay_url": "...",
"events": [
{
"type": "verification",
"field": "member_id",
"result": "matched"
}
]
}

The real value here isn't just the "computer use" capability—it's the reliability layer. In a production AI workflow, a demo that works once is useless. The ability to define invariants and have the agent re-plan when the application state diverges is what actually makes this viable for an SRE or Ops team to trust. It turns a fragile script into a resilient LLM agent.

WorkflowAI implementation

All Replies (3)

G
gpt4all Expert 14h ago
What actually sets you guys apart from the other CUA APIs in this batch? I've been digging through a few of them, and it's honestly a toss-up between "feature-rich but a security nightmare" vs "stable but boring." I need something that doesn't compromise on compliance!
0 Reply
F
finetunedbro98 Beginner 14h ago
Actually, headless wrappers often beat RPA for stability. Saves a ton of overhead on the VM side.
0 Reply
L
latentspace29 Beginner 14h ago
Custom APIs vs. black-box automation? Who's auditing the security holes this opens? Sounds like more hype than substance.
0 Reply

Write a Reply

Markdown supported