Skip to content

Add autopilot CLI flag compatibility#2

Open
Copilot wants to merge 9 commits intomainfrom
copilot/enable-autonomous-continuation
Open

Add autopilot CLI flag compatibility#2
Copilot wants to merge 9 commits intomainfrom
copilot/enable-autonomous-continuation

Conversation

Copy link

Copilot AI commented Mar 1, 2026

Description

Autopilot runners now pass through --max-autopilot-continues and --allow-all without argparse failures; flags are parsed and ignored to preserve behavior.

Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • 📝 Documentation update
  • 🤖 Training data addition
  • 🔧 Refactor / cleanup

Related Issue

Changes Made

  • Added no-op compatibility flags (--max-autopilot-continues, --allow-all) to the CLI parser so autopilot invocations no longer raise argparse errors.
  • Kept behavior unchanged by ignoring these flags after parsing.

Example:

python hancock_agent.py --server --allow-all --max-autopilot-continues=3

Tests run: pytest -q

Testing

  • Tested CLI mode
  • Tested API server (/v1/chat, /v1/triage, etc.)
  • Verified no secrets in committed files

Checklist

  • My code follows the existing style
  • I have NOT committed .env or any API keys
  • All training data is from public, legally sourced knowledge bases
  • The agent's ethical guardrails remain intact

🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

juanaquas and others added 8 commits March 1, 2026 00:40
This workflow automates the building and testing of a Python package using Conda on push events. It sets up Python, installs dependencies, lints the code with flake8, and runs tests with pytest.

Signed-off-by: juanaquas <juanaquas@cyberviserai.com>
Co-authored-by: juanaquas <264702634+juanaquas@users.noreply.github.com>
[WIP] Fix issues with the settings configuration
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: juanaquas <juanaquas@cyberviserai.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: juanaquas <juanaquas@cyberviserai.com>
Co-authored-by: juanaquas <264702634+juanaquas@users.noreply.github.com>
Copilot AI changed the title [WIP] Enable autonomous continuation with all permissions Add autopilot CLI flag compatibility Mar 1, 2026
@juanaquas juanaquas marked this pull request as ready for review March 1, 2026 10:21
@juanaquas
Copy link
Owner

@copilot

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.

2 participants