Skip to content

feat: add --file flag to launch command#95

Merged
c-h- merged 1 commit into
mainfrom
feature/file-flag
Mar 5, 2026
Merged

feat: add --file flag to launch command#95
c-h- merged 1 commit into
mainfrom
feature/file-flag

Conversation

@c-h-
Copy link
Copy Markdown
Collaborator

@c-h- c-h- commented Mar 5, 2026

Adds a --file flag to the launch command that reads file contents and injects them as context into the prompt. Supports glob patterns and automatic truncation for large files.

Changes

  • New --file flag on launch subcommand (src/cli.ts)
  • File context parsing module (src/file-context.ts)
  • Full test coverage (src/file-context.test.ts, src/cli.test.ts)

Testing

  • 446 tests passing
  • Typecheck clean

Co-Authored-By: Charlie Hulcher charlie@kindo.ai

Allow users to pass file references that get included in prompt context.
Also generalizes --spec to read and prepend file content for all adapters.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@c-h- c-h- merged commit 728e7a2 into main Mar 5, 2026
1 check passed
c-h- added a commit that referenced this pull request Mar 6, 2026
New features:
- feat: add --file flag to launch command (#95)

Bug fixes:
- fix: insert -- separator before positional prompt args (#106)
- fix: peek/status timeout on opencode sessions (#100)
- fix: use temp file for large prompts instead of CLI args (#101)

Performance:
- perf: use history.jsonl for Claude Code discover(), batch lsof calls (#96)

Co-Authored-By: Charlie Hulcher <charlie@kindo.ai>
@c-h- c-h- mentioned this pull request Mar 6, 2026
c-h- added a commit that referenced this pull request Mar 6, 2026
New features:
- feat: add --file flag to launch command (#95)

Bug fixes:
- fix: insert -- separator before positional prompt args (#106)
- fix: peek/status timeout on opencode sessions (#100)
- fix: use temp file for large prompts instead of CLI args (#101)

Performance:
- perf: use history.jsonl for Claude Code discover(), batch lsof calls (#96)

Co-authored-by: Doink (OpenClaw) <charlie+doink@kindo.ai>
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.

1 participant