karthink/gptel-agent
Agent mode for gptel
What it solves
It enables the Emacs editor to act as an autonomous agent by providing a set of tools and prompts that allow an LLM to perform tasks independently. It solves the problem of LLMs being limited to text generation by giving them the ability to interact with the web, local files, and the Emacs environment itself.
How it works
Implemented as a preset for the gptel package, it provides the LLM with a suite of tools for web search, URL fetching (including YouTube transcripts), reading and writing local files, and executing Bash commands or Elisp code. It also supports a hierarchical agent structure where a main agent can delegate specific tasks to "sub-agents" (defined in Markdown or Org files) that operate in separate context windows to prevent context bloat and pollution.
Who it’s for
Emacs users who want to integrate autonomous AI capabilities directly into their editor, allowing the LLM to research, edit files, and manage their system via the editor.
Highlights
- Autonomous Tool Use: Access to the web, local filesystem, and Bash shell.
- Emacs Integration: Ability to evaluate Elisp and access Emacs documentation.
- Sub-agent Delegation: Can spawn specialized sub-agents (like researchers or executors) to handle tasks in parallel or in isolation.
- Extensible Configuration: Agents can be defined using simple Markdown or Org files with YAML-like properties for tools and system prompts.
Related
- Project
- Project
- Project
- Project