DEDUPED Hot AI repos, turned into use cases Get 5 a day

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.

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.

Share: X LinkedIn Hacker News Email Copy link

Disclaimer

Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked "Seen in the wild", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email [email protected] and we will look at it promptly. Full disclaimer page