Sandsprite Papers

VB6 P-Code / Reversing

Reverse Engineering / Binary Analysis

Visual Basic 6
|
-
Agentic Coding Against Live Object Models - Sandsprite 2026
In this paper we show how to give an AI agent direct access to the live object model of a running VB6 program, so it can introspect, query, and reason about your application's internal state without any custom integration code.
The pattern combines MSScriptControl for live JScript evaluation against COM objects, an auto-generated proto file per class for AI-readable schema discovery, and a small agent loop that handles error feedback and self-correction across multiple stages.
Works on Standard EXE projects, with no typelib registration required. Code samples include reusable VB6 client classes for the OpenAI and Anthropic APIs.
(code samples)
|