Enlightenment AI Prompt Plugin

An AI agent prompt plugin for the Enlightenment Everything launcher.

Usage

Open the Everything launcher and type ai:?ai: followed by your question:

ai:``ai: ?what is the capital of France ai:``ai:

The plugin shows Asking AI... while waiting, then updates the item with the AI response. Select the item to copy it to clipboard.

Supported backends

  • Claude (Anthropic API) — set ai:ANTHROPIC_API_KEYai: in your environment
  • Ollama (local LLM) — runs against ai:http://localhost:11434ai: by default

Backend is auto-detected: Claude is used when ai:ANTHROPIC_API_KEYai: is set, otherwise Ollama is assumed.

Configuration

Set these environment variables (e.g. in ai:~/.profileai:):

Variable Default Description
ai:ANTHROPIC_API_KEYai: Anthropic API key; enables Claude when set
ai:AI_PROVIDERai: auto Force ai:"claude"ai: or ai:"ollama"ai:
ai:CLAUDE_MODELai: ai:claude-haiku-4-5-20251001ai: Claude model to use
ai:OLLAMA_MODELai: ai:llama3.2ai: Ollama model to use
ai:OLLAMA_HOSTai: ai:http://localhost:11434ai: Ollama server base URL

Applying to your Enlightenment source tree

This repo mirrors the directory structure of the Enlightenment source tree. Copy the files into ai:src/modules/everything/ai: in your Enlightenment checkout.

Files changed:

File Change
ai:src/modules/everything/evry_plug_ai.cai: New plugin (the main implementation)
ai:src/modules/everything/e_mod_main.hai: Added ai:evry_plug_ai_init/shutdown/saveai: declarations
ai:src/modules/everything/e_mod_main.cai: Added ai:evry_plug_ai_init(m)ai: and ai:evry_plug_ai_shutdown()ai: calls
ai:src/modules/everything/meson.buildai: Added ai:evry_plug_ai.cai: to the source list

Then rebuild with meson/ninja.

Requirements

  • ai:curlai: must be available in ai:PATHai: (used to call the AI APIs)
  • Enlightenment with the Everything module enabled
Description
AI prompt plugin for the Enlightenment Everything launcher (Claude + Ollama)
Readme 39 KiB
Languages
C 96.4%
Meson 3.6%