Skip to main content

⚡ AgenticWorkflow ⚡

Pluripotent Stem-Cell Framework & Universal Agentic Toolchain

Deterministic Quality Gates • Multi-Engine Autopilot • Single-File SOT • TOON v4.1 Density

License: MIT Bun Python TypeScript npm PyPI Skills.sh Claude Code Cursor CI

QuickstartAgent PromptWhy It ExistsArchitectureSDK UsageCLI ReferenceSupportive ToolsLicense


🚀 Universal Installation & Quickstart

AgenticWorkflow is packaged and distributable across every major package registry, AI harness, and container platform:

1. 🤖 One-Click Agent Self-Install & Init Prompt

Paste this prompt directly into your AI coding agent (Claude Code, Antigravity / Gemini CLI, Cursor, Codex, OpenCode, or Windsurf) to let it autonomously install, configure, initialize, and verify AgenticWorkflow in one shot:

👉 Click to expand the Smart Agent Prompts (Master Prompt & Quick-Fire)

[!TIP] Copy & Paste into your Agent Chat:

You are acting as an autonomous DevOps & Systems Integration Agent. 
Your objective is to install, configure, initialize, and verify the `agentic-workflow` framework in this workspace in a single uninterrupted execution loop.

Execute the following 4 phases autonomously:

### Phase 1: Universal Installation
1. Detect available runtimes on the system (`python3`, `bun`, `npm`, `curl`, `git`).
2. Run the universal one-line installer:
   ```bash
   curl -fsSL https://raw.githubusercontent.com/imMamdouhaboammar/agentic-workflow/main/install.sh | bash
   ```
   *(Fallback if offline or in a local clone: run `./install.sh` or `bun add -g agentic-workflow` / `npm install -g agentic-workflow`)*.
3. Ensure `~/.local/bin` is in `$PATH` so the `agentic-workflow` CLI binary is immediately executable.

### Phase 2: Host & Workspace Configuration
1. Detect the current agent harness and verify registration in the appropriate skill directories:
   - Claude Code: `~/.claude/skills/agentic-workflow`
   - Gemini CLI / Antigravity: `~/.gemini/config/skills/agentic-workflow`
   - Cursor: `~/.cursor/skills/agentic-workflow`
   - Codex / OpenCode: `~/.codex/skills/agentic-workflow`
   - Universal Agent Kernel: `~/.agents/skills/agentic-workflow`
2. If this workspace lacks an `AGENTS.md` directive, link or import the AgenticWorkflow constitution (`AGENTS.md` and `GEMINI.md` / `CLAUDE.md`) so all subagents inherit:
   - Absolute Criterion 1: Deliverable Quality over speed/token cost.
   - Absolute Criterion 2: Single-File SOT (`state.yaml`) with single-writer lock.
   - Absolute Criterion 3: Code Change Protocol (CCP: Understand Intent → Ripple Effect Analysis → Step Plan).
   - 4-Layer Quality Assurance: L0 Anti-Skip → L1 Verification → L1.5 pACS Pre-mortem scoring → L2 Adversarial Review.
3. Provision supportive tools by running:
   ```bash
   agentic-workflow integrations install
   ```
   Confirm integration of Ponytail (YAGNI & surgical diffs), TOON v4.1 (token compression), Fable (circuit breaker), and Caveman (concise mode).

### Phase 3: Initialization (`init`)
1. Run the native initialization command:
   ```bash
   agentic-workflow init
   ```
2. Confirm that:
   - Runtime directories (`context-snapshots/`, `autopilot-logs/`, `diagnosis-logs/`) are generated.
   - Core hook scripts in `.claude/hooks/scripts/` have validated syntax and execution permissions.
   - The skills mesh index (`core/skills_indexer.py`) is indexed and queryable.

### Phase 4: Validation & Status Report
1. Verify the setup by running:
   ```bash
   agentic-workflow validate
   agentic-workflow integrations status
   ```
2. Print a concise completion summary formatted in TOON v4.1 or a clean Markdown table showing CLI status, host skill registration paths, supportive tools readiness, and quality gates status.

