Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
Integrates Simon Willison's LLM CLI with the Micro editor. This plugin allows you to leverage Large Language Models directly within Micro for text generation, modification, and custom-defined tasks through templates.
Jump to setup instructionsFetched from the repository for this visit.
Integrates Simon Willison's LLM CLI with the Micro editor. This plugin allows you to leverage Large Language Models directly within Micro for text generation, modification, and custom-defined tasks through templates.
llm command is accessible in your system's PATH.To install the llm-micro plugin, use Micro's standard plugin directory:
# Micro typically creates ~/.config/micro/plug/. This command ensures it exists.
mkdir -p ~/.config/micro/plug
# Clone the plugin into the 'llm' subdirectory (or your preferred name)
git clone https://github.com/shamanicvocalarts/llm-micro ~/.config/micro/plug/llm
https://github.com/user-attachments/assets/a44f402a-405c-4997-b514-3136961bdcde
This plugin provides commands accessible via Micro's command prompt (Ctrl+E):
llmThis is the primary command for interacting with an LLM. It intelligently adapts its behavior based on whether text is selected.
Syntax: llm [options] <your request>
Behavior:
<prompt>, the selected text, and surrounding context are sent to the LLM.llm fix this code.<prompt> and surrounding context are sent to the LLM.llm write a python function that sums two numbers.How to use:
Ctrl+E to open the command prompt.llm followed by your specific request (e.g., llm fix grammar, llm write a docstring for the function below).-t <template_name> or -s "<custom system prompt>" before your request.llm:The llm command accepts the following optional flags, which should precede your main textual request:
-t <template_name> or --template <template_name>: Use a specific LLM CLI template. The llm CLI tool must be aware of this template (see LLM Templates documentation).-s "<custom_system_prompt>" or --system "<custom_system_prompt>": Provide a custom system prompt directly, enclosed in quotes. This overrides any default or template-based system prompt.The system prompt used for the LLM call follows this order:
-s or --system flag.-t or --template flag.llm_template_default (see below).This plugin allows you to manage and use LLM CLI templates. Templates are stored as YAML files in the directory reported by llm templates path (typically ~/.config/io.datasette.llm/templates/).
llm_template <template_name>Opens an LLM template YAML file for editing directly within Micro.
Ctrl+E.llm_template <template_name> (e.g., llm_template my_summary_template). Do not include .yaml.<template_name>.yaml exists in your llm templates directory, it will be opened in a new tab.Ctrl+S) will create <template_name>.yaml in that directory.system: "..." or prompt: "..."). Refer to the LLM Templates documentation.llm_template_defaultManages the single default LLM template used by the llm command when no -t or -s flag is provided.
Set Default: llm_template_default <template_name>
<template_name>.yaml as the default template for all llm command invocations.llm_template_default my_universal_helperClear Default: llm_template_default --clear
-t or -s flag is used.Show Default: llm_template_default --show
Default LLM template: my_universal_helper or Default LLM template: Not set.You can configure the plugin by setting global options in Micro's settings.json file (Ctrl+E then set).
"llm.default_template": "" (string):
.yaml) of an LLM template to use by default for the llm command if no -t or -s flag is provided."" (empty string) to have no default template (uses built-in prompts)."llm.default_template": "my_default""llm.context_lines": 100 (number):
0 to disable sending context.100."llm.context_lines": 50Example settings.json:
{
"llm.context_lines": 50,
"llm.default_template": "my_refactor_template"
}
-x flag is automatically added to llm CLI calls by the plugin to attempt to extract raw text/code from Markdown fenced blocks if the LLM outputs them.LLM (modify): Processing...) and outcome.Ctrl+E then log). Look for messages prefixed with LLM_DEBUG:, LLM_INFO:, or LLM_ERROR:. These are very helpful for troubleshooting.Contributions and feedback are welcome!
GitHub checked 159h ago - refresh overdue. Recently viewed repositories target hourly refresh.
Find a documented setup for your client. No sign-in, installation, or tool execution.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.