Skip to content

Default the checkpoint path from $AGENT_HANDOVER_CHECKPOINT #6

Description

@hikari716

Context

The CLI defaults --checkpoint to .agent-handover/checkpoint.json
(src/agent_handover/cli.py). Users running one repo from multiple agents or
worktrees want to set this once via the environment.

Task

When --checkpoint is not given, fall back to the AGENT_HANDOVER_CHECKPOINT
environment variable, then the current default.
Precedence: --checkpoint > $AGENT_HANDOVER_CHECKPOINT > default.

Acceptance criteria

  • Flag overrides the env var (test)
  • Env var used when flag absent (test)
  • Falls back to default when neither is set (test)
  • README documents the env var

Pointers

  • src/agent_handover/cli.py (argparse setup), tests/test_cli.py

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cliCommand-line interfacegood first issueGood for newcomers

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions