{"id":27344,"library":"repomix","title":"Repomix","description":"A tool for analyzing and summarizing code repositories into a single text file for LLM context. Supports multiple output formats and file exclusion rules. Current version: 0.5.0, released on PyPI with monthly releases.","status":"active","version":"0.5.0","language":"python","source_language":"en","source_url":"https://github.com/yamadashy/repomix","tags":["repository analysis","code summarization","LLM","context generation"],"install":[{"cmd":"pip install repomix","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"Repomix is a class; direct import of module is not usable.","wrong":"import repomix","symbol":"Repomix","correct":"from repomix import Repomix"},{"note":"common pattern","wrong":"","symbol":"AnalysisResult","correct":"from repomix import AnalysisResult"}],"quickstart":{"code":"from repomix import Repomix\n\n# Initialize with a repository path\nrepomix = Repomix(path='/path/to/repo')\n\n# Run analysis (default format is text)\nresult = repomix.run()\n\n# Access summary\nprint(result.summary)\n\n# Output to file\nresult.to_file('output.txt')","lang":"python","description":"Basic usage to analyze a local repository and save the summary."},"warnings":[{"fix":"Use `run()` instead of `analyze()`.","message":"Version 0.5.0 renamed the method `analyze()` to `run()`. Old code using `repomix.analyze()` will break.","severity":"breaking","affected_versions":">=0.5.0"},{"fix":"Pass `format='json'` to `run()` instead of setting `output_format`.","message":"The `output_format` parameter was removed in 0.5.0; use format-specific methods or the `format` argument in `run()`.","severity":"breaking","affected_versions":">=0.5.0"},{"fix":"Use Python 3.10 or higher.","message":"Repomix requires Python >=3.10. Installing on older Python versions will fail with a syntax error.","severity":"gotcha","affected_versions":"all"},{"fix":"Use `['*.pyc', 'node_modules/*']` instead of `['.*\\.pyc', 'node_modules/.*']`.","message":"When specifying `exclude_patterns`, use Unix glob patterns, not regex. Common mistake is using regex-like patterns.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Use `from repomix import Repomix` instead.","cause":"Outdated import pattern; used to be `import repomix` then `repomix.Repomix` but now the class is not directly accessible from module.","error":"AttributeError: module 'repomix' has no attribute 'Repomix'"},{"fix":"Use `repo_path` instead of `path`.","cause":"The constructor parameter was renamed from `path` to `repo_path` in version 0.4.0.","error":"TypeError: Repomix.__init__() got an unexpected keyword argument 'path'","affected_versions":">=0.4.0"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}