---
title: "💭 charmbracelet/mods: AI on the command line"
description: "!https://github.com/charmbracelet/mods"
date: 2024-01-26
published: true
tags:
  - llm
  - ai
  - thought
template: link
---


<div class="embed-card embed-card-external">
  <a href="https://github.com/charmbracelet/mods" class="embed-card-link" target="_blank" rel="noopener noreferrer">
    <div class="embed-card-image">
      <img src="https://repository-images.githubusercontent.com/620999276/03bcf553-9da5-4e59-94c1-52cf06658f92" alt="GitHub - charmbracelet/mods: AI on the command line — AI on the command line. Contribute to charmbracelet/mods development by creating an account on GitHub." loading="lazy">
    </div>
    <div class="embed-card-content">
      <div class="embed-card-title">GitHub - charmbracelet/mods: AI on the command line</div>
      <div class="embed-card-description">AI on the command line. Contribute to charmbracelet/mods development by creating an account on GitHub.</div>
      <div class="embed-card-meta">GitHub &middot; github.com</div>
    </div>
  </a>
</div>


This is a pretty sweet interface into llms.  I used it a bit with my son tonight while he was asking me for datapack ideas.

``` bash
❯ mods -f 'I am trying to have fun on my minecraft server and am creating a minecraft datapack send me some load.mcfuncions that will make it fun'
```

You can continue the conversation with a `-C`

``` bash
❯ mods -C -f 'I like where you are going with number 4, can you make it so that it runs when a player opens a door'
```

You can pass it some data

``` bash
curl https://waylonwalker.com/thoughts-on-unit-tests/ | mods -f 'summarize this post'
```

!!! note

    This post is a <a href="/thoughts/" class="wikilink" data-title="Thoughts" data-description="These are generally my thoughts on a web page or some sort of url, except a rare few don&#39;t have a link. These are dual published off of my..." data-date="2024-04-01">thought</a>. It's a short note that I make
    about someone else's content online <a href="/tags/thoughts/" class="hashtag-tag" data-tag="thoughts" data-count=2 data-reading-time=3 data-reading-time-text="3 minutes">#thoughts</a>
