Skip to content

Fix/cli#32

Merged
Iamsdt merged 12 commits into
mainfrom
fix/cli
May 8, 2026
Merged

Fix/cli#32
Iamsdt merged 12 commits into
mainfrom
fix/cli

Conversation

@Iamsdt
Copy link
Copy Markdown
Collaborator

@Iamsdt Iamsdt commented May 8, 2026

This pull request introduces a major overhaul to the onboarding and project templating process for the CLI, focusing on a more interactive and user-friendly agentflow init experience. It adds comprehensive development and production-ready templates, including configuration, environment, and example agent files, as well as production best practices such as authentication scaffolding, rate limiting, and evaluation scripts. The pre-commit configuration is also updated to exclude template files from linting, and Python 3.13 is set as the default version in templates.

Onboarding and Project Initialization Improvements:

  • The onboarding process described in TODOD.txt is updated to outline an interactive, argument-free agentflow init command. The CLI now prompts users for agent name and setup type (Quick Start or Production), and dynamically applies template files based on their choices. This sets the stage for a smoother, guided project setup.
  • The init command in agentflow_cli/cli/main.py is refactored to remove the --prod flag and now always runs interactively, aligning with the new onboarding flow. [1] [2]

Template System and Project Structure:

  • Adds a complete set of development (dev/) and production (prod/) templates under agentflow_cli/cli/templates/, including:
    • Example .env.example and .python-version files for both environments, with production files supporting dynamic values and conditional blocks for features like Redis and JWT. [1] [2] [3]
    • Example agentflow.json configurations for both dev and prod, with the production version including authentication, rate limiting, and dependency injection settings. [1] [2]
    • Example agent implementations: a simple weather agent for dev, and a modular, production-ready agent with dependency injection, context management, and validation for prod. [1] [2] [3]
    • Production scaffolding for authentication (auth/agent_auth.py) and evaluation scripts (evals/weather_agents.py). [1] [2]

Code Quality and Tooling:

  • Updates .pre-commit-config.yaml to exclude template files from linting and security checks, preventing unnecessary pre-commit failures when generating new projects.
  • Adds a production-ready .pre-commot-config.yaml to the prod template, including a comprehensive set of hooks for code quality, security, and formatting.

Python Version Standardization:

  • Sets Python 3.13 as the default version in both the root and template .python-version files, ensuring consistency across environments.

Most important changes:

Onboarding & CLI Behavior:

  • Refactored the onboarding flow to be fully interactive, removing the --prod flag and guiding users through agent name and setup type selection in agentflow init. [1] [2] [3]

Template System & Project Structure:

  • Added comprehensive dev and prod templates, including configuration files, agent implementations, authentication scaffolding, and evaluation scripts to agentflow_cli/cli/templates/. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]

Code Quality & Tooling:

  • Updated .pre-commit-config.yaml to exclude template files from checks and added a production .pre-commot-config.yaml with robust code quality hooks. [1] [2]

Python Version Standardization:

  • Set Python 3.13 as the default version in root and template .python-version files.

Configuration Enhancements:

  • Production agentflow.json now includes authentication, dependency injection, and rate limiting settings for out-of-the-box best practices.

@Iamsdt Iamsdt merged commit fc6a4a9 into main May 8, 2026
1 check passed
@Iamsdt Iamsdt deleted the fix/cli branch May 8, 2026 06:07
@codecov
Copy link
Copy Markdown

codecov Bot commented May 8, 2026

Codecov Report

❌ Patch coverage is 63.93443% with 66 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
agentflow_cli/cli/commands/init.py 64.08% 54 Missing and 11 partials ⚠️
agentflow_cli/cli/main.py 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

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.

1 participant