# Repomix - 자신의 코드베이스를 AI친화적인 형식으로 변환하는 도구

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

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=19540](https://news.hada.io/topic?id=19540)
- GeekNews Markdown: [https://news.hada.io/topic/19540.md](https://news.hada.io/topic/19540.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2025-03-03T11:43:03+09:00
- Updated: 2025-03-03T11:43:03+09:00
- Original source: [github.com/yamadashy](https://github.com/yamadashy/repomix)
- Points: 18
- Comments: 1

## Summary

Repomix는 코드베이스를 AI 모델이 쉽게 이해할 수 있는 형식으로 변환하여 LLM과의 통합을 용이하게 해주는 도구입니다. 이 도구는 각 파일과 전체 코드베이스의 토큰 수를 계산하고, `.gitignore` 파일을 인식하여 자동으로 반영하며, Secretlint를 사용해 민감 정보 포함 여부를 검사합니다. 또한, 단일 명령어로 전체 리포지토리를 하나의 파일로 압축하고, VSCode 확장을 통해 사용성을 높였습니다.

## Topic Body

- 코드베이스를 AI 모델이 쉽게 이해할 수 있도록 최적화된 형식으로 변환하여 **LLM과의 통합**을 쉽게 만들어 줌   
  - ChatGPT, Claude, DeepSeek, Perplexity, Gemini, Llama, Grok 등과 사용 가능  
- 각 파일과 전체 코드베이스의 토큰 수 계산 기능 제공(LLM 컨텍스트 제한에 유용)  
- 단일 명령어로 전체 리포지토리를 하나의 파일(XML/마크다운/TXT)로 압축하며, 포함 및 제외할 파일 지정 가능  
- `.gitignore` 파일을 인식하여 자동 반영  
- Secretlint를 사용하여 민감 정보들이 포함되는지 검사도 지원  
- [VSCode 확장](https://marketplace.visualstudio.com/items?itemName=DorianMassoulier.repomix-runner) 도 제공  
### 동작방식  
- `npm install -g repomix` 로 설치후 `repomix` 만 실행하면 전체 코드가 포함된 `repomix-output.txt` 가 생성됨  
- 그리고 나서는 이 파일을 AI에 보내서 다음과 같은 프롬프트로 설명하면 됨   
  > This file contains all the files in the repository combined into one. I want to refactor the code, so please review it first.

## Comments



### Comment 35400

- Author: xguru
- Created: 2025-03-04T10:02:03+09:00
- Points: 1

Python 코드베이스라면 [Gitingest - Git 리포지토리를 AI 친화적인 텍스트로 변환하는 도구](https://news.hada.io/topic?id=19552) 를 쓰라고 추천합니다.
