Skip to content

[Feature Request] CLI flag to load conversation from JSON file on startup #6763

@nerdseverino

Description

@nerdseverino

Feature Request

Description

Add a CLI flag (e.g., --load <path>) to kiro-cli chat that loads a previously saved conversation JSON file directly on startup, similar to how --resume works for database sessions.

Current Behavior

To load a saved conversation from a JSON file, users must:

  1. Start kiro-cli chat
  2. Manually type /chat load <path>.json

This two-step process cannot be automated in headless mode (--no-interactive) since /chat load is an interactive command.

Proposed Behavior

# Load a saved conversation directly on startup
kiro-cli chat --load my-session.json

# Combine with other flags
kiro-cli chat --load my-session.json --trust-all-tools
kiro-cli chat --load my-session.json --agent my-agent

Use Cases

  1. Workflow continuity: Quickly resume a specific exported session without interactive steps
  2. Automation: Load a pre-built conversation context in headless/scripted pipelines
  3. Team collaboration: Share conversation JSON files and load them directly
  4. Session templates: Use saved conversations as starting points for recurring tasks

Consistency

The CLI already supports --resume (from DB) and --resume-picker (interactive). A --load <path> flag would complete the set by supporting file-based session restoration, consistent with the existing /chat load slash command.

Environment

  • Kiro CLI (latest)
  • Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions