Skip to content

llm: accept a directory argument, recursing for .md/.txt#209

Merged
alexkroman merged 1 commit into
mainfrom
claude/dazzling-hypatia-97hfa9
Jun 17, 2026
Merged

llm: accept a directory argument, recursing for .md/.txt#209
alexkroman merged 1 commit into
mainfrom
claude/dazzling-hypatia-97hfa9

Conversation

@alexkroman

Copy link
Copy Markdown
Collaborator

A directory passed to assembly llm now expands (via rglob, path-sorted)
into the .md/.txt files it holds, each read under its own header just like
explicit file arguments. An empty directory is a usage error raised before
auth/network — the empty-guard the justfile's transcripts/**/*.md(.N)
glob used to carry now that the CLI can.

This lets assembly llm "…" transcripts/ replace the glob-and-guard a
caller would otherwise hand-roll. Split the file/directory-context tests
out of test_llm_command.py into test_llm_files.py to stay under the
500-line gate.

Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01LwoV9EXHTakfpw9E5hp89G

A directory passed to `assembly llm` now expands (via rglob, path-sorted)
into the .md/.txt files it holds, each read under its own header just like
explicit file arguments. An empty directory is a usage error raised before
auth/network — the empty-guard the justfile's `transcripts/**/*.md(.N)`
glob used to carry now that the CLI can.

This lets `assembly llm "…" transcripts/` replace the glob-and-guard a
caller would otherwise hand-roll. Split the file/directory-context tests
out of test_llm_command.py into test_llm_files.py to stay under the
500-line gate.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LwoV9EXHTakfpw9E5hp89G
@alexkroman alexkroman enabled auto-merge June 17, 2026 03:22
@alexkroman alexkroman added this pull request to the merge queue Jun 17, 2026
Merged via the queue into main with commit 34927b0 Jun 17, 2026
19 checks passed
@alexkroman alexkroman deleted the claude/dazzling-hypatia-97hfa9 branch June 17, 2026 03:27
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.

2 participants