{"id":25436692,"url":"https://github.com/jruot/files-to-prompt-bash","last_synced_at":"2026-04-30T10:02:16.638Z","repository":{"id":275232269,"uuid":"925487915","full_name":"jruot/files-to-prompt-bash","owner":"jruot","description":"Bash script to output directory structure and file contents for LLM prompts","archived":false,"fork":false,"pushed_at":"2025-03-06T10:43:28.000Z","size":23,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-15T03:11:26.541Z","etag":null,"topics":["ai","bash","bash-script","llm","prompt","prompt-engineering"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jruot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-01T01:35:53.000Z","updated_at":"2025-03-06T10:43:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"f328a982-839f-4776-8271-325aea3ee3a3","html_url":"https://github.com/jruot/files-to-prompt-bash","commit_stats":null,"previous_names":["kuraturpa/files-to-prompt-bash","jruot/files-to-prompt-bash"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jruot/files-to-prompt-bash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jruot%2Ffiles-to-prompt-bash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jruot%2Ffiles-to-prompt-bash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jruot%2Ffiles-to-prompt-bash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jruot%2Ffiles-to-prompt-bash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jruot","download_url":"https://codeload.github.com/jruot/files-to-prompt-bash/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jruot%2Ffiles-to-prompt-bash/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32460781,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"online","status_checked_at":"2026-04-30T02:00:05.929Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","bash","bash-script","llm","prompt","prompt-engineering"],"created_at":"2025-02-17T08:21:45.898Z","updated_at":"2026-04-30T10:02:16.620Z","avatar_url":"https://github.com/jruot.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# files-to-prompt-bash 🚀\n\nBash script to output directory structure and file contents for LLM prompts. Share your codebase\nwith AI tools like ChatGPT, Claude or Github Copilot.\nIt requires only minimal dependencies and uses basic tools. By default gitignored files are not outputted.\n\n## 📋 Requirements\n\n- Bash\n- git\n- tree\n- file\n- find\n- grep\n\n## 🔧 Installation\n\n```bash\ngit clone git@github.com:Kuraturpa/files-to-prompt-bash.git\ncd repo-name\nchmod u+x files-to-prompt-bash.sh\n```\n\n## 💻 Usage\n\n```bash\nUsage: files-to-prompt-bash.sh [OPTIONS] \u003cdirectory\u003e\n\nDisplay directory structure and contents of text files, excluding git-ignored files.\n\nOptions:\n  -h, --help     Show this help message and exit\n  -v, --version  Show version information and exit\n  -i, --ignore-files PATTERN Ignore specified files or patterns\n\nExamples:\n  files-to-prompt-bash.sh /path/to/directory\n  files-to-prompt-bash -i \"*.md\" -i \"*.txt\" /path/to/directory\n```\n\nNote: It's not recommended to use this tool for large codebases as it may exceed LLM context limits.\nBe careful when outputting sensitive code or configuration files. The tool does not exclude secrets or config files.\n\n## 💡 Usage Tips\n\nThe script outputs the file contents to terminal. You can pipe the output to your clipboard. For \nexample following command pipes the output to wayland cliboard.\n\n`files-to-prompt-bash.sh /path/to/directory | wl-copy`\n\nYou can also pipe the output into a file:\n\n`files-to-prompt-bash.sh /path/to/directory \u003e output.txt`\n\nIf you are using X11 you can copy to clipboard using following command:\n\n`files-to-prompt-bash.sh /path/to/directory | xclip -selection clipboard`\n\nYou can ignore files or patterns using `--ignore-files` or `-i` parameter:\n\n`files-to-prompt-bash.sh --ignore-files \"README.md\" /path/to/directory`\n\n## 🤝 Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request or create an Issue.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjruot%2Ffiles-to-prompt-bash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjruot%2Ffiles-to-prompt-bash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjruot%2Ffiles-to-prompt-bash/lists"}