AI EngineerGuide

How to set a shortcut for sending “continue” in Pi Coding Agent

by Ashik Nesin Ashik Nesin

I came across this simple but effective tip on how to configure shortcut in Pi.dev by Armin.

As you’re already aware that Pi is heavy extensible. In fact, I would say that is their core philosophy.

import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";

export default function (pi: ExtensionAPI) {
  pi.registerShortcut("shift+alt+enter", {
    description: 'Send "continue" when the agent is stopped',
    handler: (ctx) => {
      if (ctx.isIdle()) pi.sendUserMessage("continue");
    },
  });
}

Reference

Stay Updated

Get the latest AI engineering insights delivered to your inbox.

No spam. Unsubscribe at any time.