AnyTask CLI v0.5 - Workflow Requirements & Secure Storage

Workflow requirements validation system with automatic prerequisite checking, secure API key storage via system keychain, and enhanced initialization workflow.

AnyTask CLI v0.5 introduces a comprehensive workflow requirements validation system and secure API key storage.

Highlights

Workflow Requirements System

Complete infrastructure for validating workflow prerequisites before execution:

  • Requirement Checkers: Command, environment variable, git context, and file system validators
  • anyt worker check: New command for validating workflow prerequisites
  • Workflow Manifests: YAML configuration files defining workflow requirements
  • Auto-Validation: Automatic requirement validation on worker start with --skip-checks and --force-check flags
  • OS-Specific Instructions: Fix instructions for darwin/linux/windows
  • TTL Caching: 5-minute cache for requirement checks to avoid repeated validation

Built-in Workflow Requirements:

  • local_dev: git + make requirements, git repository check
  • feature_dev: git + gh requirements, repository + remote checks
  • feature_dev_with_check: git + gh + make requirements
  • dry_run: minimal git repository requirement
  • demo_project: git requirement with repository check

Secure API Key Storage

Keyring-based API key storage using system keychain:

  • macOS: Keychain
  • Windows: Credential Manager
  • Linux: Secret Service

New commands:

  • anyt config set-api-key - Store API key securely
  • anyt config get-api-key - View configured API key (masked)
  • anyt config clear-api-key - Remove API key from keyring
  • anyt config status - Show complete configuration status

Priority: ANYT_API_KEY env variable > keyring > None

Enhanced Initialization Workflow

  • Interactive project selection with option to create new projects
  • Auto-detect and configure default agent during workspace initialization
  • Interactive agent selection when multiple agents exist
  • Project creation flow with name, description, and status selection
  • Optional API key save prompt after successful workspace initialization

Interactive Workflow Selection

Interactive workflow picker in anyt worker start:

  • Rich table display of all built-in workflows with descriptions
  • Default workflow (local_dev) marked with visual indicator
  • Support for Enter key (default), numbers 1-4, or 'q' to quit

Worker Command Enhancements

  • Enhanced anyt worker list with --show-requirements flag
  • Separate display of built-in and custom workflows
  • Requirements summary per workflow in list view
  • Detailed check results display in worker start

Changes

Task Pick Behavior

anyt task pick now:

  • Automatically sets task status to "active"
  • Clears any previously picked task before picking new one
  • Ensures clean task lifecycle: pick -> active, done -> completed

Worker Start Display

  • Shows individual requirement check results
  • Displays tool versions and check messages
  • Includes cached status in output
  • Clear error messages with fix instructions

Bug Fixes

  • Fixed asyncio.run() error in project selection
  • Fixed YAML boolean key issue (on: becomes True) in workflow parsing

Testing

  • Added 112 new unit tests for requirements system (100% coverage)
  • All 865 unit tests passing
  • Type checking passes (mypy + pyright)

Version History

  • v0.5.0 - November 20, 2025: Workflow requirements, secure storage

Learn more at PyPI.