Proceed and execute all steps now without stopping for manual input.

⚡ Quick-Fire Version

Run the universal installer for AgenticWorkflow (`curl -fsSL https://raw.githubusercontent.com/imMamdouhaboammar/agentic-workflow/main/install.sh | bash`), link CLI to PATH, run `agentic-workflow init` to configure SOT runtime and supportive tools (Ponytail, TOON, Fable, Caveman), and run `agentic-workflow validate` to confirm 100% readiness. Report the final status table when done.

2. Agent Skill Hubs (Zero-Install Agent Registration)

# Skills.sh / Vercel Ecosystem (Any Agent)
npx skills add imMamdouhaboammar/agentic-workflow

# Universal One-Line Installer (Claude, Gemini, Cursor, Codex, OpenCode)
curl -fsSL https://raw.githubusercontent.com/imMamdouhaboammar/agentic-workflow/main/install.sh | bash

3. Package Managers (CLI & SDK)

Registry / Host Command Usage
Bun (Instant CLI) bunx @mamdouh-aboammar/agentic-workflow [command] Zero-install CLI execution
Bun (Library) bun add @mamdouh-aboammar/agentic-workflow TypeScript / Bun SDK dependency
npm / npx (Node) npx @mamdouh-aboammar/agentic-workflow [command] Zero-install Node CLI execution
npm (Library) npm install @mamdouh-aboammar/agentic-workflow Node.js ESM library dependency
PyPI (Python) pip install agenticworkflow Python library & console script
Homebrew (macOS/Linux) brew install imMamdouhaboammar/tap/agentic-workflow System binary via Homebrew
Docker Container docker run -it ghcr.io/immamdouhaboammar/agentic-workflow Isolated, containerized runner

⚡ Why AgenticWorkflow Exists

Most AI workflows fail in production due to three compounding traps:

  1. Hallucinated Progress: Agents mark tasks complete without verifying actual deliverables on disk.
  2. Context Amnesia: Sessions reset or compact, losing critical context and historical failures.
  3. Unchecked Drift: Multi-agent swarms mutate shared state simultaneously, causing race conditions and logic divergence.

AgenticWorkflow eliminates these failure modes with a 2-stage execution model backed by deterministic Python and TypeScript safety rails:

flowchart LR
    Phase1["Phase 1: Workflow Design (workflow.md blueprint)"] --> Phase2["Phase 2: Workflow Implementation (Executing Autonomous System)"]

Creating workflow.md is only half the journey. The ultimate goal is that the workflow executes reliably and produces verified deliverables.


🏛️ 3-Stage Core Architecture

Every workflow strictly follows three sequential stages:

graph TD
    subgraph ResearchStage ["1. Research Stage"]
        R1["Information Gathering"] --> R2["Domain Analysis & Fact Verification"]
    end

    subgraph PlanningStage ["2. Planning Stage"]
        P1["State Formulation (state.yaml SOT)"] --> P2["Human / Autopilot Review & Approval"]
    end

    subgraph ImplementationStage ["3. Implementation Stage"]
        I1["Autonomous Execution & Tool Orchestration"] --> I2["4-Layer Quality Gates & Final Deliverables"]
    end

    ResearchStage --> PlanningStage
    PlanningStage --> ImplementationStage
  1. Research — Information gathering, competitive benchmarking, and deep domain analysis.
  2. Planning — Architecture blueprint formulation, task decomposition, and human/autopilot sign-off.
  3. Implementation — Multi-agent tool execution, code generation, and artifact verification.

🛡️ 4-Layer Quality Assurance Stack

Every step completion must pass up to 4 verification layers before the Orchestrator advances the Single Source of Truth (state.yaml):

