Sweep should facilitate interactive debugging of SWI-Prolog code.
This is a big topic that we don’t clearly address. Perhaps this
should be handled through a Debug Adapter Protocol integration similar
to dap-swi-prolog
(Debug Adapter Protocol for SWI-Prolog).
It would be nice if Sweep would “teach” project.el to detect directories containing SWI-Prolog pack.pl package definitions as root project directories.
Currently, the Elisp interface that Sweep provides for querying Prolog only allows calling directly to predicates of arity 2 (see Querying Prolog), ideally we should provide a (backward-compatible) way for executing arbitrary Prolog queries.