# tlm - CodeLLaMa로 구동되는 로컬 CLI 코파일럿

> Clean Markdown view of GeekNews topic #13919. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=13919](https://news.hada.io/topic?id=13919)
- GeekNews Markdown: [https://news.hada.io/topic/13919.md](https://news.hada.io/topic/13919.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2024-03-21T10:03:01+09:00
- Updated: 2024-03-21T10:03:01+09:00
- Original source: [github.com/yusufcanb](https://github.com/yusufcanb/tlm)
- Points: 17
- Comments: 1

## Topic Body

- CLI에 대해서 자연어로 요청하면 명령을 생성해주는 코파일럿 도구   
`$ tlm suggest 'list all network interfaces but only their ip addresses'`  
`> ip addr show | grep -oP 'inet \K[\d.]+`  
- API Key 나 인터넷 연결 필요없음   
- 맥/리눅스/윈도우에서 동작   
- 자동 Shell 감지   
- 원라인 명령 생성 및 명령에 대한 설명도 해줌

## Comments



### Comment 23939

- Author: joone
- Created: 2024-03-23T05:30:30+09:00
- Points: 1

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은 어떻게 처리했는지 코드를 봐야겠군요.
