Sandsprite Papers

Artificial Intelligence

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.
Other code samples include a multiagent chat, db access, image analysis, image tagging etc.
Includes an interchangable set of VB6 AI clients for OpenAI, Anthropic, Ollama, and Gemini. - (code repo)
|