17 ポイント 投稿者 xguru 2024-03-21 | 1件のコメント | WhatsAppで共有
  • CLIに対して自然言語でリクエストするとコマンドを生成してくれるコパイロットツール
    $ tlm suggest 'list all network interfaces but only their ip addresses'
    > ip addr show | grep -oP 'inet \K[\d.]+'
  • APIキーやインターネット接続は不要
  • Mac/Linux/Windowsで動作
  • シェルを自動検出
  • ワンライナーコマンドの生成に加え、コマンドの説明もしてくれる

1件のコメント

 
joone 2024-03-23

loz も最近、コマンド実行機能を提供しています。
https://github.com/joone/loz

$ loz "Detect GPUs on this system"
00:02.0 VGA compatible controller: Intel Corporation Device a780 (rev 04)

$ loz "Run command to get CPU info"
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 1
On-line CPU(s) list: 0
..

CodeLLaMa は生成結果がきっちり JSON で出てこないので、コマンドを抽出するのが少し難しいのですが、tlm がどう処理しているのかコードを見てみる必要がありそうですね。