You are testing the AgenticFlow CLI (af). The binary is at:
node /Users/sean/WIP/Antigravity-Workspace/agenticflow-js-cli/packages/cli/dist/bin/agenticflow.js
Create a shell alias first:
alias af='node /Users/sean/WIP/Antigravity-Workspace/agenticflow-js-cli/packages/cli/dist/bin/agenticflow.js'- AgenticFlow API: https://api.agenticflow.ai (authenticated via ~/.agenticflow/auth.json)
- Paperclip: http://localhost:3100
- Gateway: http://localhost:4100 (channels: paperclip, webhook)
af --version— should print 1.0.6af --help— should list all commands including paperclip and gatewayaf doctor --json— should show all checks passingaf whoami --json— should show authenticated useraf discover --json— should list all CLI capabilitiesaf playbook --list— should list 10 playbooks including quickstart, gateway-setup, deploy-to-paperclip
af playbook quickstart— read and verify it has 5 stepsaf playbook gateway-setup— verify it covers webhook, paperclip, linear channelsaf playbook deploy-to-paperclip— verify it has full step-by-step guideaf playbook agent-channels— verify it covers all 3 channel types
af agent list --limit 3 --json— should return array of agents- Pick the first agent ID, then:
af agent get --agent-id <ID> --json— should return full agent details - Note the agent name and model from the response
af gateway channels— should list paperclip, linear, webhookcurl -s http://localhost:4100/health— should show gateway healthy with connectors- Test generic webhook: Send a simple task to the first agent from Phase 3:
curl -s -X POST http://localhost:4100/webhook/webhook \
-H "Content-Type: application/json" \
-d '{"agent_id": "<AGENT_ID>", "message": "Write a one-paragraph summary of what you can do", "task_id": "test-001"}'Verify: response has status: "completed" and response_length > 0
af paperclip company create --name "Codex Test Corp" --budget 50000— note the company IDaf paperclip company list— verify the company appearsaf paperclip company get --company-id <ID>— verify details
- Deploy the first agent:
af paperclip deploy --agent-id <AF_AGENT_ID> --company-id <COMPANY_ID> --role engineer - Note the Paperclip agent ID from the response
af paperclip agent list --company-id <COMPANY_ID>— verify agent is listedaf paperclip connect --company-id <COMPANY_ID>— connect to gateway
af paperclip goal create --company-id <COMPANY_ID> --title "Test all CLI features" --level company --status active— note goal IDaf paperclip goal list --company-id <COMPANY_ID>— verify goal appearsaf paperclip issue create --company-id <COMPANY_ID> --title "Write a test report" --description "Summarize all test results" --priority high --assignee <PC_AGENT_ID> --goal-id <GOAL_ID>— note issue IDaf paperclip issue list --company-id <COMPANY_ID>— verify issue appearsaf paperclip issue comment --id <ISSUE_ID> --body "Please be thorough in your report"— add a comment
- Trigger the agent via the Paperclip channel:
curl -s -X POST http://localhost:4100/webhook/paperclip \
-H "Content-Type: application/json" \
-d '{"agentId": "<PC_AGENT_ID>", "runId": "<generate-uuid>", "context": {"issueId": "<ISSUE_ID>", "taskKey": "<IDENTIFIER>", "wakeReason": "Work on your assigned task", "wakeSource": "on_demand"}}'Use uuidgen or any UUID for runId. Wait for response (may take 30-60s).
Verify: response has status: "completed"
af paperclip issue comments --id <ISSUE_ID>— verify agent posted a response commentaf paperclip dashboard --company-id <COMPANY_ID>— check dashboard stats
af paperclip approval list --company-id <COMPANY_ID>— list approvals (may be empty)af paperclip agent pause --id <PC_AGENT_ID>— pause the agentaf paperclip agent get --id <PC_AGENT_ID>— verify status is "paused"af paperclip agent resume --id <PC_AGENT_ID>— resume the agentaf paperclip agent get --id <PC_AGENT_ID>— verify status is back
af paperclip issue delete --id <ISSUE_ID>— delete the issueaf paperclip goal delete --id <GOAL_ID>— delete the goalaf paperclip company delete --company-id <COMPANY_ID>— delete the companyaf paperclip company list— verify company is gone
After completing all steps, write a test report to /tmp/af-test-report.md with:
- Total tests: 40
- Passed / Failed count
- Any errors encountered
- Summary of what works and what doesn't
- Always add
2>/dev/nullto suppress TLS warnings in output - Use
--jsonflag where available for parseable output - UUIDs from previous steps are needed in later steps — save them
- The gateway is already running on port 4100
- Paperclip is running on port 3100