Examples
These examples are taken straight from the questions CLDK’s own test suite asks of real projects, so every snippet reflects behavior the SDK actually guarantees, not a hand-wave. They’re grouped by task and run against the recurring samples used across these docs: Apache Commons CLI for Java and a generic my_pkg for Python.
Java examples Symbol tables, call graphs, callers/callees, class relationships, CRUD, comments, and reachability, on Apache Commons CLI.
Python examples Symbol tables, call graphs, and working with the PyClass / PyCallable models.
Where these come from
Section titled “Where these come from”Each example mirrors an assertion in the SDK test suite (python-sdk/tests/). If you want the canonical method list instead of worked snippets, see the API reference; for the conceptual model behind them, read Core concepts.
Common tasks The same calls as a quick task-indexed cheat-set.
cocoa Build a Code Context Agent plugin on these calls.