Lambda Symbolics

Customise commands, skills and Lisp

Write a command

Define commands in init.lisp with define-application-command. This example adds (my-version) and accepts an optional label:

Common Lisp
(define-application-command my-version-command
    (:name              "my-version"
     :aliases           ("local-version")
     :argument          "[LABEL]"
     :description       "show a labeled local integration version"
     :tip               "shows the version supplied by init.lisp."
     :busy-behavior     :execute
     :terminal-behavior :shared
     :callable          t)
    (application &optional (label "integration"))
  (application-present application (format nil "~A 3" label))
  :continue)

After restarting, run (help 'my-version) to check the help for the command.

Load a skill

If you have a skill that you want to use, ask Autolith to load it by name. Include the task you want to do with it.

Change a live definition

  1. Tell Autolith which definition you want to change in the running image.
  2. Ask for a test and review the diff before saving the change.
  3. Ask Autolith to commit the definition to your private image or discard it.

If an update skips an override because the tracked definition changed, run (fix-skipped-definitions) to review and rebuild the overrides you still need. See Generations and recovery for restore commands.

Redact text locally

Enter (redact text) at the Lisp prompt to redact text locally. Check that the second return value is :ok. Review the redacted text before sharing it.

Connect to the running Lisp image

  1. Put a nonempty token in ${XDG_CONFIG_HOME:-~/.config}/autolith/management-repl.token. Own the file and set the permissions to 0600.
  2. Connect from a trusted local Lisp client with eval-connect from image-daemon. On Unix, the default socket is ${XDG_STATE_HOME:-~/.local/state}/autolith/management/repl.sock. On Windows, use 127.0.0.1:4141.
  3. Use eval-call to evaluate a form in the running image. Review the result before sharing it because it may contain secrets.