@mamdouh-aboammar/agentic-workflow 1.2.0

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.
Files changed (118) hide show
  1. package/.claude-plugin/plugin.json +10 -0
  2. package/.codex-plugin/plugin.json +13 -0
  3. package/.skills.json +19 -0
  4. package/AGENTS.md +1344 -0
  5. package/CLAUDE.md +178 -0
  6. package/GEMINI.md +102 -0
  7. package/LICENSE +21 -0
  8. package/README.md +350 -0
  9. package/SKILL.md +132 -0
  10. package/bin/agentic-hooks.sh +79 -0
  11. package/bin/cli.js +1060 -0
  12. package/core/__init__.py +52 -0
  13. package/core/ai_evaluator.py +117 -0
  14. package/core/autopilot_engine.py +368 -0
  15. package/core/clean_code_guard.py +188 -0
  16. package/core/engine_py/__init__.py +29 -0
  17. package/core/engine_py/agent_worker.py +136 -0
  18. package/core/engine_py/decider.py +150 -0
  19. package/core/engine_py/energy.py +45 -0
  20. package/core/engine_py/event_bus.py +63 -0
  21. package/core/engine_py/executor.py +186 -0
  22. package/core/engine_py/models.py +193 -0
  23. package/core/engine_py/queue.py +314 -0
  24. package/core/engine_py/runner.py +116 -0
  25. package/core/engine_py/system_workers.py +70 -0
  26. package/core/engine_py/toon_adapter.py +586 -0
  27. package/core/engine_py/verification_controller.py +208 -0
  28. package/core/engine_py/worker.py +167 -0
  29. package/core/engine_spec/event_schema.json +65 -0
  30. package/core/engine_spec/example_workflow.yaml +73 -0
  31. package/core/engine_spec/workflow_schema.json +127 -0
  32. package/core/hooks/__init__.py +29 -0
  33. package/core/hooks/adapters/__init__.py +25 -0
  34. package/core/hooks/adapters/claude_adapter.py +83 -0
  35. package/core/hooks/adapters/cli_agent_adapter.py +82 -0
  36. package/core/hooks/adapters/codex_adapter.py +78 -0
  37. package/core/hooks/adapters/cursor_adapter.py +73 -0
  38. package/core/hooks/adapters/gemini_adapter.py +93 -0
  39. package/core/hooks/adapters/homebrew_adapter.py +69 -0
  40. package/core/hooks/adapters/mcp_proxy.py +133 -0
  41. package/core/hooks/adapters/shell_adapter.py +65 -0
  42. package/core/hooks/dispatcher.py +118 -0
  43. package/core/hooks/policy_engine.py +375 -0
  44. package/core/hooks/session_end.py +141 -0
  45. package/core/hooks/types.py +147 -0
  46. package/core/integrations/__init__.py +28 -0
  47. package/core/integrations/installer.py +225 -0
  48. package/core/integrations/lifecycle_director.py +175 -0
  49. package/core/integrations/registry.py +105 -0
  50. package/core/multi_agent_system.py +164 -0
  51. package/core/skills_indexer.py +742 -0
  52. package/core/system/__init__.py +25 -0
  53. package/core/system/announcements.py +72 -0
  54. package/core/system/dependencies.py +69 -0
  55. package/core/system/doctor.py +171 -0
  56. package/core/system/health.py +144 -0
  57. package/core/system/installer.py +137 -0
  58. package/core/system/notifications.py +97 -0
  59. package/core/system/refresher.py +110 -0
  60. package/core/system/updater.py +167 -0
  61. package/core/system/version_tracker.py +65 -0
  62. package/docs/architecture_plan.md +7 -0
  63. package/docs/guides/failure-recovery.md +714 -0
  64. package/docs/implementation_summary.md +10 -0
  65. package/docs/protocols/autopilot-execution.md +148 -0
  66. package/docs/protocols/code-change-protocol.md +49 -0
  67. package/docs/protocols/context-preservation-detail.md +114 -0
  68. package/docs/protocols/quality-gates.md +110 -0
  69. package/docs/protocols/ulw-mode.md +60 -0
  70. package/docs/research_findings.md +10 -0
  71. package/docs/solutions/autonomous-autopilot-engine-architecture.md +38 -0
  72. package/install.sh +111 -0
  73. package/marketplace.json +37 -0
  74. package/package.json +81 -0
  75. package/skills/agentic-workflow/SKILL.md +132 -0
  76. package/skills/agentic-workflow/skill-spec.json +100 -0
  77. package/soul.md +445 -0
  78. package/src/engine_ts/decider.ts +186 -0
  79. package/src/engine_ts/event-bus.ts +57 -0
  80. package/src/engine_ts/executor.ts +262 -0
  81. package/src/engine_ts/index.ts +12 -0
  82. package/src/engine_ts/queue.ts +93 -0
  83. package/src/engine_ts/runner.ts +108 -0
  84. package/src/engine_ts/skills-indexer.ts +264 -0
  85. package/src/engine_ts/toon-adapter.ts +91 -0
  86. package/src/engine_ts/types.ts +134 -0
  87. package/src/engine_ts/verification-controller.ts +204 -0
  88. package/src/engine_ts/worker.ts +280 -0
  89. package/src/hooks/adapters/claude-adapter.ts +54 -0
  90. package/src/hooks/adapters/cli-agent-adapter.ts +46 -0
  91. package/src/hooks/adapters/codex-adapter.ts +69 -0
  92. package/src/hooks/adapters/cursor-adapter.ts +60 -0
  93. package/src/hooks/adapters/gemini-adapter.ts +71 -0
  94. package/src/hooks/adapters/homebrew-adapter.ts +36 -0
  95. package/src/hooks/adapters/mcp-proxy.ts +66 -0
  96. package/src/hooks/adapters/shell-adapter.ts +42 -0
  97. package/src/hooks/dispatcher.ts +113 -0
  98. package/src/hooks/index.ts +16 -0
  99. package/src/hooks/policy-engine.ts +376 -0
  100. package/src/hooks/session-end.ts +125 -0
  101. package/src/hooks/types.ts +61 -0
  102. package/src/index.d.ts +34 -0
  103. package/src/index.ts +23 -0
  104. package/src/integrations/index.ts +7 -0
  105. package/src/integrations/installer.ts +208 -0
  106. package/src/integrations/lifecycle-director.ts +139 -0
  107. package/src/integrations/registry.ts +82 -0
  108. package/src/system/announcements.ts +143 -0
  109. package/src/system/dependencies.ts +176 -0
  110. package/src/system/doctor.ts +374 -0
  111. package/src/system/health.ts +270 -0
  112. package/src/system/index.ts +14 -0
  113. package/src/system/installer.ts +262 -0
  114. package/src/system/notifications.ts +180 -0
  115. package/src/system/refresher.ts +207 -0
  116. package/src/system/types.ts +268 -0
  117. package/src/system/updater.ts +219 -0
  118. package/src/system/version-tracker.ts +137 -0
