I taught a local LLM to be lazy on my behalf (sloth-alias)
Описание и применение
<p><em>This is my submission for the Hacktoberfest Open-Source AI Challenge: Week 3 (Slow and Steady).</em></p> <h2> What I built </h2> <p><strong>sloth-alias</strong> reads a shell history file, finds the commands and command <em>sequences</em> you keep retyping, and turns them into aliases. A local open-weight model (any Ollama model, default <code>gemma3:4b</code>) does one job: it <strong>names</strong> each shortcut and describes it in a few words.<br> </p> <div class="highlight js-code-highlight"> <pre class="highlight plaintext"><code>$ python3 sloth_alias.py sample_history.txt # gemma3
Задача
<p><em>This is my submission for the Hacktoberfest Open-Source AI Challenge: Week 3 (Slow and Steady).</em></p> <h2> What I built </h2> <p><strong>sloth-alias</strong> reads a shell history file, finds the commands and command <em>sequences</em> you keep retyping, and turns them into aliases. A local open-weight model (any Ollama model, default <code>gemma3:4b</code>) does one job: it <strong>names</strong> each shortcut and describes it in a few words.<br> </p> <div class="highlight js-code-highlight"> <pre class="highlight plaintext"><code>$ python3 sloth_alias.py sample_history.txt # gemma3
Результат
<p><em>This is my submission for the Hacktoberfest Open-Source AI Challenge: Week 3 (Slow and Steady).</em></p> <h2> What I built </h2> <p><strong>sloth-alias</strong> reads a shell history file, finds the commands and command <em>sequences</em> you keep retyping, and turns them into aliases. A local open-weight model (any Ollama model, default <code>gemma3:4b</code>) does one job: it <strong>names</strong> each shortcut and describes it in a few words.<br> </p> <div class="highlight js-code-highlight"> <pre class="highlight plaintext"><code>$ python3 sloth_alias.py sample_history.txt # gemma3
Доказательства
I taught a local LLM to be lazy on my behalf (sloth-alias)
- Дата записи: 2026-10-20T03:41:13.679Z