A repository serializer inspired by yek.
- Outputs pseudo-XML.
- Uses
sendfile
for blazingly fast performance. - Categorises files as
docs
,src
orother
(helps the model). - Respects
.gitignore
and.kekignore
cargo install --git https://github.com/koakuma-chan/kek
Serialize the repository and write to the clipboard
kek | clip.exe
Add a task prompt
kek "Optimize code." | clip.exe # Adds <task>Optimize code.</task> at the end of the output.
Debug which files are included
kek | grep -A2 "<path>"
Configuration is managed via kek.toml
. Alternatively, the path can be specified using the KEK_CONFIG
environment variable.
# Example kek.toml (these aren't the defaults)
scan = [
"../migrations", # include shared SQL migrations
"." # include this project's files
]
[category]
# Globs for the 'docs' category.
# These are matched case-insensitively against relative file paths.
docs = [
"*.md",
"docs/**/*.txt",
"LICENSE"
]
# Globs for the 'src' category.
# Matched case-insensitively.
src = [
"*.rs",
"src/**/*.js",
"Makefile",
"**/.*.conf" # Example to match hidden .conf files
]