package/install.sh ADDED
@@ -0,0 +1,111 @@
1
+ #!/usr/bin/env bash
2
+ # AgenticWorkflow Universal Cross-Platform Multi-Agent & Host Installer
3
+ # Supports local execution or piped curl execution:
4
+ # curl -fsSL https://raw.githubusercontent.com/imMamdouhaboammar/agentic-workflow/main/install.sh | bash
5
+
6
+ set -e
7
+
8
+ TARGET_NAME="agentic-workflow"
9
+ REPO_URL="https://github.com/imMamdouhaboammar/agentic-workflow.git"
10
+
11
+ # Detect if executing via pipe or local script file
12
+ if [ -n "${BASH_SOURCE[0]}" ] && [ -f "${BASH_SOURCE[0]}" ]; then
13
+ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
14
+ else
15
+ # Remote curl execution: Clone into ~/.agentic-workflow
16
+ INSTALL_BASE="$HOME/.agentic-workflow"
17
+ echo "📥 Fetching latest AgenticWorkflow from ${REPO_URL}..."
18
+ if [ -d "$INSTALL_BASE/.git" ]; then
19
+ git -C "$INSTALL_BASE" pull --quiet
20
+ else
21
+ rm -rf "$INSTALL_BASE"
22
+ git clone --depth 1 "$REPO_URL" "$INSTALL_BASE" --quiet
23
+ fi
24
+ SCRIPT_DIR="$INSTALL_BASE"
25
+ fi
26
+
27
+ echo "================================================================="
28
+ echo "⚡ Installing AgenticWorkflow across AI Agent Frameworks & Hosts"
29
+ echo "================================================================="
30
+
31
+ # 1. Claude Code
32
+ if [ -d "$HOME/.claude" ] || command -v claude >/dev/null 2>&1; then
33
+ mkdir -p "$HOME/.claude/skills"
34
+ rm -rf "$HOME/.claude/skills/${TARGET_NAME}"
35
+ cp -r "$SCRIPT_DIR" "$HOME/.claude/skills/${TARGET_NAME}"
36
+ echo " ✅ Installed for Claude Code -> $HOME/.claude/skills/${TARGET_NAME}"
37
+ fi
38
+
39
+ # 2. Antigravity / Gemini CLI
40
+ if [ -d "$HOME/.gemini" ]; then
41
+ mkdir -p "$HOME/.gemini/config/skills"
42
+ rm -rf "$HOME/.gemini/config/skills/${TARGET_NAME}"
43
+ cp -r "$SCRIPT_DIR" "$HOME/.gemini/config/skills/${TARGET_NAME}"
44
+ echo " ✅ Installed for Antigravity / Gemini CLI -> $HOME/.gemini/config/skills/${TARGET_NAME}"
45
+ fi
46
+
47
+ # 3. Cursor IDE
48
+ if [ -d "$HOME/.cursor" ] || [ -d "$HOME/Library/Application Support/Cursor" ]; then
49
+ mkdir -p "$HOME/.cursor/skills"
50
+ rm -rf "$HOME/.cursor/skills/${TARGET_NAME}"
51
+ cp -r "$SCRIPT_DIR" "$HOME/.cursor/skills/${TARGET_NAME}"
52
+ echo " ✅ Installed for Cursor -> $HOME/.cursor/skills/${TARGET_NAME}"
53
+ fi
54
+
55
+ # 4. Codex / OpenCode
56
+ if [ -d "$HOME/.codex" ]; then
57
+ mkdir -p "$HOME/.codex/skills"
58
+ rm -rf "$HOME/.codex/skills/${TARGET_NAME}"
59
+ cp -r "$SCRIPT_DIR" "$HOME/.codex/skills/${TARGET_NAME}"
60
+ echo " ✅ Installed for Codex / OpenCode -> $HOME/.codex/skills/${TARGET_NAME}"
61
+ fi
62
+
63
+ # 5. Universal Agent Kernel (~/.agents/skills)
64
+ mkdir -p "$HOME/.agents/skills"
65
+ rm -rf "$HOME/.agents/skills/${TARGET_NAME}"
66
+ cp -r "$SCRIPT_DIR" "$HOME/.agents/skills/${TARGET_NAME}"
67
+ echo " ✅ Installed for Universal Agent Kernel -> $HOME/.agents/skills/${TARGET_NAME}"
68
+
69
+ # 6. Global CLI Binary Symlink
70
+ BIN_DIR="$HOME/.local/bin"
71
+ mkdir -p "$BIN_DIR"
72
+ CLI_TARGET="$SCRIPT_DIR/bin/cli.js"
73
+ chmod +x "$CLI_TARGET"
74
+
75
+ ln -sf "$CLI_TARGET" "$BIN_DIR/${TARGET_NAME}"
76
+ echo " ✅ Linked CLI executable -> $BIN_DIR/${TARGET_NAME}"
77
+
78
+ # Also attempt /usr/local/bin if writable without sudo
79
+ if [ -w "/usr/local/bin" ]; then
80
+ ln -sf "$CLI_TARGET" "/usr/local/bin/${TARGET_NAME}"
81
+ echo " ✅ Linked CLI executable -> /usr/local/bin/${TARGET_NAME}"
82
+ fi
83
+
84
+ # 7. Provision Supportive Tools & Verify System Health
85
+ echo ""
86
+ echo "⚡ Provisioning supportive tools & frameworks (Ponytail, TOON, Fable, Caveman)..."
87
+ if command -v python3 >/dev/null 2>&1; then
88
+ python3 -c "
89
+ import sys
90
+ sys.path.insert(0, '${SCRIPT_DIR}')
91
+ try:
92
+ from core.integrations import IntegrationInstaller
93
+ IntegrationInstaller('${SCRIPT_DIR}').provision_all()
94
+ except Exception as e:
95
+ print(f'Note: Supportive tools sync notice: {e}')
96
+ " || true
97
+ fi
98
+
99
+ # 8. Run Doctor Diagnostic Check
100
+ if command -v bun >/dev/null 2>&1; then
101
+ echo ""
102
+ echo "🩺 Verifying system health and toolchain invariants..."
103
+ bun "$CLI_TARGET" doctor || true
104
+ fi
105
+
106
+ echo ""
107
+ echo "================================================================="
108
+ echo "🎉 AgenticWorkflow successfully installed and ready everywhere!"
109
+ echo " Run 'agentic-workflow doctor' or 'agentic-workflow health'"
110
+ echo "================================================================="
111
+
@@ -0,0 +1,37 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/claude-plugin-manifest.json",
3
+ "name": "agentic-workflow",
4
+ "displayName": "Agentic Workflow",
5
+ "version": "1.2.0",
6
+ "description": "Pluripotent stem-cell framework and universal agentic toolchain for autonomous workflows",
7
+ "author": {
8
+ "name": "Mamdouh Aboammar"
9
+ },
10
+ "homepage": "https://skills.sh/agentic-workflow",
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/imMamdouhaboammar/agentic-workflow.git"
14
+ },
15
+ "license": "MIT",
16
+ "categories": [
17
+ "automation",
18
+ "developer-tools",
19
+ "agent-tools",
20
+ "orchestration",
21
+ "skill-engine"
22
+ ],
23
+ "compatibility": {
24
+ "claudeCode": ">=1.0.0",
25
+ "claudeDesktop": ">=1.0.0",
26
+ "cursor": ">=0.40.0",
27
+ "codex": ">=0.1.0",
28
+ "chatgpt": ">=1.0.0",
29
+ "opencode": ">=1.0.0",
30
+ "antigravity": ">=1.0.0",
31
+ "geminiCli": ">=1.0.0"
32
+ },
33
+ "entrypoint": "SKILL.md",
34
+ "bin": {
35
+ "agentic-workflow": "./bin/cli.js"
36
+ }
37
+ }
package/package.json ADDED
@@ -0,0 +1,81 @@
1
+ {
2
+ "name": "@mamdouh-aboammar/agentic-workflow",
3
+ "version": "1.2.0",
4
+ "publishConfig": {
5
+ "access": "public"
6
+ },
7
+ "description": "Pluripotent stem-cell framework and universal agentic toolchain for autonomous workflows",
8
+ "type": "module",
9
+ "main": "bin/cli.js",
10
+ "module": "src/index.ts",
11
+ "types": "src/index.d.ts",
12
+ "bin": {
13
+ "agentic-workflow": "bin/cli.js"
14
+ },
15
+ "exports": {
16
+ ".": {
17
+ "types": "./src/index.d.ts",
18
+ "import": "./src/index.ts",
19
+ "default": "./bin/cli.js"
20
+ },
21
+ "./engine": "./src/engine_ts/runner.ts",
22
+ "./hooks": "./src/hooks/dispatcher.ts",
23
+ "./integrations": "./src/integrations/index.ts",
24
+ "./toon": "./src/engine_ts/toon-adapter.ts"
25
+ },
26
+ "repository": {
27
+ "type": "git",
28
+ "url": "git+https://github.com/imMamdouhaboammar/agentic-workflow.git"
29
+ },
30
+ "homepage": "https://github.com/imMamdouhaboammar/agentic-workflow#readme",
31
+ "bugs": {
32
+ "url": "https://github.com/imMamdouhaboammar/agentic-workflow/issues"
33
+ },
34
+ "files": [
35
+ "bin",
36
+ "core",
37
+ "src",
38
+ "docs",
39
+ "skills",
40
+ ".codex-plugin",
41
+ ".claude-plugin",
42
+ "SKILL.md",
43
+ "AGENTS.md",
44
+ "CLAUDE.md",
45
+ "GEMINI.md",
46
+ "soul.md",
47
+ "marketplace.json",
48
+ ".skills.json",
49
+ "install.sh"
50
+ ],
51
+ "scripts": {
52
+ "start": "bun bin/cli.js",
53
+ "test": "bun bin/cli.js test",
54
+ "validate": "bun bin/cli.js validate",
55
+ "status": "bun bin/cli.js status",
56
+ "prepack": "find . -name '__pycache__' -type d -prune -exec rm -rf {} + 2>/dev/null || true"
57
+ },
58
+ "keywords": [
59
+ "agentic-workflow",
60
+ "agent-skill",
61
+ "skills-sh",
62
+ "claude-code",
63
+ "antigravity",
64
+ "gemini-cli",
65
+ "cursor",
66
+ "codex",
67
+ "opencode",
68
+ "workflow-automation",
69
+ "multi-agent-systems",
70
+ "bun"
71
+ ],
72
+ "author": "Mamdouh Aboammar",
73
+ "license": "MIT",
74
+ "engines": {
75
+ "bun": ">=1.0.0",
76
+ "node": ">=18.0.0"
77
+ },
78
+ "dependencies": {
79
+ "@toon-format/toon": "^4.1.1"
80
+ }
81
+ }
@@ -0,0 +1,132 @@
1
+ ---
2
+ name: agentic-workflow
3
+ description: >
4
+ Pluripotent stem-cell framework and universal agentic toolchain for autonomous
5
+ workflows. Use when designing, building, orchestrating, validating, or optimizing
6
+ complex multi-step AI agent workflows across Research, Planning, and Implementation —
7
+ even if the user says "build an autonomous pipeline", "design agent workflow",
8
+ "execute in autopilot", "run ulw mode", or "setup quality gates". Do NOT use for
9
+ simple single-file one-off edits without workflow structure.
10
+ ---
11
+
12
+ # AgenticWorkflow: Universal Agentic Skill & Execution Toolchain
13
+
14
+ A pluripotent stem-cell framework and multi-agent execution engine that turns complex tasks into deterministic, self-verifying autonomous workflows.
15
+
16
+ ## Execution Invariant
17
+
18
+ $$\text{Intent} \xrightarrow{\text{Research}} \text{Plan (SOT state.yaml)} \xrightarrow{\text{Implementation}} \text{4-Layer Quality Gates} \xrightarrow{\text{pACS Delta}} \text{Verified Deliverable}$$
19
+
20
+ ---
21
+
22
+ ## ⚡ Dynamic Mode Router
23
+
24
+ Detect the desired mode from context or explicit flags:
25
+
26
+ | Mode | Trigger Phrases | Core Execution Flow |
27
+ |---|---|---|
28
+ | **1. DESIGN** | "design workflow", "new pipeline", "workflow.md" | Research → Planning → Implementation 3-stage blueprint generation |
29
+ | **2. EXECUTE** | "run workflow", "execute pipeline", "start step" | SOT state-machine driver with step-by-step deliverable generation |
30
+ | **3. AUTOPILOT**| "autopilot", "fully automated", "hands-off" | Auto-approve `(human)` checkpoints with decision logs; enforce safety hooks |
31
+ | **4. ULW** | "ulw", "ultrawork", "maximum rigor" | 3 Intensifiers: Sisyphus Persistence, Mandatory Decomposition, Retry Escalation |
32
+ | **5. VERIFY** | "verify step", "quality gates", "run pacs" | L0 Anti-Skip → L1 Verification → L1.5 pACS → L2 Adversarial Review |
33
+ | **6. OPTIMIZE**| "optimize workflow", "reduce cycle time", "streamline" | Lean bottleneck analysis, automation scoring, cycle time compression |
34
+
35
+ ---
36
+
37
+ ## 3 Absolute Criteria (Constitutional Canon)
38
+
39
+ Every workflow, tool, and subagent created or governed by this skill strictly inherits the 3 Absolute Criteria:
40
+
41
+ 1. **Absolute Criterion 1: Quality of the Final Deliverable**
42
+ > Speed, token cost, workload, and length limits are completely ignored. The sole criterion for every decision is the **quality of the final deliverable**.
43
+ 2. **Absolute Criterion 2: Single-File SOT + Hierarchical Memory**
44
+ > All shared state is concentrated in a single file (`state.yaml`). SOT write permission belongs exclusively to the Orchestrator / Team Lead. Parallel agents never mutate shared files simultaneously.
45
+ 3. **Absolute Criterion 3: Code Change Protocol (CCP)**
46
+ > Before writing, modifying, adding, or deleting code, internally perform: Step 1 (Understand Intent) → Step 2 (Ripple Effect Analysis) → Step 3 (Change Plan). Governed by Coding Anchor Points (CAP-1~4).
47
+
48
+ ---
49
+
50
+ ## 4-Layer Quality Assurance Stack
51
+
52
+ ```mermaid
53
+ flowchart TD
54
+ StepStart["Step Execution"] --> L0["L0: Anti-Skip Physical Guard (File exists & >= 100 bytes)"]
55
+ L0 -->|PASS| L1["L1: Verification Gate (100% functional goal achievement)"]
56
+ L0 -->|FAIL| Diag["Abductive Diagnosis"]
57
+ L1 -->|PASS| L15["L1.5: pACS Self-Rating (F/C/L Pre-mortem scoring)"]
58
+ L1 -->|FAIL| Diag
59
+ L15 -->|RED: <50| Diag
60
+ L15 -->|GREEN / YELLOW| L2["L2: Adversarial Review (@reviewer + @fact-checker)"]
61
+ L2 -->|PASS| SOT["Advance SOT (current_step + 1)"]
62
+ L2 -->|FAIL| Diag
63
+ Diag --> Retry["Retry with Alternative Hypothesis (Max 3)"]
64
+ ```
65
+
66
+ 1. **L0 Anti-Skip Guard**: Deterministically verifies deliverable exists on disk and is non-empty (`MIN_OUTPUT_SIZE >= 100 bytes`).
67
+ 2. **L1 Verification Gate**: Semantic verification that all acceptance criteria are 100% achieved.
68
+ 3. **L1.5 pACS (Predicted Agent Confidence Score)**: Pre-mortem evaluation across Faithfulness, Completeness, Logic. $pACS = \min(F, C, L)$.
69
+ - `GREEN (>= 70)`: Auto-advance.
70
+ - `YELLOW (50 - 69)`: Flag weak dimension in Decision Log and proceed.
71
+ - `RED (< 50)`: Halt and trigger rework.
72
+ 4. **L2 Adversarial Review**: Independent Generator-Critic evaluation by `@reviewer` and `@fact-checker`.
73
+
74
+ ---
75
+
76
+ ## Autonomous Self-Fueling Engine & Circuit Breaker
77
+
78
+ The system operates as an end-to-end autonomous engine with built-in energy management:
79
+ 1. **Self-Fueling & Energy Loop**: Dynamic token and context headroom monitoring with automatic RLM state compaction and refueling checkpoints before context exhaustion.
80
+ 2. **Fable Circuit Breaker**: State transitions `CLOSED` → `OPEN` → `HALF_OPEN`. Automatically halts speculative thrashing when consecutive failure streak $\ge 2$, isolates root causes via Abductive Diagnosis (`diagnose_context.py`), and executes structured recovery.
81
+ 3. **Clean Code Guard**: Automated AST guard pass checking the 24 Clean Code imperatives (small functions, intent-revealing names, maximum 4 parameters, no swallowed exceptions, no fake success mocks).
82
+ 4. **AI Engineering Evaluation**: Integrated four-fifths disparate impact testing ($\ge 0.80$), PSI distribution drift monitoring, and adversarial prompt-injection sanitization.
83
+ 5. **OmniSkill Dynamic Intent Routing**: Decomposes complex natural language intent into an optimal multi-step DAG across Research, Planning, Implementation, and Verification.
84
+
85
+ ---
86
+
87
+ ## CLI & Toolchain Integration
88
+
89
+ ```bash
90
+ # Launch autonomous end-to-end autopilot workflow with self-fueling & energy management
91
+ agentic-workflow autopilot --title "Production Pipeline" --goal "Autonomous Delivery"
92
+
93
+ # Run Clean Code Guard audit pass (SOLID, 24 Imperatives, AI failure modes)
94
+ agentic-workflow guard [directory]
95
+
96
+ # Execute AI Engineer fairness, drift, and prompt-injection evaluation gates
97
+ agentic-workflow eval
98
+
99
+ # Query multi-agent observable trace logs and spans
100
+ agentic-workflow traces
101
+
102
+ # Run OmniSkill dynamic intent routing and multi-host validation
103
+ agentic-workflow omni-skill route "build an autonomous pipeline"
104
+ agentic-workflow omni-skill validate
105
+
106
+ # Check live workflow dashboard and observability metrics
107
+ agentic-workflow status
108
+
109
+ # Run full automated test suite (safety, guard, MAS, evaluator)
110
+ agentic-workflow test
111
+ ```
112
+
113
+ ---
114
+
115
+ ## Universal Multi-Agent & Multi-Host Distribution
116
+
117
+ Install and use AgenticWorkflow instantly across any platform or AI harness:
118
+
119
+ ```bash
120
+ # Skills.sh / Vercel AI (Universal Agent Discovery)
121
+ npx skills add imMamdouhaboammar/agentic-workflow
122
+
123
+ # Zero-Install CLI (Bun & Node/npx)
124
+ bunx agentic-workflow --help
125
+ npx agentic-workflow --help
126
+
127
+ # Python Environment (pip / PyPI)
128
+ pip install agentic-workflow
129
+
130
+ # Universal Multi-Agent Installer (Claude, Gemini, Cursor, Codex, OpenCode)
131
+ curl -fsSL https://raw.githubusercontent.com/imMamdouhaboammar/agentic-workflow/main/install.sh | bash
132
+ ```
@@ -0,0 +1,100 @@
1
+ {
2
+ "name": "agentic-workflow",
3
+ "purpose": "Autonomous design, orchestration, validation, and execution of multi-step AI agent workflows across Research, Planning, and Implementation",
4
+ "baseline_failure": "Without guidance, AI agents produce incomplete plans, skip physical deliverable creation, mutate shared state concurrently, perform untested speculative edits, and fail to enforce deterministic quality gates across heterogeneous hosts",
5
+ "triggers": {
6
+ "positive": [
7
+ "build an autonomous pipeline",
8
+ "design agent workflow",
9
+ "execute in autopilot",
10
+ "run ulw mode",
11
+ "setup quality gates",
12
+ "run workflow",
13
+ "execute pipeline",
14
+ "start step"
15
+ ],
16
+ "negative": [
17
+ "format this json file",
18
+ "tell me a joke",
19
+ "write a simple one-line bash script",
20
+ "fix this single typo in README"
21
+ ]
22
+ },
23
+ "outputs": [
24
+ "SOT state.yaml with step-by-step progress",
25
+ "Stage deliverables verified on disk (L0-L2 quality gates)",
26
+ "pACS self-confidence delta evaluation log",
27
+ "Audit trace records in .traces and ledger"
28
+ ],
29
+ "invariants": [
30
+ "Absolute Criterion 1: Quality of the final deliverable strictly overrides speed and token costs",
31
+ "Absolute Criterion 2: Single-file SOT (state.yaml) with single-writer permission model",
32
+ "Absolute Criterion 3: Code Change Protocol (CCP) with 4 Coding Anchor Points (CAP-1~4)",
33
+ "Zero unexecuted assertions or fake mock approvals"
34
+ ],
35
+ "workflow": [
36
+ {
37
+ "action": "Research & intelligence gathering with domain expertise delegation",
38
+ "why": "Prevents building upon flawed or noisy requirements",
39
+ "freedom": "medium"
40
+ },
41
+ {
42
+ "action": "Architecture and verifiable plan formulation in SOT state.yaml",
43
+ "why": "Prevents architectural divergence and state desynchronization",
44
+ "freedom": "low"
45
+ },
46
+ {
47
+ "action": "Production implementation with surgical diffs and circuit breaker monitoring",
48
+ "why": "Prevents speculative thrashing and scope bloat",
49
+ "freedom": "low"
50
+ },
51
+ {
52
+ "action": "4-layer quality gate verification (L0 Anti-Skip, L1 Semantic Gate, L1.5 pACS, L2 Adversarial Review)",
53
+ "why": "Guarantees 100% functional goal achievement and deliverable integrity",
54
+ "freedom": "low"
55
+ }
56
+ ],
57
+ "tools": [
58
+ "read",
59
+ "write",
60
+ "patch",
61
+ "search",
62
+ "grep",
63
+ "shell",
64
+ "python"
65
+ ],
66
+ "resources": [
67
+ "state.yaml",
68
+ "core/autopilot_engine.py",
69
+ "core/engine_py/runner.py",
70
+ "src/engine_ts/runner.ts"
71
+ ],
72
+ "host_targets": [
73
+ "agent-skills",
74
+ "claude-code",
75
+ "codex",
76
+ "chatgpt",
77
+ "antigravity",
78
+ "cursor"
79
+ ],
80
+ "evals": [
81
+ {
82
+ "name": "autopilot-pipeline-generation",
83
+ "prompt": "Design and execute an autonomous 3-stage pipeline for user onboarding",
84
+ "should_trigger": true,
85
+ "expected": [
86
+ "state.yaml initialized with 3 stages",
87
+ "L0 anti-skip verification passes for all deliverables",
88
+ "pACS score >= 70 recorded"
89
+ ]
90
+ },
91
+ {
92
+ "name": "negative-simple-edit",
93
+ "prompt": "Fix a spelling error in line 4 of index.html",
94
+ "should_trigger": false,
95
+ "expected": [
96
+ "Performs direct one-off edit without launching multi-agent workflow pipeline"
97
+ ]
98
+ }
99
+ ]
100
+ }