DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to add phrase-routed tools to a C++ app with Master Agent

Link the installed SDK into your own C++ program and register host tools with exact-phrase skills.

Short answer: Install the SDK with cmake --install build --prefix "$PWD/install-sdk" after the build step; then read the public API in include/master_agent/runtime/reference_runtime.h and the rules in the integration contract at docs/reference_runtime.md; add find_package(MasterAgent CONFIG REQUIRED) and target_link_libraries(your_app PRIVATE MasterAgent::Core) to your CMakeLists.txt. All steps.

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

  1. Install the SDK with cmake --install build --prefix "$PWD/install-sdk" after the build step.
  2. Read the public API in include/master_agent/runtime/reference_runtime.h and the rules in the integration contract at docs/reference_runtime.md.
  3. Add find_package(MasterAgent CONFIG REQUIRED) and target_link_libraries(your_app PRIVATE MasterAgent::Core) to your CMakeLists.txt.
  4. Register a tool with a supported parameter schema and callback, then register exact phrase skills.
  5. Build the consumer with cmake -S examples/reference_agent -B build-consumer -DCMAKE_PREFIX_PATH="$PWD/install-sdk" and cmake --build build-consumer as a reference, then run ctest --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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer