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

Skip to content

Conversation

@eshurakov
Copy link
Contributor

Adds a new CLI option --append-system-prompt-file that allows users to specify a file path containing custom instructions to append to the system prompt.

Changes

  • Added appendSystemPromptFile option to CLI types
  • Implemented file reading and validation in CLI entry point
  • Added comprehensive test coverage for the new feature
  • Combined with existing --append-system-prompt option (inline text comes first, then file content)

Usage

kilo --append-system-prompt-file ./custom-instructions.md

Can also be combined with inline text:

kilo --append-system-prompt "Inline rules" --append-system-prompt-file ./more-rules.md

@changeset-bot
Copy link

changeset-bot bot commented Jan 20, 2026

🦋 Changeset detected

Latest commit: a65f7aa

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@kilocode/cli Minor

Not sure what this means? Click here to learn what changesets are.

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

@kiloconnect
Copy link
Contributor

kiloconnect bot commented Jan 20, 2026

Code Review Summary

Status: No Issues Found | Recommendation: Merge

The PR adds a new --append-system-prompt-file CLI option that allows reading custom instructions from a file. The implementation is clean and well-tested.

Highlights

  • ✅ Proper path resolution using resolve() for both absolute and relative paths
  • ✅ Good error handling for missing files and read errors
  • ✅ Correct combination logic (inline text first, then file content)
  • ✅ Comprehensive test coverage for various edge cases
  • ✅ Type definitions updated in both CLI types and core schemas
  • ✅ Documentation updated with clear usage examples
Files Reviewed (6 files)
  • .changeset/swift-penguins-march.md - Changeset for the new feature
  • cli/README.md - Documentation with usage examples
  • cli/src/__tests__/append-system-prompt.test.ts - Comprehensive test coverage
  • cli/src/index.ts - Main implementation
  • cli/src/types/cli.ts - Type definition update
  • packages/core-schemas/src/messages/cli.ts - Schema update

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.

3 participants