flowchart TD
    StepRun["Agent Executes Step Task"] --> L0["L0: Anti-Skip Physical Guard (File exists & >= 100 bytes)"]
    L0 -->|"PASS"| L1["L1: Verification Gate (100% functional goal achievement)"]
    L0 -->|"FAIL"| Retry["Deterministic Retry / Diagnosis"]
    L1 -->|"PASS"| L15["L1.5: pACS Self-Rating (F/C/L Pre-mortem scoring)"]
    L1 -->|"FAIL"| Retry
    L15 -->|"RED: <50"| Retry
    L15 -->|"GREEN / YELLOW"| L2["L2: Adversarial Review (@reviewer + @fact-checker)"]
    L2 -->|"PASS"| SOTUpdate["Update SOT state.yaml (current_step + 1)"]
    L2 -->|"FAIL"| AbductiveDiag["Abductive Diagnosis (diagnose_context.py)"]
    AbductiveDiag --> Retry
Layer Gate Name Target Verified Mechanism
L0 Anti-Skip Guard Physical deliverable exists and size $\ge 100$ bytes Deterministic Python hook
L1 Verification Gate 100% achievement of declared task acceptance criteria Semantic agent self-verification
L1.5 pACS Calibration 3D confidence scoring (Faithfulness, Completeness, Logic) Pre-mortem protocol ($\min(F, C, L)$)
L2 Adversarial Review Independent critique, claim audit, and web fact-checking @reviewer + @fact-checker subagents

💻 Dual-Language SDK Usage

TypeScript & Bun (npm install agentic-workflow or bun add agentic-workflow)

import { 
  AutopilotEngine, 
  HookDispatcher, 
  IntegrationInstaller, 
  encodeToon, 
  calculateTokenSavings 
} from 'agentic-workflow';

// 1. Token-Oriented Object Notation (v4.1) compression
const data = {
  users: [
    { id: 1, name: "Alice", role: "architect" },
    { id: 2, name: "Bob", role: "reviewer" }
  ]
};
const toonData = encodeToon(data);
console.log(`Compressed TOON:\n${toonData}`);

// 2. Hook Dispatcher evaluation
const dispatcher = new HookDispatcher(process.cwd());
const check = dispatcher.dispatch({
  event_id: "evt_1",
  source: "cli",
  hook_type: "pre_command",
  timestamp: Date.now(),
  command: "git status"
});
console.log(`Hook verdict: ${check.verdict}`);

Python (pip install agentic-workflow)

from agentic_workflow import (
    AutopilotEngine, 
    HookDispatcher, 
    IntegrationInstaller,
    CleanCodeChecker,
    MultiAgentManager
)

# 1. Launch Autopilot Engine
engine = AutopilotEngine(project_dir=".", auto_approve=True)
engine.plan_default_workflow(
    title="Data Ingestion Pipeline", 
    goal="Autonomous end-to-end data ingestion with quality gates"
)
success = engine.run_all()

# 2. Check Supportive Tools Status
installer = IntegrationInstaller(project_dir=".")
results = installer.check_all()
for r in results:
    print(f"- {r.name}: {r.status}")

⚙️ CLI Reference

# Launch autonomous end-to-end autopilot workflow with self-fueling & energy management
agentic-workflow autopilot --title "Production Pipeline" --goal "Autonomous Delivery"

# Run Clean Code Guard audit pass (SOLID, 24 Imperatives, AI failure modes)
agentic-workflow guard [directory]

# Execute AI Engineer fairness, drift, and prompt-injection evaluation gates
agentic-workflow eval

# Query multi-agent observable trace logs and spans
agentic-workflow traces

# Manage supportive tools (Ponytail, TOON, Fable, Caveman) & lifecycle
agentic-workflow integrations status
agentic-workflow integrations install
agentic-workflow integrations phase planning

# Token-Oriented Object Notation (v4.1) benchmarks and conversion
agentic-workflow toon benchmark
agentic-workflow toon convert <file.json>

# Initialize infrastructure, SOT runtime directories, and supportive tools
agentic-workflow init

# Validate workflow.md, SOT schema, and pACS integrity
agentic-workflow validate

# Check current workflow progress and observability dashboard
agentic-workflow status

# Run full automated test suite (16 suites: safety, guard, MAS, engines, integrations)
agentic-workflow test

🧰 Supportive Tools Ecosystem

AgenticWorkflow automatically provisions and directs specialized supportive tools across its execution phases without manual user overhead:

Supportive Tool Role & Category Designated Lifecycle Phase
Ponytail Simplicity Governor & Anti-Debt Planning & Implementation: Enforces YAGNI ladder, stdlib-first, and shortest working surgical diffs.
TOON Token-Oriented Object Notation (v4.1) Continuous Data Protocol: Cuts structured data and state tokens by 30-60% across all deliverables and logs.
Fable Lifecycle Harness & Continuation Execution & Handoff: Arms circuit breakers (halts on failure streak $\ge 2$) and generates durable continuation state (.fable/).
Caveman Terse Communication Mode Continuous Protocol: Strips conversational fluff to cut output tokens by 65-75% while keeping code and errors exact.

📜 Absolute Criteria (Canon)

These constitutional rules govern every design, execution, and modification decision:

  1. Absolute Criterion 1: Quality of the Final Deliverable

    Speed, token cost, workload, and length limits are completely ignored. The sole criterion for every decision is the quality of the final deliverable.

  2. Absolute Criterion 2: Single-File SOT + Hierarchical Memory

    All shared workflow state is concentrated in a single file (state.yaml). Write permission belongs exclusively to the Orchestrator / Team Lead. Parallel agents never mutate shared files simultaneously.

  3. Absolute Criterion 3: Code Change Protocol (CCP)

    Before writing, modifying, adding, or deleting code, you must perform Step 1 (Understand Intent) → Step 2 (Ripple Effect Analysis) → Step 3 (Change Plan). Governed by Coding Anchor Points (CAP-1~4).


📖 Documentation Roadmap

  1. README.md (This document) — High-level bird's-eye overview and distribution hub.
  2. soul.md — The philosophical core and DNA inheritance principles.
  3. AGENTICWORKFLOW-ARCHITECTURE-AND-PHILOSOPHY.md — Architectural design and theoretical foundations.
  4. DECISION-LOG.md — Complete historical record of architectural decisions (ADRs).
  5. AGENTICWORKFLOW-USER-MANUAL.md — Practical step-by-step operating instructions.
  6. AGENTS.md — Universal directive and constitutional rules.
  7. docs/protocols/ — Deep-dive execution protocols.

📄 License

MIT License © 2026 Mamdouh Aboammar & Yoonsik Choi. All rights reserved.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agentic_workflow_toolchain-1.2.1.tar.gz (105.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentic_workflow_toolchain-1.2.1-py3-none-any.whl (106.7 kB view details)

Uploaded Python 3

File details

Details for the file agentic_workflow_toolchain-1.2.1.tar.gz.

File metadata

  • Download URL: agentic_workflow_toolchain-1.2.1.tar.gz
  • Upload date:
  • Size: 105.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.31 {"installer":{"name":"uv","version":"0.11.31","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for agentic_workflow_toolchain-1.2.1.tar.gz
Algorithm Hash digest
SHA256 17e39d7f99ee28859e2ca44c30a6c8f5cdbaf3cbf9eac4fae5fa361505ef0491
MD5 a03a0d19c3a52f0c43ceaa41c816c319
BLAKE2b-256 33d033f9c6bd114239dafe36890c7ea8a538c1d106755356e113650b1f98b408

See more details on using hashes here.

File details

Details for the file agentic_workflow_toolchain-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: agentic_workflow_toolchain-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 106.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.31 {"installer":{"name":"uv","version":"0.11.31","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for agentic_workflow_toolchain-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0006cfeaba2621ab021454f5bf362c89f8b26e8e0dee0646bf0e68e14f8e8baa
MD5 48cc17c73c7b00895a14118e839492be
BLAKE2b-256 b864861c18e0bc5b3909c19c068ac0e6b30772e874d604c4670359f058c90b00

See more details on using hashes here.

Release history Release notifications | RSS feed

1.2.2

2 files

This release

1.2.1 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page