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
- New to Sonde, or deciding whether to use it: the walkthrough examples/invisible-overlay.md. It shows the tools solving a real bug, with real output.
- Library user (application developer): using.md, then agent-loop.md to let your coding agent run and check the application itself. Read the “Security” section before enabling the server anywhere other than your own machine, and release.md before shipping any MCP interface to users.
- Contributor (bug fixes, features): architecture.md, then developing.md. Skim reviewing.md so you know what reviewers will check.
- Reviewer: reviewing.md, with architecture.md open for reference.
- AI agent working on the code: architecture.md
first; it has a file-by-file map and the rules the code relies on. Then
developing.md for the commands that build and verify
your changes. The doc comments in the headers under
src/*/sonde/are the detailed reference. - AI agent using a running application through Sonde: the server sends
usage instructions in its
initializeresponse, and every tool describes itself. using.md, “The built-in tools” explains the same material for humans.
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
- When you change behaviour that a guide describes, update the guide in the same change. Reviewers check for this (see reviewing.md).
- When you add a document under
notes/, add it to the table and the contents tree above. - Design changes get a design document in
design/, numbered and never deleted. Implementing one updates its status and its “Implementation notes” (what changed along the way), not its design. See design/0001. - Walkthroughs in
examples/show real output. Re-run them when the tools’ output changes, and keep their example applications inexamples/working. - Write for a junior developer. Explain project-specific terms the first time you use them, and prefer concrete examples and exact commands over general statements.
- Document classes and functions in the source code with Doxygen comments; the
docsbuild target fails if anything is undocumented. The guides here explain how to use and why, not every parameter.