@mamdouh-aboammar/agentic-workflow
v1.2.2
Published
Pluripotent stem-cell framework and universal agentic toolchain for autonomous workflows
Maintainers
Readme
⚡ AgenticWorkflow ⚡
Pluripotent Stem-Cell Framework & Universal Agentic Toolchain
Deterministic Quality Gates • Multi-Engine Autopilot • Single-File SOT • TOON v4.1 Density
🚀 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:
[!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 | bash3. 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 agentic-workflow-toolchain | 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:
- Hallucinated Progress: Agents mark tasks complete without verifying actual deliverables on disk.
- Context Amnesia: Sessions reset or compact, losing critical context and historical failures.
- 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- Research — Information gathering, competitive benchmarking, and deep domain analysis.
- Planning — Architecture blueprint formulation, task decomposition, and human/autopilot sign-off.
- 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:
- 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.
- 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. - 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
- README.md (This document) — High-level bird's-eye overview and distribution hub.
soul.md— The philosophical core and DNA inheritance principles.AGENTICWORKFLOW-ARCHITECTURE-AND-PHILOSOPHY.md— Architectural design and theoretical foundations.DECISION-LOG.md— Complete historical record of architectural decisions (ADRs).AGENTICWORKFLOW-USER-MANUAL.md— Practical step-by-step operating instructions.AGENTS.md— Universal directive and constitutional rules.docs/protocols/— Deep-dive execution protocols.
📄 License
MIT License © 2026 Mamdouh Aboammar & Yoonsik Choi. All rights reserved.
