Who it is forA C++ engineer who has an existing application and needs a text or voice command layer that only calls approved functions.
The problemWiring free-form input straight to application functions is risky, so the app needs a runtime that checks tool names and arguments first.
The outcomeYour application links Master Agent::Core, registers a tool and phrase skills, and returns typed results from Runtime::run().
What you need first
- CMake 3.18+ and a C++17 compiler on Linux or macOS
- Python 3 for tests and packaging
- libcurl development files only if you want the HTTP model adapter
- SQLite development files only if you want durable storage
Steps
- Install the SDK with
cmake --install build --prefix "$PWD/install-sdk"after the build step. - Read the public API in
include/master_agent/runtime/reference_runtime.hand the rules in the integration contract atdocs/reference_runtime.md. - Add
find_package(MasterAgent CONFIG REQUIRED)andtarget_link_libraries(your_app PRIVATE MasterAgent::Core)to your CMakeLists.txt. - Register a tool with a supported parameter schema and callback, then register exact phrase skills.
- Build the consumer with
cmake -S examples/reference_agent -B build-consumer -DCMAKE_PREFIX_PATH="$PWD/install-sdk"andcmake --build build-consumeras a reference, then runctest --test-dir build-consumer --output-on-failure. (inferred, check the README)
Prompt for your agent
Using the repo OpenSparX/MasterAgent, add MasterAgent::Core to <your app target> in CMake, register one tool and one exact-phrase skill from reference_runtime.h, and call Runtime::run() on a test phrase. Expected output is a typed tool result, not free text. Verify that an unknown tool name is rejected.
Caveat. The README says the schema support is a primitive object subset and the SDK is a small synchronous runtime, so plan your tool shapes around that.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for OpenSparX/MasterAgent and "Add phrase-routed tools to a C++ app"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer