{"id":49280892,"url":"https://github.com/seankim658/codeprompts","last_synced_at":"2026-04-25T18:33:02.419Z","repository":{"id":247603287,"uuid":"826056390","full_name":"seankim658/codeprompts","owner":"seankim658","description":"CLI and TUI tool for generating LLM prompts from your code.","archived":false,"fork":false,"pushed_at":"2025-11-15T03:09:23.000Z","size":1502,"stargazers_count":3,"open_issues_count":8,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-15T03:16:16.707Z","etag":null,"topics":["ai","cli","llm","prompt-engineering","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/seankim658.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-07-09T03:09:49.000Z","updated_at":"2025-11-15T03:06:51.000Z","dependencies_parsed_at":"2025-05-14T18:38:46.005Z","dependency_job_id":null,"html_url":"https://github.com/seankim658/codeprompts","commit_stats":null,"previous_names":["seankim658/codeprompts"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/seankim658/codeprompts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seankim658%2Fcodeprompts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seankim658%2Fcodeprompts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seankim658%2Fcodeprompts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seankim658%2Fcodeprompts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seankim658","download_url":"https://codeload.github.com/seankim658/codeprompts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seankim658%2Fcodeprompts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32273214,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T18:29:39.964Z","status":"ssl_error","status_checked_at":"2026-04-25T18:29:32.149Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","cli","llm","prompt-engineering","rust"],"created_at":"2026-04-25T18:33:00.991Z","updated_at":"2026-04-25T18:33:02.382Z","avatar_url":"https://github.com/seankim658.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Code Prompts\n\nCommand line (and TUI) tool for creating LLM prompts from your code using [Handlebars](https://handlebarsjs.com/) templates.\n\nThis was a project to brush up on Rust and is based on [code2prompt](https://github.com/mufeedvh/code2prompt) with some additional functionality that I found useful.\n\n- [Installation](#installation)\n  - [Release Binary](#release-binary)\n  - [Building From Source](#building-from-source)\n- [Usage](#usage)\n  - [Arguments](#arguments)\n- [Templates](#templates)\n- [Usage Guides](./docs/README.md)\n- [Terminal User Interface](#terminal-user-interface)\n\n---\n\n## Installation\n\nTo download and use the codeprompts command-line tool, you have two options: you can download the release binary or compile from source. For more detailed steps, including setting up tab completions, see the [setup](/docs/setup.md) guide.\n\n### Release Binary\n\nTo download a release binary, go to the [releases](https://github.com/seankim658/codeprompts/releases) and download the binary for your OS.\n\n**Note**: In order to use the TUI binary, you will have to add the CLI binary to your path and either:\n\n- Rename the CLI release binary to `codeprompt`, or\n- Update the config file for the command to run the CLI binary\n\n### Building From Source\n\nTo build from source you will need to have [git](https://git-scm.com/downloads), [Rust](https://doc.rust-lang.org/book/ch01-01-installation.html), and Cargo (will be installed with Rust) installed.\n\nFirst clone the repository:\n\n```bash\ngit clone git@github.com:seankim658/codeprompts.git\n```\n\nAnd then compile a release binary:\n\n```bash\ncd codeprompts/\ncargo build --release\n```\n\n## Usage\n\nMore detailed usage guides can be found [here](./docs/README.md).\n\n### Arguments\n\nMore extensive documentation on the options can be found [here](./docs/options.md). The code prompts command line tool has the following arguments:\n\n```txt\n\nCreate standardized LLM prompts from your code\n\nUsage: codeprompt [OPTIONS] [PATH] [COMMAND]\n\nCommands:\n  completion  Generate shell completion scripts.\n  help        Print this message or the help of the given subcommand(s)\n\nArguments:\n  [PATH]  Path to project directory\n\nOptions:\n      --include \u003cINCLUDE\u003e    Glob patterns to include\n      --exclude \u003cEXCLUDE\u003e    Glob patterns to exclude\n      --exclude-priority     Change pattern priority in case of conflict to prioritize the exclusion pattern\n      --exclude-from-tree    Eclude files/folders from the source tree based on exclude patterns\n      --gitignore            Don't respect .gitignore file\n  -d, --diff-staged          Capture the git diff for staged changes only (equivalent to running `git diff --cached` or `git diff --staged`\n  -u, --diff-unstaged        Capture the git diff for unstaged changes only (equivalent to running `git diff`)\n      --no-tokens            Don't display approximate token count of the genrated prompt\n  -c, --encoding \u003cENCODING\u003e  Tokenizer to use for token count [default: cl100k]\n  -o, --output \u003cOUTPUT\u003e      Redirect output to file\n  -l, --no-line-numbers      Turn off line numbers in source code blocks\n      --no-codeblock         Disable wrapping code inside markdown code blocks\n      --relative-paths       Use relative paths instead of absolute paths, including parent directory\n      --no-clipboard         Disable copying to clipboard\n  -t, --template \u003cTEMPLATE\u003e  Optional path to Handlebars template\n      --no-spinner           Whether to render the spinner\n      --json                 Whether to print the output as JSON. Defaults to False\n      --issue \u003cISSUE\u003e        Fetch a specific Github issue for the repository\n      --no-warnings          Ignore all warnings (sensitive files, large token counts, template warnings)\n      --verbose              Run in verbose mode to investigate glob pattern matching\n  -h, --help                 Print help (see more with '--help')\n  -V, --version              Print version\n```\n\n## Templates\n\nThe templates use a simple templating language called [Handlebars](https://handlebarsjs.com/guide/).\n\nThe pre-defined templates can be downloaded from the project [releases](https://github.com/seankim658/codeprompts/releases). Download the `templates.zip`.\n\nCurrently, the included pre-defined templates are:\n\n| Template Name                                                              | Description                                                                                                                                                                |\n| -------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| [`default_template.hbs`](./src/templates/default_template.hbs)             | This is a simple default template that will structure your project path, source tree, and code blocks.                                                                     |\n| [`documentation_template.hbs`](./src/templates/documentation_template.hbs) | The documentation template creates a prompt for documenting code. The documentation guidelines are consistent with the HIVE lab guidelines and documentation requirements. |\n| [`git_commit.hbs`](./src/templates/git_commit.hbs)                         | Template for creating a concise and accurate git commit message. Can be used with both the `diff-staged` and `diff-unstaged` options.                                      |\n| [`git_issues.hbs`](./src/templates/git_issue.hbs)                          | Template for implementing changes based on a Github issue.                                                                                                                 |\n| [`code_optimization.hbs`](./src/templates/code_optimization.hbs)           | Template for optimizing code in time and space complexity.                                                                                                                 |\n\n## Terminal User Interface\n\n![TUI](./imgs/tui.png)\n\nThe project also includes an optional TUI wrapper where you can provide a [config file](./docs/tui_config_file.md) to override various flags and see how the command is structured before running it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseankim658%2Fcodeprompts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseankim658%2Fcodeprompts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseankim658%2Fcodeprompts/lists"}