Skip to content

Conversation

@majiayu000
Copy link
Contributor

@majiayu000 majiayu000 commented Jan 1, 2026

Closes #1869

Changes

  • Add stdin support to code_helper for piping file lists from commands like find or git ls-files
  • Add ScanFiles() function to process explicit file lists
  • Update usage text with stdin examples
  • Add tests for the new functionality

Add ability to pipe file lists to code_helper via stdin, enabling
use cases like:
  find . -name '*.go' | code_helper "instructions"
  git ls-files '*.py' | code_helper "Add type hints"

The tool now detects if stdin is a pipe and accepts a single argument
(instructions) in that mode, reading file paths from stdin line by line.

Backward compatible with existing directory scanning mode.

Signed-off-by: majiayu000 <[email protected]>
@ksylvan ksylvan self-assigned this Jan 2, 2026
Copy link
Collaborator

@ksylvan ksylvan left a comment

Choose a reason for hiding this comment

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

Nicely done @majiayu000 - Clean diff and nice separation of concerns.

@ksylvan ksylvan merged commit 90b2975 into danielmiessler:main Jan 4, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature request]: make code_helper use its standard input

2 participants