Debugging
Where errors go
| What failed | Where it says so |
|---|---|
| a profile or its daemon halves didn't load | the command or message that started a turn: superego start -P <name>, superego send <thread> …, the app's composer. Also ~/.superego/daemon.log |
| a tool threw | the transcript, as the tool call's error result (the model sees it too) |
| an action threw | its caller: superego do … prints it; superego actions log keeps the latest, with errors |
| a profile's UI didn't load or a component threw | the window's developer tools console (View → Toggle Developer Tools, ⌥⌘I) |
| the daemon itself | ~/.superego/daemon.log |
Load a profile without waiting for a model: superego start . -P <name> loads it and prints an error if it can't (and starts an
empty thread when it can: archive it after).
With SUPEREGO_MODEL=faux in the daemon's environment, turns echo instead of calling a provider.
Common causes
- "allow it first": a project's profile changed since it was allowed (any file in its folder). The user looks it
over and allows it: in the window (where the thread asks, or Settings → Profiles), or
superego profile allow <name>in the project, in their own terminal. An agent can't: tell them. - "No profile …": profiles are found from the thread's folder up to its repository's top (the folder alone outside
one) (
.superego/profiles/<name>/profile.ts), then in~/.superego/profiles. One in a folder another user can write isn't. Check withsuperego profilein that folder. - "must export default …":
profile.tsexportsdefineProfile({ … }); eachextensionsmodule exports an extension with aname; eachuimodule exportsdefineUiExtension({ name, setup }). - "must name things "orders.
"" : a daemon half's actions and values start with its own name. - "Action … is already defined": two extensions (or two profiles) define the same id; ids are per machine.
- A UI module "imports X": a profile's UI can import only
react,react/jsx-runtime,superego/uiand its own files. - A change doesn't show: the daemon reloads a profile on the thread's next turn; the window reloads its UI when a
shown thread of it next moves on (ui.md). Send the thread a message. Changes to Superego's own code need
superego daemon restart. - A pane kind isn't found: it is registered by the profile's UI, which draws only for threads with that profile;
check
uiinprofile.tsand the console. - The agent never opens the pane: describe it under
panesinprofile.ts, with its params, and say inpromptwhen to open it.
Looking around
superego daemon status # running, and on the installed build?
superego threads --json # each thread's status, profile and folder
superego read <thread> --wait # a thread's state and last answer, once it stops working
superego actions --all # every action registered, extensions' included
superego actions log # recent actions, from anywhere, with errors
superego settings # this machine's settings, incl. which extensions are on
tail -f ~/.superego/daemon.log