Reddit idea: expose every OOP public method as AI agent tools to agentify legacy apps
out_of_nowhere__ · reddit · 2026-11-02
A Reddit poster proposes reusing OOP encapsulation to agentify existing software:
- Expose all public methods to an AI agent while keeping private/protected members intact—no new system needed
- Users state intent in natural language (e.g. "show me the 2006 report") and the agent maps it to functions like getreport(startdate, enddate), replacing traditional API query/filter flows
- Well-modularized legacy repos organized around services are ideal; small decision models could prefilter which services get requested, gradually converting whole legacy apps into agentic applications
Open problems raised: read/write access control, prompt injection risks, and possibly middleware to prefilter tool calls.
More from coding & agent
- Google's open-sourced "Elephant-Goldfish" workflow separates planning from review to curb sloppy AI output — gaganghotra_ · 2026-11-02
- InfoQ: A Systemic Approach to Memory, Knowledge, and Context in Agentic AI Architectures — AdiPolak · 2026-11-02
- Autonomous's Harness Pro uses an ESP32-P4, not a mini PC, to monitor AI coding agents — dee_hw · 2026-11-02
- RL-trained LFM2.5-24B adapter matches accuracy with 20% fewer tool calls — yb2698 · 2026-11-02
- Debugging production AI agents: error surfaces at step 5, root cause at step 3 — Ok-Machine7983 · 2026-11-02
- RAGFlow 1.0 preview: from RAG engine to agent-native database — newpeak · 2026-11-02