agent-hub-local 0.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- agent_hub_local-0.2.0/.dockerignore +18 -0
- agent_hub_local-0.2.0/.github/workflows/release.yml +105 -0
- agent_hub_local-0.2.0/.gitignore +24 -0
- agent_hub_local-0.2.0/Dockerfile +42 -0
- agent_hub_local-0.2.0/LICENSE +21 -0
- agent_hub_local-0.2.0/PKG-INFO +293 -0
- agent_hub_local-0.2.0/README.md +258 -0
- agent_hub_local-0.2.0/docs/ARCHITECTURE_AND_CAPABILITIES.md +106 -0
- agent_hub_local-0.2.0/docs/MANIFEST_SPEC.md +60 -0
- agent_hub_local-0.2.0/docs/MONETIZATION_AND_SELF_HOSTING.md +113 -0
- agent_hub_local-0.2.0/docs/REQUIREMENTS.md +428 -0
- agent_hub_local-0.2.0/docs/ROADMAP_AND_PENDING.md +56 -0
- agent_hub_local-0.2.0/docs/SUPER_AGENT_ARCHITECTURE.md +90 -0
- agent_hub_local-0.2.0/docs/USER_JOURNEY.md +178 -0
- agent_hub_local-0.2.0/docs/journeys/01-cross-repo-multi-turn-skill.md +56 -0
- agent_hub_local-0.2.0/docs/journeys/02-cli-engine-templates-and-schedules.md +59 -0
- agent_hub_local-0.2.0/docs/journeys/03-failed-run-error-diagnostics.md +37 -0
- agent_hub_local-0.2.0/docs/journeys/04-cross-repo-sharing-and-interactive-pty.md +45 -0
- agent_hub_local-0.2.0/docs/journeys/05-agent-quarantine-lab-and-safe-probe.md +72 -0
- agent_hub_local-0.2.0/docs/journeys/06-multi-agent-ab-arena.md +37 -0
- agent_hub_local-0.2.0/docs/journeys/07-security-playbooks-ephemeral-audit-and-alerts.md +48 -0
- agent_hub_local-0.2.0/docs/journeys/08-sarif-findings-hub-and-security-arsenal.md +41 -0
- agent_hub_local-0.2.0/docs/journeys/09-goal-orchestrator-report-and-signed-audit.md +46 -0
- agent_hub_local-0.2.0/docs/journeys/10-isolation-tiers-policy-as-code-and-control-plane.md +31 -0
- agent_hub_local-0.2.0/docs/journeys/11-attention-inbox-and-immutable-mandates.md +27 -0
- agent_hub_local-0.2.0/docs/journeys/12-sandbox-selftest-gauntlet-and-skill-ablation.md +24 -0
- agent_hub_local-0.2.0/docs/journeys/13-event-router-pr-subscriptions-and-mcp-guard.md +35 -0
- agent_hub_local-0.2.0/docs/journeys/README.md +42 -0
- agent_hub_local-0.2.0/docs/journeys/UI_JOURNEY_AUDIT_REPORT.md +44 -0
- agent_hub_local-0.2.0/docs/journeys/screenshots/01-cross-repo-multi-turn-skill/01-input-run-modal.png +0 -0
- agent_hub_local-0.2.0/docs/journeys/screenshots/01-cross-repo-multi-turn-skill/02-output-turn1-awaiting-input-and-reply.png +0 -0
- agent_hub_local-0.2.0/docs/journeys/screenshots/01-cross-repo-multi-turn-skill/03-output-turn2-context-preserved.png +0 -0
- agent_hub_local-0.2.0/docs/journeys/screenshots/01-cross-repo-multi-turn-skill/04-output-raw-log.png +0 -0
- agent_hub_local-0.2.0/docs/journeys/screenshots/01-cross-repo-multi-turn-skill/05-output-artifacts.png +0 -0
- agent_hub_local-0.2.0/docs/journeys/screenshots/01-cross-repo-multi-turn-skill/06-output-git-diff.png +0 -0
- agent_hub_local-0.2.0/docs/journeys/screenshots/02-cli-engine-templates-schedules/01-input-cli-engine-run.png +0 -0
- agent_hub_local-0.2.0/docs/journeys/screenshots/02-cli-engine-templates-schedules/02-output-redacted-log.png +0 -0
- agent_hub_local-0.2.0/docs/journeys/screenshots/02-cli-engine-templates-schedules/03-output-artifacts.png +0 -0
- agent_hub_local-0.2.0/docs/journeys/screenshots/02-cli-engine-templates-schedules/04-output-worktree-diff.png +0 -0
- agent_hub_local-0.2.0/docs/journeys/screenshots/02-cli-engine-templates-schedules/05-input-template-modal.png +0 -0
- agent_hub_local-0.2.0/docs/journeys/screenshots/02-cli-engine-templates-schedules/06-input-schedule-modal.png +0 -0
- agent_hub_local-0.2.0/docs/journeys/screenshots/02-cli-engine-templates-schedules/07-output-schedules.png +0 -0
- agent_hub_local-0.2.0/docs/journeys/screenshots/03-failed-run-error-diagnostics/01-input-failing-engine.png +0 -0
- agent_hub_local-0.2.0/docs/journeys/screenshots/03-failed-run-error-diagnostics/02-output-failed-full-log.png +0 -0
- agent_hub_local-0.2.0/docs/journeys/screenshots/03-failed-run-error-diagnostics/03-output-errors-only.png +0 -0
- agent_hub_local-0.2.0/docs/journeys/screenshots/03-failed-run-error-diagnostics/04-output-command-inputs.png +0 -0
- agent_hub_local-0.2.0/docs/journeys/screenshots/04-cross-repo-sharing-and-pty/01-input-attach-modal.png +0 -0
- agent_hub_local-0.2.0/docs/journeys/screenshots/04-cross-repo-sharing-and-pty/02-output-relationship-map.png +0 -0
- agent_hub_local-0.2.0/docs/journeys/screenshots/04-cross-repo-sharing-and-pty/03-input-pty-run.png +0 -0
- agent_hub_local-0.2.0/docs/journeys/screenshots/04-cross-repo-sharing-and-pty/04-output-pty-terminal.png +0 -0
- agent_hub_local-0.2.0/docs/journeys/screenshots/04-cross-repo-sharing-and-pty/05-output-pty-raw-log.png +0 -0
- agent_hub_local-0.2.0/docs/journeys/screenshots/05-agent-quarantine-and-safe-probe/01-quarantine-tier-setup-and-snippet-audit.png +0 -0
- agent_hub_local-0.2.0/docs/journeys/screenshots/05-agent-quarantine-and-safe-probe/02-quarantine-intake-and-safe-probe.png +0 -0
- agent_hub_local-0.2.0/docs/journeys/screenshots/05-agent-quarantine-and-safe-probe/03-output-data-shared-and-os-interactions.png +0 -0
- agent_hub_local-0.2.0/docs/journeys/screenshots/05-agent-quarantine-and-safe-probe/04-output-artifacts-and-signed-audit.png +0 -0
- agent_hub_local-0.2.0/docs/journeys/screenshots/06-multi-agent-ab-arena/01-input-arena-builder.png +0 -0
- agent_hub_local-0.2.0/docs/journeys/screenshots/06-multi-agent-ab-arena/02-output-delta-matrix-and-side-by-side-diffs.png +0 -0
- agent_hub_local-0.2.0/docs/journeys/screenshots/06-multi-agent-ab-arena/03-output-side-by-side-responses.png +0 -0
- agent_hub_local-0.2.0/docs/journeys/screenshots/07-playbooks-ephemeral-audit-and-alerts/01-playbooks-and-ephemeral-audit.png +0 -0
- agent_hub_local-0.2.0/docs/journeys/screenshots/07-playbooks-ephemeral-audit-and-alerts/02-output-webhook-ssrf-guard.png +0 -0
- agent_hub_local-0.2.0/docs/journeys/screenshots/07-playbooks-ephemeral-audit-and-alerts/03-output-playbook-launched-goal.png +0 -0
- agent_hub_local-0.2.0/docs/journeys/screenshots/08-sarif-hub-and-security-arsenal/01-output-sarif-findings-hub.png +0 -0
- agent_hub_local-0.2.0/docs/journeys/screenshots/08-sarif-hub-and-security-arsenal/02-output-security-arsenal.png +0 -0
- agent_hub_local-0.2.0/docs/journeys/screenshots/09-goal-orchestrator-and-signed-audit/01-input-goals-orchestrator.png +0 -0
- agent_hub_local-0.2.0/docs/journeys/screenshots/09-goal-orchestrator-and-signed-audit/02-output-goal-plan-and-knowledge-graph.png +0 -0
- agent_hub_local-0.2.0/docs/journeys/screenshots/09-goal-orchestrator-and-signed-audit/03-output-formatted-report-and-signed-audit.png +0 -0
- agent_hub_local-0.2.0/docs/journeys/screenshots/10-isolation-tiers-and-policy-as-code/01-overview-cost-and-savings.png +0 -0
- agent_hub_local-0.2.0/docs/journeys/screenshots/10-isolation-tiers-and-policy-as-code/02-run-modal-tier4-microvm.png +0 -0
- agent_hub_local-0.2.0/docs/journeys/screenshots/10-isolation-tiers-and-policy-as-code/03-settings-policy-as-code-and-license.png +0 -0
- agent_hub_local-0.2.0/docs/journeys/screenshots/11a-attention-inbox.png +0 -0
- agent_hub_local-0.2.0/docs/journeys/screenshots/11b-immutable-mandate-controls.png +0 -0
- agent_hub_local-0.2.0/docs/journeys/screenshots/12a-sandbox-selftest-and-gauntlet.png +0 -0
- agent_hub_local-0.2.0/docs/journeys/screenshots/12b-skill-ab-ablation.png +0 -0
- agent_hub_local-0.2.0/docs/journeys/screenshots/13a-event-router-mandate-tickets.png +0 -0
- agent_hub_local-0.2.0/docs/journeys/screenshots/13b-pass-through-pr-subscriptions.png +0 -0
- agent_hub_local-0.2.0/docs/journeys/screenshots/13c-mcp-rug-pull-guard.png +0 -0
- agent_hub_local-0.2.0/docs/screenshots/01-overview.png +0 -0
- agent_hub_local-0.2.0/docs/screenshots/02-repositories.png +0 -0
- agent_hub_local-0.2.0/docs/screenshots/03-repo-detail.png +0 -0
- agent_hub_local-0.2.0/docs/screenshots/04-skills-catalog.png +0 -0
- agent_hub_local-0.2.0/docs/screenshots/05-attach-modal.png +0 -0
- agent_hub_local-0.2.0/docs/screenshots/06-bootstrap-modal.png +0 -0
- agent_hub_local-0.2.0/docs/screenshots/07-run-modal.png +0 -0
- agent_hub_local-0.2.0/docs/screenshots/08-run-output.png +0 -0
- agent_hub_local-0.2.0/docs/screenshots/09-run-artifacts.png +0 -0
- agent_hub_local-0.2.0/docs/screenshots/10-run-diff.png +0 -0
- agent_hub_local-0.2.0/docs/screenshots/11-pty-terminal.png +0 -0
- agent_hub_local-0.2.0/docs/screenshots/12-settings.png +0 -0
- agent_hub_local-0.2.0/docs/screenshots/13-schedule-modal.png +0 -0
- agent_hub_local-0.2.0/docs/screenshots/14-schedules-list.png +0 -0
- agent_hub_local-0.2.0/docs/screenshots/15-relationship-map.png +0 -0
- agent_hub_local-0.2.0/docs/screenshots/16-multi-turn-awaiting-input.png +0 -0
- agent_hub_local-0.2.0/docs/screenshots/17-multi-turn-turn2.png +0 -0
- agent_hub_local-0.2.0/docs/screenshots/18-failed-run-diagnostics.png +0 -0
- agent_hub_local-0.2.0/examples/engines/generic-security-scanner.yaml +41 -0
- agent_hub_local-0.2.0/examples/engines/interactive-hitl-engine.yaml +69 -0
- agent_hub_local-0.2.0/pyproject.toml +79 -0
- agent_hub_local-0.2.0/scripts/build_release.py +83 -0
- agent_hub_local-0.2.0/scripts/issue_license.py +81 -0
- agent_hub_local-0.2.0/scripts/license_webhook_server.py +215 -0
- agent_hub_local-0.2.0/site/index.html +502 -0
- agent_hub_local-0.2.0/src/agent_hub/__init__.py +3 -0
- agent_hub_local-0.2.0/src/agent_hub/analytics.py +273 -0
- agent_hub_local-0.2.0/src/agent_hub/arena.py +351 -0
- agent_hub_local-0.2.0/src/agent_hub/attention.py +364 -0
- agent_hub_local-0.2.0/src/agent_hub/audit_bundle.py +152 -0
- agent_hub_local-0.2.0/src/agent_hub/builtin_tools/__init__.py +1 -0
- agent_hub_local-0.2.0/src/agent_hub/builtin_tools/mcp_skill_auditor.py +78 -0
- agent_hub_local-0.2.0/src/agent_hub/builtin_tools/web_search_agent.py +281 -0
- agent_hub_local-0.2.0/src/agent_hub/cli.py +242 -0
- agent_hub_local-0.2.0/src/agent_hub/config.py +305 -0
- agent_hub_local-0.2.0/src/agent_hub/db.py +2100 -0
- agent_hub_local-0.2.0/src/agent_hub/event_router.py +880 -0
- agent_hub_local-0.2.0/src/agent_hub/gauntlet.py +479 -0
- agent_hub_local-0.2.0/src/agent_hub/licensing.py +421 -0
- agent_hub_local-0.2.0/src/agent_hub/linker.py +305 -0
- agent_hub_local-0.2.0/src/agent_hub/mandate.py +228 -0
- agent_hub_local-0.2.0/src/agent_hub/mcp_guard.py +414 -0
- agent_hub_local-0.2.0/src/agent_hub/mcp_server.py +263 -0
- agent_hub_local-0.2.0/src/agent_hub/models.py +837 -0
- agent_hub_local-0.2.0/src/agent_hub/notifications.py +190 -0
- agent_hub_local-0.2.0/src/agent_hub/policy.py +180 -0
- agent_hub_local-0.2.0/src/agent_hub/quarantine.py +415 -0
- agent_hub_local-0.2.0/src/agent_hub/routers/__init__.py +1 -0
- agent_hub_local-0.2.0/src/agent_hub/routers/automation.py +250 -0
- agent_hub_local-0.2.0/src/agent_hub/routers/goals.py +264 -0
- agent_hub_local-0.2.0/src/agent_hub/routers/mcp.py +252 -0
- agent_hub_local-0.2.0/src/agent_hub/routers/pro.py +351 -0
- agent_hub_local-0.2.0/src/agent_hub/routers/security_lab.py +894 -0
- agent_hub_local-0.2.0/src/agent_hub/routers/super_agent.py +137 -0
- agent_hub_local-0.2.0/src/agent_hub/runner/__init__.py +1 -0
- agent_hub_local-0.2.0/src/agent_hub/runner/adapters.py +1002 -0
- agent_hub_local-0.2.0/src/agent_hub/runner/canary_trap.py +144 -0
- agent_hub_local-0.2.0/src/agent_hub/runner/capability_installer.py +1008 -0
- agent_hub_local-0.2.0/src/agent_hub/runner/cli_agent_runner.py +832 -0
- agent_hub_local-0.2.0/src/agent_hub/runner/data_ledger.py +314 -0
- agent_hub_local-0.2.0/src/agent_hub/runner/env_redactor.py +185 -0
- agent_hub_local-0.2.0/src/agent_hub/runner/goal_orchestrator.py +2121 -0
- agent_hub_local-0.2.0/src/agent_hub/runner/goal_planner.py +1161 -0
- agent_hub_local-0.2.0/src/agent_hub/runner/llm_client.py +379 -0
- agent_hub_local-0.2.0/src/agent_hub/runner/mcp_client.py +296 -0
- agent_hub_local-0.2.0/src/agent_hub/runner/microvm.py +710 -0
- agent_hub_local-0.2.0/src/agent_hub/runner/orchestrator.py +1905 -0
- agent_hub_local-0.2.0/src/agent_hub/runner/os_audit.py +595 -0
- agent_hub_local-0.2.0/src/agent_hub/runner/pr_creator.py +315 -0
- agent_hub_local-0.2.0/src/agent_hub/runner/providers.py +647 -0
- agent_hub_local-0.2.0/src/agent_hub/runner/proxy.py +778 -0
- agent_hub_local-0.2.0/src/agent_hub/runner/sandbox.py +1202 -0
- agent_hub_local-0.2.0/src/agent_hub/runner/sandbox_bridge.py +149 -0
- agent_hub_local-0.2.0/src/agent_hub/runner/seccomp.py +173 -0
- agent_hub_local-0.2.0/src/agent_hub/runner/stream_formatter.py +763 -0
- agent_hub_local-0.2.0/src/agent_hub/runner/worktree.py +259 -0
- agent_hub_local-0.2.0/src/agent_hub/sarif_hub.py +246 -0
- agent_hub_local-0.2.0/src/agent_hub/scanner.py +1335 -0
- agent_hub_local-0.2.0/src/agent_hub/scheduler.py +332 -0
- agent_hub_local-0.2.0/src/agent_hub/server.py +950 -0
- agent_hub_local-0.2.0/src/agent_hub/service.py +270 -0
- agent_hub_local-0.2.0/tests/test_cli_agent.py +495 -0
- agent_hub_local-0.2.0/tests/test_cross_platform_packaging.py +194 -0
- agent_hub_local-0.2.0/tests/test_goal_orchestrator.py +649 -0
- agent_hub_local-0.2.0/tests/test_phase1_phase2_architecture.py +352 -0
- agent_hub_local-0.2.0/tests/test_phase_a_hardening.py +203 -0
- agent_hub_local-0.2.0/tests/test_pro_features.py +204 -0
- agent_hub_local-0.2.0/tests/test_runner_and_api.py +770 -0
- agent_hub_local-0.2.0/tests/test_scanner_and_linker.py +282 -0
- agent_hub_local-0.2.0/tests/test_scheduler_and_service.py +307 -0
- agent_hub_local-0.2.0/tests/test_security_and_phase0_fixes.py +261 -0
- agent_hub_local-0.2.0/tests/test_security_lab.py +1671 -0
- agent_hub_local-0.2.0/tests/test_security_sandbox.py +324 -0
- agent_hub_local-0.2.0/tests/test_sprint3_sprint4.py +249 -0
- agent_hub_local-0.2.0/uv.lock +937 -0
- agent_hub_local-0.2.0/web/e2e/capture-journeys.mjs +564 -0
- agent_hub_local-0.2.0/web/e2e/capture-security-and-goal-journeys.mjs +522 -0
- agent_hub_local-0.2.0/web/e2e/capture-super-agent-journeys.mjs +164 -0
- agent_hub_local-0.2.0/web/e2e/ui.e2e.mjs +880 -0
- agent_hub_local-0.2.0/web/index.html +12 -0
- agent_hub_local-0.2.0/web/package-lock.json +2419 -0
- agent_hub_local-0.2.0/web/package.json +29 -0
- agent_hub_local-0.2.0/web/src/App.tsx +2322 -0
- agent_hub_local-0.2.0/web/src/api.ts +785 -0
- agent_hub_local-0.2.0/web/src/components/AttachModal.tsx +204 -0
- agent_hub_local-0.2.0/web/src/components/AttentionInboxView.tsx +438 -0
- agent_hub_local-0.2.0/web/src/components/BootstrapModal.tsx +214 -0
- agent_hub_local-0.2.0/web/src/components/CreatePrModal.tsx +251 -0
- agent_hub_local-0.2.0/web/src/components/DataSharedPanel.tsx +309 -0
- agent_hub_local-0.2.0/web/src/components/GoalDetailView.tsx +1507 -0
- agent_hub_local-0.2.0/web/src/components/GoalsView.tsx +492 -0
- agent_hub_local-0.2.0/web/src/components/OsAuditPanel.tsx +332 -0
- agent_hub_local-0.2.0/web/src/components/PtyTerminal.tsx +94 -0
- agent_hub_local-0.2.0/web/src/components/RegisterCliModal.tsx +236 -0
- agent_hub_local-0.2.0/web/src/components/RelationshipMap.tsx +677 -0
- agent_hub_local-0.2.0/web/src/components/RunDetailView.tsx +1548 -0
- agent_hub_local-0.2.0/web/src/components/RunModal.tsx +1224 -0
- agent_hub_local-0.2.0/web/src/components/ScheduleModal.tsx +335 -0
- agent_hub_local-0.2.0/web/src/components/SecurityLabView.tsx +2036 -0
- agent_hub_local-0.2.0/web/src/components/SuperAgentRouterView.tsx +1231 -0
- agent_hub_local-0.2.0/web/src/components/TemplateModal.tsx +670 -0
- agent_hub_local-0.2.0/web/src/components/WorkspaceSetupModal.tsx +442 -0
- agent_hub_local-0.2.0/web/src/index.css +26 -0
- agent_hub_local-0.2.0/web/src/main.tsx +10 -0
- agent_hub_local-0.2.0/web/src/types.ts +1181 -0
- agent_hub_local-0.2.0/web/src/utils/assetGrouping.ts +137 -0
- agent_hub_local-0.2.0/web/tsconfig.json +20 -0
- agent_hub_local-0.2.0/web/vite.config.ts +21 -0
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
name: CI & Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
tags: ["v*"]
|
|
7
|
+
pull_request:
|
|
8
|
+
branches: [main]
|
|
9
|
+
|
|
10
|
+
permissions:
|
|
11
|
+
contents: read
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
verify:
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@v4
|
|
18
|
+
|
|
19
|
+
- name: Install system sandbox dependencies
|
|
20
|
+
run: |
|
|
21
|
+
sudo apt-get update
|
|
22
|
+
sudo apt-get install -y --no-install-recommends bubblewrap strace
|
|
23
|
+
|
|
24
|
+
- name: Set up Python & uv
|
|
25
|
+
uses: astral-sh/setup-uv@v5
|
|
26
|
+
with:
|
|
27
|
+
python-version: "3.12"
|
|
28
|
+
|
|
29
|
+
- name: Set up Node.js
|
|
30
|
+
uses: actions/setup-node@v4
|
|
31
|
+
with:
|
|
32
|
+
node-version: "22"
|
|
33
|
+
cache: npm
|
|
34
|
+
cache-dependency-path: web/package-lock.json
|
|
35
|
+
|
|
36
|
+
- name: Install Python dependencies
|
|
37
|
+
run: uv sync --extra dev
|
|
38
|
+
|
|
39
|
+
- name: Lint & test backend
|
|
40
|
+
run: |
|
|
41
|
+
uv run ruff check src tests
|
|
42
|
+
uv run pytest -q
|
|
43
|
+
|
|
44
|
+
- name: Build self-contained wheel & verify bundled UI
|
|
45
|
+
run: uv run python scripts/build_release.py
|
|
46
|
+
|
|
47
|
+
- name: Smoke-test installed wheel via uvx
|
|
48
|
+
run: uvx --from dist/agent_hub_local-*.whl agent-hub-local --help
|
|
49
|
+
|
|
50
|
+
- name: Upload dist artifacts
|
|
51
|
+
uses: actions/upload-artifact@v4
|
|
52
|
+
with:
|
|
53
|
+
name: agent-hub-dist
|
|
54
|
+
path: dist/
|
|
55
|
+
|
|
56
|
+
publish-pypi:
|
|
57
|
+
needs: verify
|
|
58
|
+
if: startsWith(github.ref, 'refs/tags/v')
|
|
59
|
+
runs-on: ubuntu-latest
|
|
60
|
+
environment: pypi
|
|
61
|
+
permissions:
|
|
62
|
+
id-token: write
|
|
63
|
+
steps:
|
|
64
|
+
- uses: actions/download-artifact@v4
|
|
65
|
+
with:
|
|
66
|
+
name: agent-hub-dist
|
|
67
|
+
path: dist/
|
|
68
|
+
|
|
69
|
+
- name: Publish to PyPI (Trusted Publishing)
|
|
70
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
71
|
+
|
|
72
|
+
publish-docker:
|
|
73
|
+
needs: verify
|
|
74
|
+
if: startsWith(github.ref, 'refs/tags/v')
|
|
75
|
+
runs-on: ubuntu-latest
|
|
76
|
+
permissions:
|
|
77
|
+
contents: read
|
|
78
|
+
packages: write
|
|
79
|
+
steps:
|
|
80
|
+
- uses: actions/checkout@v4
|
|
81
|
+
|
|
82
|
+
- name: Log in to GHCR
|
|
83
|
+
uses: docker/login-action@v3
|
|
84
|
+
with:
|
|
85
|
+
registry: ghcr.io
|
|
86
|
+
username: ${{ github.actor }}
|
|
87
|
+
password: ${{ secrets.GITHUB_TOKEN }}
|
|
88
|
+
|
|
89
|
+
- name: Extract image tags
|
|
90
|
+
id: meta
|
|
91
|
+
uses: docker/metadata-action@v5
|
|
92
|
+
with:
|
|
93
|
+
images: ghcr.io/${{ github.repository }}
|
|
94
|
+
tags: |
|
|
95
|
+
type=semver,pattern={{version}}
|
|
96
|
+
type=semver,pattern={{major}}.{{minor}}
|
|
97
|
+
type=raw,value=latest
|
|
98
|
+
|
|
99
|
+
- name: Build and push image
|
|
100
|
+
uses: docker/build-push-action@v6
|
|
101
|
+
with:
|
|
102
|
+
context: .
|
|
103
|
+
push: true
|
|
104
|
+
tags: ${{ steps.meta.outputs.tags }}
|
|
105
|
+
labels: ${{ steps.meta.outputs.labels }}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Python
|
|
2
|
+
.venv/
|
|
3
|
+
venv/
|
|
4
|
+
__pycache__/
|
|
5
|
+
*.py[cod]
|
|
6
|
+
.pytest_cache/
|
|
7
|
+
.ruff_cache/
|
|
8
|
+
dist/
|
|
9
|
+
build/
|
|
10
|
+
*.egg-info/
|
|
11
|
+
|
|
12
|
+
# Frontend
|
|
13
|
+
web/node_modules/
|
|
14
|
+
web/dist/
|
|
15
|
+
src/agent_hub/_web_dist/
|
|
16
|
+
*.tsbuildinfo
|
|
17
|
+
|
|
18
|
+
# Local runtime state & secrets
|
|
19
|
+
.agent-hub/
|
|
20
|
+
*.db
|
|
21
|
+
*.sqlite*
|
|
22
|
+
.env
|
|
23
|
+
.env.*
|
|
24
|
+
!.env.example
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Multi-stage Dockerfile for Agent Hub (self-contained UI + Linux bwrap/strace sandbox support)
|
|
2
|
+
FROM node:22-slim AS web-builder
|
|
3
|
+
WORKDIR /build/web
|
|
4
|
+
COPY web/package.json web/package-lock.json ./
|
|
5
|
+
RUN npm ci
|
|
6
|
+
COPY web/ ./
|
|
7
|
+
RUN npm run build
|
|
8
|
+
|
|
9
|
+
FROM python:3.12-slim AS runtime
|
|
10
|
+
ENV PYTHONDONTWRITEBYTECODE=1 \
|
|
11
|
+
PYTHONUNBUFFERED=1 \
|
|
12
|
+
XDG_CONFIG_HOME=/data/config \
|
|
13
|
+
XDG_DATA_HOME=/data/share
|
|
14
|
+
|
|
15
|
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
16
|
+
git \
|
|
17
|
+
bubblewrap \
|
|
18
|
+
strace \
|
|
19
|
+
ca-certificates \
|
|
20
|
+
curl \
|
|
21
|
+
&& rm -rf /var/lib/apt/lists/*
|
|
22
|
+
|
|
23
|
+
WORKDIR /app
|
|
24
|
+
COPY pyproject.toml README.md LICENSE ./
|
|
25
|
+
COPY src/ ./src/
|
|
26
|
+
COPY --from=web-builder /build/web/dist ./src/agent_hub/_web_dist
|
|
27
|
+
|
|
28
|
+
RUN pip install --no-cache-dir . \
|
|
29
|
+
&& useradd --create-home --shell /bin/bash agenthub \
|
|
30
|
+
&& mkdir -p /data/config /data/share /workspace \
|
|
31
|
+
&& chown -R agenthub:agenthub /data /workspace
|
|
32
|
+
|
|
33
|
+
USER agenthub
|
|
34
|
+
EXPOSE 8765
|
|
35
|
+
|
|
36
|
+
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
|
|
37
|
+
CMD curl -fsS http://127.0.0.1:8765/api/health || exit 1
|
|
38
|
+
|
|
39
|
+
# Bind 0.0.0.0 inside container; publish loopback-only on host:
|
|
40
|
+
# docker run -p 127.0.0.1:8765:8765 -v /path/to/projects:/workspace -v agent-hub-data:/data ghcr.io/yeshwanthudayshankar/agent-hub:latest
|
|
41
|
+
ENTRYPOINT ["agent-hub"]
|
|
42
|
+
CMD ["serve", "--host", "0.0.0.0", "--port", "8765", "--root", "/workspace", "--no-global"]
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Agent Hub Contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: agent-hub-local
|
|
3
|
+
Version: 0.2.0
|
|
4
|
+
Summary: Local-first, sandboxed goal runner that orchestrates your AI agents, CLI tools, skills, and MCP servers with reviewable plans, permission gates, and full audit trails.
|
|
5
|
+
Project-URL: Homepage, https://github.com/YeshwanthUdayshankar/agent-hub
|
|
6
|
+
Project-URL: Repository, https://github.com/YeshwanthUdayshankar/agent-hub
|
|
7
|
+
Project-URL: Issues, https://github.com/YeshwanthUdayshankar/agent-hub/issues
|
|
8
|
+
License: MIT
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Keywords: ai-agents,bubblewrap,claude-code,coding-agents,local-first,mcp,orchestrator,sandbox
|
|
11
|
+
Classifier: Development Status :: 4 - Beta
|
|
12
|
+
Classifier: Environment :: Web Environment
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
15
|
+
Classifier: Operating System :: MacOS
|
|
16
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
19
|
+
Classifier: Topic :: Security
|
|
20
|
+
Classifier: Topic :: Software Development :: Build Tools
|
|
21
|
+
Requires-Python: >=3.12
|
|
22
|
+
Requires-Dist: aiosqlite>=0.20.0
|
|
23
|
+
Requires-Dist: fastapi>=0.115.0
|
|
24
|
+
Requires-Dist: httpx>=0.27.0
|
|
25
|
+
Requires-Dist: pydantic>=2.9.0
|
|
26
|
+
Requires-Dist: pyyaml>=6.0.2
|
|
27
|
+
Requires-Dist: typer>=0.12.0
|
|
28
|
+
Requires-Dist: uvicorn[standard]>=0.32.0
|
|
29
|
+
Requires-Dist: watchdog>=5.0.0
|
|
30
|
+
Provides-Extra: dev
|
|
31
|
+
Requires-Dist: pytest-asyncio>=0.24.0; extra == 'dev'
|
|
32
|
+
Requires-Dist: pytest>=8.3.0; extra == 'dev'
|
|
33
|
+
Requires-Dist: ruff>=0.7.0; extra == 'dev'
|
|
34
|
+
Description-Content-Type: text/markdown
|
|
35
|
+
|
|
36
|
+
# Agent Hub
|
|
37
|
+
|
|
38
|
+
**A local-first, sandboxed goal runner that drives the AI agents, CLI tools, `SKILL.md` skills, and MCP servers you already have—with reviewable plans, human permission gates, durable checkpoints, and full audit trails.**
|
|
39
|
+
|
|
40
|
+

|
|
41
|
+
|
|
42
|
+
> **Want a full visual walkthrough?** See the **[End-to-End User Journey with Screenshots](docs/USER_JOURNEY.md)** covering every screen from Goal planning & approval to isolated Git worktree diffs, OS sandboxing, and interactive browser PTY terminals.
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
## Why Agent Hub?
|
|
47
|
+
|
|
48
|
+
When you build across multiple repositories, AI assets scatter quickly:
|
|
49
|
+
- Reusable skills (`SKILL.md`) live inside `.agents/skills/`, `.claude/skills/`, `skills/`, or standalone skill-pack repos.
|
|
50
|
+
- Subagents (`.claude/agents/*.md`, `.agents/agents/*.md`) and instructions (`AGENTS.md`, `CLAUDE.md`, `GEMINI.md`) get copy-pasted and drift out of sync.
|
|
51
|
+
- Standalone multi-agent CLI engines (security scanners, triage engines, code-repair harnesses) have to be invoked manually from different virtual environments and terminals.
|
|
52
|
+
|
|
53
|
+
**Agent Hub** unifies all of them in a single local web UI while keeping **your filesystem as the single source of truth** (zero cloud lock-in, zero secrets in SQLite).
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## Key Capabilities
|
|
58
|
+
|
|
59
|
+
| Area | What Agent Hub Does |
|
|
60
|
+
|---|---|
|
|
61
|
+
| **Multi-Format Discovery** | Scans any number of configured workspace roots plus global agent folders (`~/.agents`, `~/.claude`, `~/.gemini`). Auto-indexes Git repos, `SKILL.md` skills, Markdown subagents, `AGENTS.md`/`CLAUDE.md`/`GEMINI.md`, and CLI engine manifests while skipping `.git`, `.venv`, `node_modules`, build artifacts, and configurable ignore globs. |
|
|
62
|
+
| **Interactive Relationship Map** | Visual 3-column SVG dependency graph connecting **Schedules & Coding CLIs** → **Skills, Subagents & CLI Engines** → **Repositories**, showing ownership, symlink/copy sharing, scheduled runs, and click-to-trace inspection. |
|
|
63
|
+
| **Cross-Repo Sharing & Drift Sync** | Attach any skill or subagent from Repo A to Repo B (or globally) via **Symlink** (live sync), **Copy / Pin** (portable snapshot with SHA-256 drift detection and 1-click **Sync**), or **Ephemeral run-time attach** (zero repo mutation). |
|
|
64
|
+
| **New Repo Bootstrapping** | Guided wizard to initialize a new repository (`python-uv`, `node-ts`, `go`, `empty`) with `git init`, `AGENTS.md`, and pre-wired skills/subagents. |
|
|
65
|
+
| **Goal Orchestrator (ARTEX-Style Autonomy)** | Dedicated **Goals** tab for high-level objectives across all discovered Agents, CLI Engines, Skills, and MCP tools: a zero-tool **Strategist Planner** builds a reviewable Intent DAG with acceptance criteria and pauses for your permission (**Plan → Approve → Execute**), runs isolated sandboxed **Workers** + **Verifier** checks backed by SQLite **Dual-Graph Memory**, **Token/Time Budgets**, **Durable Auto-Resume**, **Workspace Knowledge Store**, **Saved Phase Checkpoints & Follow-Up Continuation**, and **`ModelPool` automatic 429/quota failover**. |
|
|
66
|
+
| **MCP Consumer & Producer** | Register external stdio or HTTP **MCP servers** (sandboxed via `bwrap` for stdio) so their tools join the Planner's capability pool, AND expose Agent Hub itself as an **MCP Server** (`POST /api/mcp` and `agent-hub mcp` stdio bridge) so Claude Code, `agy`, and Gemini CLI can delegate long-horizon goals directly to Agent Hub. |
|
|
67
|
+
| **Permission-Gated Capability Installer** | When a Goal requires a missing capability (e.g., **Web Search Agent**, **Research Analyst Subagent**, **Security Auditor Skill**, or a vetted CLI tool), the Planner asks explicit permission to install & register it before executing (with supply-chain typed confirmation for unvetted packages and isolated per-tool venvs). |
|
|
68
|
+
| **Unified Execution Engine** | Runs **Standalone CLI Engines** (auto-detected, configured via `agent-hub.yaml`, or added zero-YAML via **+ Register Local CLI**), **Custom Local CLIs**, and **Auto-detected Coding Agent CLIs** (`agy`, `gemini`, `claude`, `codex`, `opencode`) for any `skill`, `subagent`, `instruction` (`AGENTS.md`), or freeform prompt against any target repo. |
|
|
69
|
+
| **Run Any CLI as an Agent (Model-Agnostic)** | Toggle any CLI Engine or ad-hoc local binary (`ruff`, `pytest`, `eslint`, `trivy`, `repo-linter`) from **Direct CLI** to **Run as Agent (Goal-Driven)**: auto-probes `--help`, enforces strict single-CLI discrete `argv` (with optional companion CLI allowlist), and runs with **any available brain**—Anthropic, OpenAI, Gemini, OpenRouter, Ollama/OpenAI-compatible endpoints, or installed Coding CLIs—inside `Safe Sandbox`. |
|
|
70
|
+
| **Multi-Turn Context & User Input** | Captures each coding CLI's native conversation/session ID (`agy --conversation`, `claude --resume`, `gemini --resume`, with transcript context-carry fallback), pauses in `awaiting_input` when the agent asks questions or finishes a turn, and lets you reply inline while preserving full LLM context, isolated worktree state, and artifacts across turns. |
|
|
71
|
+
| **Git Worktree Isolation** | Mutating runs execute in isolated Git worktrees (`agent-hub/<run-id>`) with ephemeral skill staging excluded cleanly from diffs, a built-in unified diff viewer, and 1-click **Apply to Target Repo** or **Discard Worktree**. |
|
|
72
|
+
| **4-Tier OS & MicroVM Sandbox** | Test untrusted or new agents safely across Linux, macOS, containers, and MicroVMs with 4 security profiles (**Safe Sandbox**, **Air-Gapped**, **Monitored**, **Unrestricted**) and selectable backends: Linux `bwrap --unshare-net` + **cBPF `seccomp` syscall filter** + UDS allowlist proxy + **Synchronous FIFO+`inotify` Honeypot Canary `SIGKILL` traps** + **Zero-Key HTTP-to-HTTPS LLM Gateway** (real API keys never enter sandbox memory), **macOS Seatbelt (`sandbox-exec`)**, **Docker/Podman** containers, and **Tier-4 MicroVMs** (zero-sudo **rootless gVisor KVM Sentry**, **gVisor Systrap**, **Firecracker KVM**, **Kata Containers**, or **macOS Lima**, fail-closed if explicitly requested without VM assets). |
|
|
73
|
+
| **Security Lab, Quarantine, Playbooks & A/B Arena** | Dedicated **Security Lab** (`#/security`) featuring an **Agent Quarantine Lab** (hardened zero-hook Git clone + static supply-chain/prompt-injection/stealth-Unicode Trust Scorecard + 1-click **Safe Probe**), **Side-by-Side Multi-Agent A/B Arena** (compare 2–4 agents in parallel isolated worktrees with 1-click **Pick & Apply Diff**), **1-Click Security Playbooks & Ephemeral Git URL Audits** (clone → scan → Ed25519 signed report → wipe), **Slack/Discord/Webhook Security Alerts**, **Unified SARIF 2.1.0 Findings Hub** (deduplicated triage + 1-click **Fix & Verify** Goals), and a **22-item vetted Security Arsenal** (Semgrep, Gitleaks, Trivy, OSV-Scanner, Bandit, Checkov, pip-audit, Promptfoo, MCP/Skill Auditor, 6 Security Subagents & 7 Security Skills). |
|
|
74
|
+
| **OS Interactions & Data-Shared Provenance** | Every run captures kernel syscall telemetry (`strace`: processes, file reads/writes/deletes, chmod, socket connects) plus allowlist proxy egress into the **OS Interactions** tab, and builds a **Data Shared** provenance ledger showing exact prompts/SHA-256, RO/RW mounts, exposed vs. withheld host env vars, files read, mutations, artifacts, and outbound hosts—exportable as Markdown Audit Reports (`.md`) and JSON ledgers. |
|
|
75
|
+
| **Activity & Chat + Live Diagnostics + PTY** | Streams real-time `stream-json` events into a structured **Activity & Chat** timeline (collapsible tool calls, outputs, errors, token usage, cost) alongside a line-numbered, error-highlighted, filterable, downloadable **Raw Log** (`.log`) with Failure Diagnostic Banners—plus an embedded **`xterm.js` PTY** terminal for interactive TUIs. |
|
|
76
|
+
| **Cron Scheduler & OS Autostart** | Schedule any CLI engine, skill, or subagent on recurring 5-field cron schedules (`0 9 * * 1-5`, `*/15 * * * *`, `@daily`, `@weekly`) with Pause/Resume and **Run Now**, plus 1-command OS startup service installation (`systemd --user` on Linux / `launchd` on macOS). |
|
|
77
|
+
| **Local-First Security & Telemetry** | Loopback-only (`127.0.0.1`), `Host`/`Origin`/CSRF checks, strict path confinement, discrete `argv` execution (zero `sh -c`), mode-`0600` `.env` profiles (keys-only in UI, never persisted in SQLite), automatic log secret redaction, and optional **Langfuse** trace deep-linking. |
|
|
78
|
+
| **Unified Capability Library & Agent Bundles** | One searchable **Library** (`#/library`) unifying `SKILL.md` skills, subagents, CLI engines, and repo instructions (with category & scope filters plus `#/skills`, `#/agents`, `#/engines` deep-links). Compose any **Agent Brain + 1..N Skills + Sandbox Profile + Immutable Mandate** into 1-click reusable **Agent Bundles** (`#/bundles`, with starter presets and cron schedule binding). |
|
|
79
|
+
| **Human Attention Inbox & Immutable Mandates** | Top-level **Attention Inbox** (`#/inbox`) surfaces **only** decisions requiring human judgment (Mandate violations, Canary `SIGKILL`s, MCP Rug-Pull blocks, Critical/High SARIF alerts, Router Mandate Tickets, Goal/Install approval gates, multi-turn replies, and verified diffs ready to Apply/PR) while background workers run quietly. Every run and Goal Worker can carry a SHA-256 **Immutable Execution Mandate** compiled into kernel read-only mounts (`--ro-bind` / `EROFS` across all 4 sandbox tiers), inline write-glob guards, egress domain caps, post-turn compliance gates blocking `apply_worktree` on violations, and Ed25519 Signed Audit Bundles. |
|
|
80
|
+
| **Event Router, PR Subscriptions & MCP Rug-Pull Guard** | Always-on zero-tool **Event Router** (`#/router`) watches local Git commits, SARIF regressions, and inbound PR/CI events, silently suppresses noise, and emits SHA-256 Mandate Tickets; **Pass-Through PR Thread Subscriptions** route follow-up PR comments/CI failures directly to the owning worktree worker without waking the Router; and the **Runtime MCP Tool-Poisoning Guard** pins SHA-256 tool manifests and hard-blocks mutated schemas (`HTTP 403`) before `tools/call` executes. |
|
|
81
|
+
| **Policy-as-Code & Signed Audit Bundles** | Enforce declarative `~/.config/agent-hub/policy.yaml` rules at runtime (block `unrestricted` profile, forbidden egress domains, unvetted installs, adaptive auto-approve, and monthly USD caps) and export tamper-evident Ed25519-signed JSON Audit Bundles (`GET /api/runs/{id}/audit-bundle`, `GET /api/goals/{id}/audit-bundle`, `POST /api/audit-bundle/verify`). |
|
|
82
|
+
| **USD Cost, Local-Model Savings & 1-Click Worktree PRs** | Track actual/estimated USD spend and **dollars saved via local Ollama models** across repos, goals, and brains with CSV export (`GET /api/analytics/costs/export.csv`), offline Ed25519 license activation (`AHPRO-...`), and **1-Click Worktree → GitHub/GitLab Pull Requests** embedding an auto-generated Security & Provenance Scorecard. |
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
## Architecture
|
|
87
|
+
|
|
88
|
+
```mermaid
|
|
89
|
+
flowchart LR
|
|
90
|
+
UI["React + Vite + Tailwind + xterm.js SPA"] <-->|"HTTP / WebSocket (127.0.0.1)"| API["FastAPI Daemon (Python 3.12+)"]
|
|
91
|
+
API --> Scanner["Multi-Format Scanner & Targeted Watcher"]
|
|
92
|
+
API --> Linker["Cross-Repo Linker (Symlink / Copy / Drift / Bootstrap)"]
|
|
93
|
+
API --> Runner["Run Orchestrator (CLI Engines / Coding CLIs / Worktrees / PTY)"]
|
|
94
|
+
API --> DB["SQLite Rebuildable Index & Run Ledger"]
|
|
95
|
+
Scanner & Linker --> FS["Local Filesystem (Source of Truth)"]
|
|
96
|
+
Runner --> Redactor["Env Profiles & Secret Redactor"]
|
|
97
|
+
Runner -.->|"Session Trace URL"| Langfuse["Optional Local Langfuse"]
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
For full design decisions, data schemas, and API contracts, see **[docs/REQUIREMENTS.md](docs/REQUIREMENTS.md)**.
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
## Quickstart
|
|
105
|
+
|
|
106
|
+
### Option A: Zero-Node 1-Command Launch (`uvx` / `pipx` / Wheel)
|
|
107
|
+
|
|
108
|
+
Published wheels bundle the pre-built React UI inside `agent_hub/_web_dist/` — no Node.js required:
|
|
109
|
+
|
|
110
|
+
```bash
|
|
111
|
+
# Run directly with uvx (Python 3.12+)
|
|
112
|
+
uvx agent-hub-local serve --root /path/to/your/projects
|
|
113
|
+
|
|
114
|
+
# Or install globally with pipx / uv tool
|
|
115
|
+
uv tool install agent-hub-local
|
|
116
|
+
agent-hub doctor --root /path/to/your/projects
|
|
117
|
+
agent-hub serve --root /path/to/your/projects
|
|
118
|
+
# Open http://127.0.0.1:8765
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
### Option B: Docker (Loopback-Bound)
|
|
122
|
+
|
|
123
|
+
```bash
|
|
124
|
+
docker build -t agent-hub .
|
|
125
|
+
docker run --rm -p 127.0.0.1:8765:8765 \
|
|
126
|
+
-v /path/to/your/projects:/workspace \
|
|
127
|
+
-v agent-hub-data:/data \
|
|
128
|
+
agent-hub
|
|
129
|
+
# Open http://127.0.0.1:8765
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
### Option C: From Source (Development)
|
|
133
|
+
|
|
134
|
+
#### Prerequisites
|
|
135
|
+
- Python **3.12+** and [`uv`](https://docs.astral.sh/uv/)
|
|
136
|
+
- Node.js **20+** and `npm` (only needed when developing or building the frontend UI)
|
|
137
|
+
- `git`
|
|
138
|
+
|
|
139
|
+
```bash
|
|
140
|
+
git clone https://github.com/YeshwanthUdayshankar/agent-hub.git
|
|
141
|
+
cd agent-hub
|
|
142
|
+
|
|
143
|
+
# Install Python backend + dev tools
|
|
144
|
+
uv sync --extra dev
|
|
145
|
+
|
|
146
|
+
# Build the React/Vite UI (served directly by FastAPI)
|
|
147
|
+
cd web && npm install && npm run build && cd ..
|
|
148
|
+
|
|
149
|
+
# Verify environment, detected CLIs, and OS sandbox backend
|
|
150
|
+
uv run agent-hub doctor --root /path/to/your/projects
|
|
151
|
+
|
|
152
|
+
# Start the Control Plane UI
|
|
153
|
+
uv run agent-hub serve --root /path/to/your/projects
|
|
154
|
+
# Open http://127.0.0.1:8765
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
> **Building a self-contained wheel locally:** run `uv run python scripts/build_release.py` to build `web/dist`, bundle it into `dist/agent_hub_local-*.whl`, and verify the wheel archive.
|
|
158
|
+
>
|
|
159
|
+
> **Development mode (UI hot reload):** run FastAPI on `:8765` (`uv run agent-hub serve --root ...`) and `cd web && npm run dev` on `:5173`.
|
|
160
|
+
|
|
161
|
+
### Cross-Platform OS Sandbox Support
|
|
162
|
+
|
|
163
|
+
| Platform | Default `Safe Sandbox` / `Air-Gapped` Backend | Enforced Protections |
|
|
164
|
+
|---|---|---|
|
|
165
|
+
| **Linux** | **`bwrap` (Bubblewrap)** + `strace` | RO OS mounts, empty `--tmpfs $HOME`, `--unshare-net` + UDS domain-allowlist proxy, kernel syscall audit. |
|
|
166
|
+
| **macOS** | **`sandbox-exec` (Apple Seatbelt)** | Global `(deny file-write*)` outside worktree/artifacts/tmp, blocks `~/.ssh`/`~/.aws`/`~/.gnupg`/`Library/Keychains`/browsers, `(deny network*)` for Air-Gapped or loopback proxy lock for Safe Sandbox. |
|
|
167
|
+
| **Windows / Container Hosts** | **`docker` / `podman`** *(opt-in via `AGENT_HUB_SANDBOX_IMAGE=<image>`)* | `--read-only`, `--cap-drop=ALL`, `--security-opt=no-new-privileges`, `--network=none` (Air-Gapped) or allowlist proxy, scoped RO/RW volume binds. |
|
|
168
|
+
| **Fallback (Any OS)** | **`host-monitored`** | Isolated Git worktree, scrubbed environment, ephemeral `HOME`, loopback domain-allowlist proxy, and Data-Shared provenance ledger. |
|
|
169
|
+
|
|
170
|
+
---
|
|
171
|
+
|
|
172
|
+
## CLI Reference
|
|
173
|
+
|
|
174
|
+
| Command | Description |
|
|
175
|
+
|---|---|
|
|
176
|
+
| `agent-hub serve --root <dir>` | Start the web UI and API server on `127.0.0.1:8765`. Repeatable `--root`, plus `--registry-dir`, `--host`, `--port`, `--no-global`, `--no-watch`, `--config`. |
|
|
177
|
+
| `agent-hub scan --root <dir> [--json]` | Run a one-shot discovery scan and print a summary or full JSON inventory. |
|
|
178
|
+
| `agent-hub doctor --root <dir>` | Print config/data paths, auto-detected coding agent CLIs, Langfuse reachability, and OS startup service status. |
|
|
179
|
+
| `agent-hub service install --root <dir>` | Install and enable Agent Hub to start automatically on OS startup (`systemd --user` on Linux, `launchd` on macOS). |
|
|
180
|
+
| `agent-hub service status \| uninstall \| print` | Inspect service status, remove the autostart unit, or print the generated unit file without installing. |
|
|
181
|
+
|
|
182
|
+
### Running Automatically on OS Startup
|
|
183
|
+
|
|
184
|
+
To keep Agent Hub (and its built-in cron scheduler) running automatically whenever your machine boots:
|
|
185
|
+
|
|
186
|
+
```bash
|
|
187
|
+
# Linux (systemd --user) or macOS (launchd LaunchAgent)
|
|
188
|
+
uv run agent-hub service install --root /path/to/your/projects
|
|
189
|
+
|
|
190
|
+
# Verify it is enabled and running
|
|
191
|
+
uv run agent-hub service status
|
|
192
|
+
|
|
193
|
+
# Linux: optional — start at boot even before desktop/SSH login
|
|
194
|
+
sudo loginctl enable-linger "$USER"
|
|
195
|
+
|
|
196
|
+
# Remove autostart service
|
|
197
|
+
uv run agent-hub service uninstall
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
### Configuration File (`~/.config/agent-hub/config.yaml`)
|
|
201
|
+
|
|
202
|
+
All paths are config- or CLI-driven (zero hardcoded workspace paths):
|
|
203
|
+
|
|
204
|
+
```yaml
|
|
205
|
+
roots:
|
|
206
|
+
- /path/to/your/projects
|
|
207
|
+
include_global_dirs: true
|
|
208
|
+
ignore_globs:
|
|
209
|
+
- "**/bundles/**"
|
|
210
|
+
- "**/external/**"
|
|
211
|
+
host: 127.0.0.1
|
|
212
|
+
port: 8765
|
|
213
|
+
max_concurrent_runs: 4
|
|
214
|
+
langfuse_base_url: http://127.0.0.1:3000
|
|
215
|
+
watch_filesystem: true
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
*(Note on Linux `inotify`: Agent Hub watches only targeted repo/agent/skill directories rather than recursing into `.venv` or `node_modules`. If your host's `fs.inotify.max_user_watches` limit is already saturated by other tools, Agent Hub logs a warning and degrades gracefully—use the UI **Rescan** button or run `sudo sysctl -w fs.inotify.max_user_watches=524288`.)*
|
|
219
|
+
|
|
220
|
+
---
|
|
221
|
+
|
|
222
|
+
## Registering Standalone CLI Engines
|
|
223
|
+
|
|
224
|
+
Standalone CLI engines are discovered automatically **and** can be customized with manifests (highest precedence wins):
|
|
225
|
+
1. **Zero-config auto-detection (automatic on every scan):** Agent Hub inspects `pyproject.toml` (`[project.scripts]` / `[tool.poetry.scripts]`) and `package.json` (`"bin"`), probes `--help` safely to detect subcommands, auto-wires `--out {{run.artifact_dir}}` when supported, and automatically enables **Interactive PTY** mode for TUI subcommands.
|
|
226
|
+
2. **Repo-local override:** add `agent-hub.yaml` to the root of an engine repo for custom typed dropdowns/inputs.
|
|
227
|
+
3. **Central registry override (non-invasive):** drop `*.yaml` manifests into `~/.config/agent-hub/engines/` without modifying existing repos.
|
|
228
|
+
|
|
229
|
+
See **[docs/MANIFEST_SPEC.md](docs/MANIFEST_SPEC.md)** and ready-to-adapt examples in **[examples/engines/](examples/engines/)**:
|
|
230
|
+
- [generic-security-scanner.yaml](examples/engines/generic-security-scanner.yaml) — headless streaming security scanner with SARIF/Markdown/patch artifacts.
|
|
231
|
+
- [interactive-hitl-engine.yaml](examples/engines/interactive-hitl-engine.yaml) — multi-action triage engine pairing a streaming scan with an interactive `xterm.js` PTY human-in-the-loop review TUI.
|
|
232
|
+
|
|
233
|
+
---
|
|
234
|
+
|
|
235
|
+
## Secrets & Environment Profiles
|
|
236
|
+
|
|
237
|
+
Place mode-`0600` `.env` files inside `~/.config/agent-hub/env-profiles/<profile-name>.env`:
|
|
238
|
+
- The UI exposes only profile names and variable **keys** (never secret values).
|
|
239
|
+
- Secret values are **never** written to SQLite.
|
|
240
|
+
- All loaded secret values and common token formats (`sk-...`, `ghp_...`, `AKIA...`, `Bearer ...`) are scrubbed to `[REDACTED]` in both live WebSocket streams and persisted run logs.
|
|
241
|
+
|
|
242
|
+
---
|
|
243
|
+
|
|
244
|
+
## Testing & Verification
|
|
245
|
+
|
|
246
|
+
### Backend Unit & Integration Tests (pytest + ruff)
|
|
247
|
+
```bash
|
|
248
|
+
uv run ruff check src tests
|
|
249
|
+
uv run pytest -v
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
### Frontend Typecheck & Production Build
|
|
253
|
+
```bash
|
|
254
|
+
cd web && npm run build
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
### Automated End-to-End UI Tests (Headless Chrome via Playwright)
|
|
258
|
+
Runs all 18 end-to-end user journeys against an isolated temporary workspace (dashboard, repos, skills inline edit, cross-repo attach, search, new repo bootstrap, CLI engine stream + secret redaction + artifacts + worktree diff/apply/discard, interactive `xterm.js` PTY keyboard input, templates + cron scheduler CRUD + Run Now, interactive relationship map, settings + OS service status, multi-turn cross-repo skill session with native context resume & inline user input, failed run diagnostics, multi-folder setup, Safe Sandbox OS audit + Data Shared, CLI-as-Agent, Goal Orchestrator multi-phase continuation, and Permission-Gated Capability Install) and asserts **0 uncaught page errors, 0 console errors, and 0 failed HTTP requests**:
|
|
259
|
+
|
|
260
|
+
```bash
|
|
261
|
+
cd web
|
|
262
|
+
npm run test:ui
|
|
263
|
+
|
|
264
|
+
# Optionally regenerate docs/screenshots/:
|
|
265
|
+
CAPTURE_SCREENSHOTS_DIR=../docs/screenshots npm run test:ui
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
---
|
|
269
|
+
|
|
270
|
+
## Documentation Index
|
|
271
|
+
|
|
272
|
+
- **[docs/ARCHITECTURE_AND_CAPABILITIES.md](docs/ARCHITECTURE_AND_CAPABILITIES.md)** — Complete architecture diagram, module map, security invariants, and full API reference.
|
|
273
|
+
- **[docs/SUPER_AGENT_ARCHITECTURE.md](docs/SUPER_AGENT_ARCHITECTURE.md)** — Next-level Super-Agent design (DeepSeek Router–Worker synthesis, 5-layer agent vs. skill analysis, and 3-level evolution roadmap).
|
|
274
|
+
- **[docs/ROADMAP_AND_PENDING.md](docs/ROADMAP_AND_PENDING.md)** — v0.2.0 launch checklist, optional host/UI refinements, and deferred Team/Enterprise roadmap.
|
|
275
|
+
- **[docs/MONETIZATION_AND_SELF_HOSTING.md](docs/MONETIZATION_AND_SELF_HOSTING.md)** — Self-contained wheel/Docker release guide, offline Ed25519 licensing, checkout webhook setup, Policy-as-Code reference, and Signed Audit Bundle verification.
|
|
276
|
+
- **[docs/USER_JOURNEY.md](docs/USER_JOURNEY.md)** — Full visual walkthrough with screenshots of every UI flow.
|
|
277
|
+
- **[Dedicated Input & Output User Journeys (`docs/journeys/`)](docs/journeys/README.md):**
|
|
278
|
+
- [01 — Cross-Repo Multi-Turn Skill & Context Continuity](docs/journeys/01-cross-repo-multi-turn-skill.md)
|
|
279
|
+
- [02 — CLI Engine Parameters, Secret Redaction, Templates & Cron Schedules](docs/journeys/02-cli-engine-templates-and-schedules.md)
|
|
280
|
+
- [03 — Failed Run Diagnostics, Stderr Highlighting & Error Filtering](docs/journeys/03-failed-run-error-diagnostics.md)
|
|
281
|
+
- [04 — Cross-Repo Skill Sharing, Relationship Map & Interactive PTY](docs/journeys/04-cross-repo-sharing-and-interactive-pty.md)
|
|
282
|
+
- [05 — Zero-Trust Agent Quarantine Lab, Snippet Auditor & Safe Probe](docs/journeys/05-agent-quarantine-lab-and-safe-probe.md)
|
|
283
|
+
- [06 — Side-by-Side Multi-Agent A/B Arena](docs/journeys/06-multi-agent-ab-arena.md)
|
|
284
|
+
- [07 — 1-Click Security Playbooks, Ephemeral Git URL Audit & Webhook Alerts](docs/journeys/07-security-playbooks-ephemeral-audit-and-alerts.md)
|
|
285
|
+
- [08 — Unified SARIF 2.1.0 Findings Hub & 22-Item Security Arsenal](docs/journeys/08-sarif-findings-hub-and-security-arsenal.md)
|
|
286
|
+
- [09 — Goal Orchestrator, Formatted Report & Ed25519 Signed Audit](docs/journeys/09-goal-orchestrator-report-and-signed-audit.md)
|
|
287
|
+
- [10 — Control Plane Overview, Tier-4 MicroVM Run Modal & Policy-as-Code](docs/journeys/10-isolation-tiers-policy-as-code-and-control-plane.md)
|
|
288
|
+
- **[docs/REQUIREMENTS.md](docs/REQUIREMENTS.md)** — Complete functional, non-functional, security, and API specification.
|
|
289
|
+
- **[docs/MANIFEST_SPEC.md](docs/MANIFEST_SPEC.md)** — `agent-hub.yaml` schema and template variable reference.
|
|
290
|
+
|
|
291
|
+
## License
|
|
292
|
+
|
|
293
|
+
[MIT](LICENSE)
|