Emacs lisp and gptel building custom llm tools to call emacs functions
Автор: NapoleonWils0n
Загружено: 2025-11-14
Просмотров: 368
Using Emacs with the gptel package we can create gpt-tools for llms that call emacs functions to provide the llm with information about our emacs set up
i was thinking couldnt you write emacs gptel-tools for llms and did a quick search and came across the emacs-mcp mcp server which wasnt quite what i was after.
so i refactored the code from the emacs-mcp package into the gptel-tool format for use with the gptel package and llms that support tool usage like llama and gemini
i created a gptel-custom-tools.el file with 32 gptel-tools for emacs which can be loaded using the gptel use package code block
the gptel-tools allow the llm to report the state of your emacs set up by listing installed packages, modes and variables. as well as reading the manuals and looking up docstrings for elisp symbols
refactored from mpontus emacs-mcp package
emacs-mcp
https://github.com/mpontus/emacs-mcp
gptel-custom-tools.el
https://github.com/NapoleonWils0n/nix...
early-init.el
https://github.com/NapoleonWils0n/nix...
init.el
https://github.com/NapoleonWils0n/nix...
ollama
https://ollama.com/library/llama3.1
https://ollama.com/library/llama3.2
dotfiles org mode
https://github.com/NapoleonWils0n/nix...
https://github.com/NapoleonWils0n/nix...
https://github.com/NapoleonWils0n/nix...
https://github.com/NapoleonWils0n/nix...
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: