Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions pages/common/code2prompt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# code2prompt

> Generate AI-ready prompts from a codebase (extracts, filters and formats code for LLMs).
> More information: <https://code2prompt.dev/docs/tutorials/getting_started/>.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This still doesn't instruct on how to use the tool. I'll install it tomorrow to check what its help page says.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I even checked the github but all leads to this page.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But that only gives different flags for filtering files.

- Generate a prompt for the current project and copy it to the clipboard (default behaviour):

`code2prompt {{path/to/project}}`

- Include only specific files and exclude a directory:

`code2prompt {{path/to/project}} --include "{{**/*.rs}}" --exclude "{{tests/**}}"`

- Write the prompt to a file instead of the clipboard:

`code2prompt {{path/to/project}} --output-file {{my_prompt.txt}}`

- Produce structured JSON output:

`code2prompt {{path/to/project}} --output-format {{json}}`

- Use a custom Handlebars template when generating the prompt:

`code2prompt {{path/to/project}} --template {{my_template.hbs}}`

- Run as an MCP server for dynamic agent integration (advanced):

`code2prompt server --port {{1234}}`
32 changes: 32 additions & 0 deletions pages/common/yek.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# yek

> Serialize a repository or directory into an LLM-friendly single file (fast Rust-based repomapper).
> More information: <https://github.com/bodo-run/yek#usage>.

- Serialize the current directory and write the output to a temp file (prints path):

`yek`

- Serialize specific directories and write output to a directory:

`yek {{path/to/directory path/to/directory2 ...}} --output-dir {{/tmp/yek}}`

- Process multiple files or use glob patterns (quote globs to avoid shell expansion):

`yek "{{path/to/directory/**/*.rs}}" "{{path/to/directory/**/*.md}}"`

- Cap the token-based output size to 128k tokens:

`yek {{path/to/directory}} --tokens 128k`

- Cap the byte-based max output size and set an explicit output file name:

`yek {{path/to/directory}} --max-size {{100KB}} --output-name {{yek-output.txt}}`

- Stream JSON output:

`yek {{path/to/directory}} --json`

- Include a directory tree header in the output:

`yek {{path/to/directory}} --tree-header`