Add milo new + milo verify and ship agent-native affordances#57
Merged
Conversation
Six-sprint epic to make milo agent-native, not just agent-friendly: - `milo new <name>` scaffolds a runnable CLI with tests, conftest, and README - `milo verify <path>` self-diagnoses via 6 checks (imports, CLI located, commands registered, schemas generate, in-process MCP list, subprocess MCP transport); used as a regression gate over every CLI example - `function_to_schema(..., warn_missing_docs=True)` surfaces typed but undocumented params; verify wires this in for agents to see - Python 3.14+ preflight in `milo` prints a `uv python install 3.14` hint instead of failing with ImportError on older interpreters - README "Examples Index" maps use cases → examples → key APIs (with a drift lint that fails CI when an example is added without a row) - agent-quickstart adds Step 0 (scaffold) and Step 6 (verify); AGENTS.md Stakes section adds scaffold/verify as same-severity-class as schema gen +35 tests; full suite 1422 passing, no regressions. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Coverage Report✅ 87.4% overall coverage
|
Hoist _ICONS to module scope, use list.extend for details, drop unused `# noqa: S603` directive, and replace try/except/pass with contextlib.suppress. Also apply ruff format across files touched by the epic.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
milo new <name>scaffolds a runnable CLI (app.py + tests + conftest + README) andmilo verify <path>self-diagnoses via 6 checks (imports, CLI located, commands registered, schemas generate, in-process MCP list, subprocess MCP transport) — used as a regression gate over every CLI example.function_to_schema(..., warn_missing_docs=True)surfaces typed-but-undocumented params;milo verifywires this in so agents see coverage gaps.miloentry point prints auv python install 3.14hint instead of failing withImportErroron older interpreters.Test plan
uv run pytest— 1422 passing, 1 skipped, no regressions (+35 tests across the epic)uv run milo new my_cli && uv run milo verify my_cli/app.py— 6 checks passexamples/_drifttest/and confirm the README drift lint fails with an actionable messagesys.version_infoto 3.12 — preflight exits 2 with the install hint🤖 Generated with Claude Code