Sonde documentation

This directory holds the project’s documentation. Start here to find the right document for what you are trying to do.

Sonde is a C++ library that you add to a Qt application so that an AI agent (or any other Model Context Protocol client) can look inside the running application: take screenshots, click buttons, type text, inspect objects and read the application’s log. It is meant as a debugging aid: the built-in tools must not ship in a release build. An application can still offer its own, deliberately limited MCP API in a release; guide/release.md explains how.

Which document do I need?

I want to… Read
Add Sonde to my application and connect a client to it guide/using.md
Find the right tool for a question (“what is in this table?”, “did it finish?”) guide/using.md, “Which tool answers my question?”
Let an agent build, restart and check my application itself (VS Code, CLion templates) guide/agent-loop.md
Use it with an application running in a Docker container guide/containers.md
Have an agent reproduce, minimise and try to fix bug tickets on its own guide/ticket-triage.md, with the code in examples/ticket-triage/
Offer an MCP interface in a release build, safely guide/release.md
Understand how the library works inside guide/architecture.md
Build the library, run the tests, fix a bug or add a feature guide/developing.md
Review a change to the library guide/reviewing.md
Find out why something is designed the way it is, or propose a change design/README.md: numbered design documents, RFC style
See what Sonde can do, on a real bug, step by step examples/invisible-overlay.md
See an agent visualize live data in its own QML window to find a timing bug examples/packet-lag.md
See an agent port a Qt Widgets window to QML, against the running application examples/widgets-to-qml.md
Find an example application to try or copy from ../examples/README.md: every example, what it shows, and how to run it
Get a one-page overview ../README.md (the repository README)
Look up a class or function api-reference.md, then the API reference for the latest release, or generate it: cmake --build build --target docs and open build/docs/html/index.html

Suggested reading order by role

Contents

notes/
├── README.md              this index
├── api-reference.md       map of the public API; front page of the Doxygen reference
├── guide/
│   ├── using.md           using the library in an application
│   ├── architecture.md    how the library is put together
│   ├── developing.md      building, testing, extending
│   ├── reviewing.md       how to review changes
│   ├── agent-loop.md      letting an agent build, run and restart the application; IDE templates
│   ├── containers.md      applications in Docker containers, launched from an IDE
│   ├── ticket-triage.md   an agent that triages bug tickets, in a disposable container
│   ├── release.md         an MCP interface in a release build: what to do and not do
│   └── images/            screenshots used by the guides
├── design/                numbered design documents (RFC style): why things are the way they are
│   ├── README.md          the roster, with status
│   ├── 0001-design-documents.md   how design documents work
│   └── 0002-...md to 0015-...md   one per design
└── examples/
    ├── invisible-overlay.md   walkthrough: diagnosing a button that stopped working
    ├── packet-lag.md          walkthrough: a network timing bug, found with an agent-made QML window
    ├── widgets-to-qml.md      walkthrough: a widgets window ported to QML while it runs, and saved as a template
    └── images/                screenshots used by the walkthroughs

Keeping the documentation up to date