Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@aravhawk
Copy link

Context

Add a --prompt-file flag for non-interactive CLI runs so prompts can be sourced from files in CI (requires --auto or --json-io).

Implementation

  • Registered --prompt-file in the CLI and wired it into prompt resolution before stdin fallback.
  • Added validation helpers to enforce non-interactive usage and prevent conflicts with positional prompts or --continue.
  • Trim file contents and surface clear errors for missing/unreadable files.
  • Added unit tests and documented usage in the CLI README.

Screenshots

before after
N/A N/A

How to Test

  • Create a prompt file, e.g. echo "Fix the bug" > /tmp/prompt.md
  • Run: kilocode --auto --prompt-file /tmp/prompt.md
  • Run tests: pnpm vitest run --config vitest.config.ts src/__tests__/prompt-file.test.ts
  • Note: pnpm test currently fails in this repo due to pre-existing React/Ink hook errors.

Get in Touch

Discord: aravhawk

@changeset-bot
Copy link

changeset-bot bot commented Jan 28, 2026

⚠️ No Changeset found

Latest commit: 6016969

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

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