You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-1Lines changed: 14 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -276,6 +276,18 @@ When using `--stdin`, the specified files are effectively added to the include p
276
276
> [!NOTE]
277
277
> When using `--stdin`, file paths can be relative or absolute, and Repomix will automatically handle path resolution and deduplication.
278
278
279
+
To include command output or other ad-hoc context near the top of the packed output:
280
+
281
+
```bash
282
+
# Include build output in the generated Repomix file
283
+
npm run build 2>&1| repomix --stdin-content
284
+
285
+
# Include recent logs in the generated Repomix file
286
+
tail -n 200 app.log | repomix --stdin-content
287
+
```
288
+
289
+
The `--stdin-content` option reads arbitrary stdin text and places it after the header section, before the directory structure. Use it when you want to package current error output, logs, or other runtime context together with the codebase. It cannot be combined with `--stdin`.
290
+
279
291
To include git logs in the output:
280
292
281
293
```bash
@@ -616,6 +628,7 @@ Instruction
616
628
|`--quiet`| Suppress all console output except errors (useful for scripting) |
617
629
|`--stdout`| Write packed output directly to stdout instead of a file (suppresses all logging) |
618
630
|`--stdin`| Read file paths from stdin, one per line (specified files are processed directly) |
631
+
|`--stdin-content`| Read arbitrary stdin content and include it near the top of the packed output |
619
632
|`--copy`| Copy the generated output to system clipboard after processing |
620
633
|`--token-count-tree [threshold]`| Show file tree with token counts; optional threshold to show only files with ≥N tokens (e.g., `--token-count-tree 100`) |
621
634
|`--top-files-len <number>`| Number of largest files to show in summary (default: `5`) |
@@ -692,7 +705,7 @@ Instruction
692
705
#### Watch Mode
693
706
-`-w, --watch`: Watch for file changes and automatically re-pack. Debounces rapid changes (300ms) and logs a timestamp on each rebuild. Stop with `Ctrl+C`.
694
707
695
-
Watch mode only works with local directories, so it cannot be combined with `--remote`, a positional remote repository URL, `--stdout`, `--stdin`, `--split-output`, `--skill-generate`, or `--copy` (whether set on the command line or in your config file).
708
+
Watch mode only works with local directories, so it cannot be combined with `--remote`, a positional remote repository URL, `--stdout`, `--stdin`, `--stdin-content`, `--split-output`, `--skill-generate`, or `--copy` (whether set on the command line or in your config file).
0 commit comments