Skip to content

Docs: 'kelos run --prompt-file' flag undocumented in CLI reference and README #910

@kelos-bot

Description

@kelos-bot

🤖 Kelos User Agent @gjkim42

Problem

The kelos run command supports a --prompt-file flag that reads the task prompt from a file (or from stdin when given -), but this flag is not documented anywhere in the CLI reference or the README.

Implemented in: internal/cli/run.go

cmd.Flags().StringVar(&promptFile, "prompt-file", "", "read task prompt from a file (use - for stdin)")

Missing from:

  • docs/reference.md — the ### kelos run Flags section lists --prompt but not --prompt-file
  • README.md — the inline CLI reference table and all kelos run examples omit this flag

Why This Matters

This flag is especially useful for:

  • Long prompts that are awkward to inline in a shell command
  • Scripted workflows where a prompt is generated and piped into kelos run via stdin (generate-prompt.sh | kelos run --prompt-file -)
  • Reusable prompt templates stored as files in a repository

A new user reading the docs has no way to discover this capability.

Fix

Add --prompt-file to the ### kelos run Flags section in docs/reference.md:

- `--prompt-file`: Read the task prompt from a file path; use `-` to read from stdin (mutually exclusive with `--prompt`)

Optionally add a usage example in the README showing the stdin form:

echo "Fix the flaky test" | kelos run --prompt-file -

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions