npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

deuk-agent-flow

v4.2.7

Published

Keep AI coding work from vanishing between chats: repo-owned tickets, scope, verification, and memory for AGENTS.md-powered agents.

Readme


Deuk Agent Flow is the repo-owned workflow layer for AI-assisted workspaces: planning, software engineering, systems work, research, and operations can enter the same ticketed flow through Codex, Copilot, Cursor, Claude Code, Gemini, Windsurf, or the next agent you adopt.

Most agent setups stop at instructions. Deuk Agent Flow turns short chat into an operating loop: ticket, scope, execute, verify, archive. It keeps AGENTS.md, Copilot instructions, Cursor rules, Claude skills, and related agent surfaces aligned without asking you to type long commands.

The hook is simple: you can say "next", "inspect", or "clean this up", and the current agent has a repo-owned place to know what that means. Active work lives in .deuk-agent/tickets/; decisions, plans, and closeout evidence stay with the codebase instead of vanishing into a chat transcript. Deuk Agent Flow is the workflow layer. Plug that flow into the separate companion product Deuk AgentContext, and the whole repo gains an expanded project brain: searchable memory, reusable decisions, and team patterns the next agent can actually use.

Why Now

AI coding has crossed from novelty into production volume:

  • Google says 75% of its new code is AI-generated, up from 25% in 2024 and 50% last fall. (Semafor, 2026)
  • Sonar's 2026 developer survey coverage reports AI-generated code at about 42% today, with developers expecting roughly 65% by 2027. (TechRadar, 2026)
  • Stack Overflow's 2025 survey coverage found 84% of developers use or plan to use AI tools, while "almost right" output and debugging AI code are top frustrations. (InfoWorld, 2025)
  • Faros reported the uncomfortable tradeoff: more completed work, but 54% more bugs per developer, review time up fivefold, and more incidents per PR. (ADTmag, 2026)

The new bottleneck is not typing code. It is keeping agent work scoped, reviewable, verified, and recoverable.

What Changes With Deuk Agent Flow

| Without it | With Deuk Agent Flow | |---|---| | "Continue" depends on chat memory | "Next" resolves through repo tickets | | Agent edits can drift outside the ask | APC scope defines what can change | | Reviewers see code but not intent | Tickets keep cause, plan, and evidence beside the code | | AI output adds review load | Verification and closeout are part of the work loop | | Context dies when the chat ends | Archive + knowledge distillation preserve the project memory |

One-Minute View

Short chat
  "next" / "inspect" / "ship it"
        |
        v
Deuk Agent Flow
  ticket + scope + verification + memory
        |
        v
Repo-owned work
  reviewable changes + durable decisions + next-session continuity

| Benefit | What you feel | |---|---| | Less context loss | The next agent can continue without replaying the whole chat | | Less scope drift | The ticket says what can and cannot change | | Less review guesswork | Intent and evidence sit beside the diff | | Less generated-code risk | Source/generator ownership is checked before edits | | Better team memory | Completed work becomes searchable project history |

Current readiness: v4.0.38 is deployment-ready for agent-driven repositories. Interactive init now asks only the workspace purpose, infers the remaining setup from the project directory, hides the Deuk AgentContext MCP choice during first setup, completes without the earlier multi-prompt stall, and ends with a visible completion line plus a short first-use prompt guide. Ticket creation/use also keeps the clickable Ticket start line visible before approval is requested, including approval-pending final answers. It is currently most reliable in OpenAI Codex and GitHub Copilot workflows. Cursor, Windsurf, and Claude Code remain supported through pointer-style integration, but they should be validated per workspace before rollout. Deuk AgentContext MCP is an optional memory layer; MCP server registration is separate from init. Architecture foundation: We have officially deprecated monolithic .cursorrules. v3.0 introduces the Hub-Spoke model where AGENTS.md is the single source of truth, and IDE-specific rules act as thin entry-point pointers.

🗺️ Main Features & Architecture

Deuk Agent Flow brings four core capabilities to day-to-day AI engineering:

  1. Zero-Copy Hub-Spoke Architecture

    • Hub: AGENTS.md acts as the global single source of truth.
    • Spoke: IDE-specific rules (like .cursorrules) or PROJECT_RULE.md act as thin pointers.
    • Benefit: Eliminates rule duplication, preventing conflicting instructions and context hallucination across different IDEs (Cursor, Copilot, Windsurf).
  2. Ticket-Driven Workflow (TDW)

    • Guides work through a clear lifecycle: Plan → Execute → Verify → Archive.
    • Keeps changes connected to an active ticket in .deuk-agent/tickets/, so scope and progress stay visible.
  3. Platform Co-existence & Mode-Aware Workflow Gate

    • Uses strong Agent Permission Contracts (APC) through a Mode-Aware workflow.
    • In Plan Mode, agents focus on analysis and planning artifacts before moving into approved execution.
    • Integrates with MCP Soft Gates to keep code changes aligned with the current ticket context.
  4. Zero-Token Knowledge Distillation

    • When a ticket is archived, it is distilled into a zero-token summary and moved to reports/.
    • These reports are vectorized into DeukAgentContext, building a permanent Engineering Memory Engine without cluttering the agent's active context window.

Why Not Just Instructions?

The agent tooling space already has useful building blocks: AGENTS.md, GitHub Copilot instructions, Cursor rules, Claude skills, agent launchers, and general LLM guardrail frameworks. Deuk Agent Flow is positioned one layer above plain instruction sync: it turns those surfaces into a ticketed repository workflow.

| Similar approach | What it helps with | Deuk Agent Flow adds | |---|---|---| | AGENTS.md open format | A predictable instruction file for coding agents | Ticket lifecycle, phase gates, verification, and archiveable memory | | Copilot instructions / Cursor rules / Claude memory | Tool-specific guidance | One repo-owned workflow shared across agent clients | | Claude or Copilot custom agents and skills | Reusable task playbooks | Skills route into scoped, ticketed execution instead of replacing the workflow | | Agent launchers and harnesses | Running many coding agents from one place | Lifecycle control inside the repository, independent of the chosen agent | | General LLM/MCP guardrails | Runtime policy checks for AI systems | Developer-facing work orders, scope contracts, Git-visible history, and closeout evidence |

Use Deuk Agent Flow when you want AI coding work to stay coordinated, reviewable, and easy to carry forward across sessions and teammates.

Better Together With Karpathy-Style Skills

Karpathy-style skills are great at improving how an agent behaves inside a task. Deuk Agent Flow is great at making that task ticketed, scoped, verified, and remembered at the repository level.

Used together, skills can improve the quality of the move, while Deuk Agent Flow keeps the move connected to team workflow. The result is a better session and a better project record: behavior playbooks on the front end, ticket lifecycle and DeukAgentContext memory on the back end.

What's Next

The next step is to make this flow even easier to see and adopt: clearer first-run checks, compact CLI/RAG reminders for agents, stronger README/npm positioning, and companion surfaces that show active ticket, phase, open-ticket count, and DeukAgentContext memory status without asking teams to switch coding agents.

📚 Detailed Documentation

| Doc | Purpose | |---|---| | docs/usage-guide.ko.md | Recommended: practical rollout and step-by-step usage guide | | docs/architecture.md | High-level system structure and visual infographics | | docs/how-it-works.md | Detailed CLI mechanics, initialization lifecycle, and file roles | | docs/principles.md | Design philosophy: Hub-Spoke, Zero-Legacy, and Source Sovereignty | | Korean Docs | README.ko.md · docs/architecture.ko.md · docs/how-it-works.ko.md |


🚀 Quick Start

The fastest way to add Deuk Agent Flow to your current project:

# 1. Install globally
npm install -g deuk-agent-flow

# 2. Initialize the repo or workspace
deuk-agent-flow init

Interactive init now ends its choices at the workspace purpose prompt. Document language, workflow mode, ticket sharing, agent pointers, and MCP memory defaults are inferred from the project directory or kept private by default.

After that, day-to-day work starts through plain agent requests, not memorized commands. Say things like "continue", "next", or "inspect the cause".

For a single repo, run deuk-agent-flow init from that repo root. For a root workspace that contains multiple DeukAgentFlow projects, run the same command from the workspace root; init refreshes the root pointer and discovered child workspaces that own their own PROJECT_RULE.md / .deuk-agent/ state.

For practical rollout details, see docs/usage-guide.ko.md.

🛠️ Installation & Setup

1. Global Installation (Standard User)

To prevent npx cache issues and "Local Traps", a global installation is strictly required.

npm install -g deuk-agent-flow
deuk-agent-flow init

To apply a newly installed version to an existing repo, update the global package first and then rerun init:

npm install -g deuk-agent-flow
deuk-agent-flow init

init reapplies the currently installed package rules and removes legacy runtime template copies. It does not update the global npm package by itself.

For a single repo, run deuk-agent-flow init from that repo root.

For a root workspace that contains multiple DeukAgentFlow projects, run the same command from the workspace root. init updates the root pointer and discovered child workspaces that own their own PROJECT_RULE.md / .deuk-agent/ state, so ordinary users can refresh their AI agent rules from their personal workspace root after installing a new package version.

Agent client pointers are not a one-time decision. If you start using another client later, rerun deuk-agent-flow init and select the additional AI client.

This is where the effect compounds: use the workspace root as the shared entry point, each project root as an independent ticket/rule/verification boundary, and nested apps or servers as separate projects only when they have their own lifecycle.

2. Local Source Development (Maintainer/Power User)

The global command runs the installed package by default. If you are developing against a local checkout from another project directory, opt into local source routing explicitly.

cd ~/workspace/DeukAgentFlow
sudo npm link
DEUK_AGENT_FLOW_USE_LOCAL=1 deuk-agent-flow init  # Routes to local scripts/cli.mjs

If you primarily work in Codex or Copilot, this is the recommended day-to-day setup. Those clients currently have the smoothest behavior with the hub-spoke and ticket-driven workflow.

3. Maintainer Publish

Maintainers can publish from the root command:

npm run publish

This flow must register both npm packages in one run under the deuk-flow release surface:

  • deuk-flow canonical package: deuk-agent-flow
  • deuk-flow legacy compatibility alias package: deuk-agent-rule

The publish script syncs the alias package version/dependency first, then publishes the canonical package before the alias package.

Use dry-run mode before writing to the npm registry:

npm run publish:dry

Before publishing, run the Docker consumer smoke test. It installs the packed packages into a clean Node container, so local npm link or global packages cannot hide missing dependencies.

npm run smoke:npm:docker

After publish, refresh the combined downloads badge when needed:

npm run badge:downloads

The badge should display deuk-flow while still summing downloads from both deuk-agent-flow and deuk-agent-rule.


🎯 The Protocol Workflow

The workflow is governed by a Ticket-Driven Execution Contract.

  1. Scaffolding: init deploys AGENTS.md and local pointers like PROJECT_RULE.md; runtime templates come from the package templates/ SSoT, not .deuk-agent/templates/.
  2. Ticketing (Plan Phase): The user describes the work in natural language, and the agent turns it into a bounded work order in .deuk-agent/tickets/. During this phase, agents operate in Plan Mode and are restricted from mutating files.
  3. Execution (Execute Phase): Once authorized, the AI agent reads the ticket, locks onto the Target Submodule, and executes code changes. MCP Soft Gates ensure that unauthorized modifications are blocked.
  4. Verification: The agent performs a side-effect audit and convention (e.g., DC-DUP) check before closure.
  5. Archiving (Archive Phase): Completed tickets undergo Zero-Token Knowledge Distillation and move to reports/ to build the Engineering Memory Engine via DeukAgentContext.

⚙️ Agent Requests

Ask your AI agent in plain language. The CLI commands are the agent's execution layer, not something the user has to type during normal collaboration.

| What you want | Say something like | |--------|------| | Start a scoped task | "티켓 잡고 진행" | | Continue existing work | "다음 진행" | | Review before coding | "원인 먼저 파악" | | Finish and preserve context | "검증 기록하고 정리" | | Manage skills | "safe-refactor 추가" |

Ticket File Git Hygiene

  • Treat .deuk-agent/tickets/**/*.md and INDEX*.json as CLI-managed lifecycle artifacts.
  • Do not commit a ticket body without the related index updates. The next session can restore the wrong active/archive state.
  • After ticket create fails, do not create or repair ticket files manually.
  • Do not flip ticket status by editing frontmatter directly. Use ticket move, ticket close, or ticket archive.
  • telemetry.jsonl is usually operational log noise, so it is better left out of normal code commits unless your repo intentionally tracks it.
  • When possible, commit completed work after ticket archive so the active/archive transition lands in one history step.

For maintainers and automation, the underlying CLI still exposes commands such as deuk-agent-flow ticket create, ticket move, and ticket archive.

For more day-to-day examples, see docs/how-it-works.md.


Related Ideas & Inspiration

Deuk Agent Flow shares the same concern as guideline-first projects like andrej-karpathy-skills: AI coding agents often over-assume, over-engineer, and edit outside the requested scope.

Where prompt-level guideline files improve agent behavior inside one client, Deuk Agent Flow adds a repository-level workflow layer: tickets, phase gates, scoped permissions, verification, and archiveable engineering memory.

The first-party skill MVP keeps that boundary explicit: skills are short SKILL.md playbooks for recurring failure patterns, while core-rules/AGENTS.md remains the workflow authority. Use skill add and skill expose to make those playbooks visible to Claude or Cursor without copying the full rule contract.

Skill availability:

  • Synced by init: all first-party skill templates are copied into .deuk-agent/skill-templates/.
  • Recommended default install: safe-refactor, generated-file-guard.
  • Optional install: context-recall, project-pilot.

Current first-party skills:

| Skill | Use when | |---|---| | safe-refactor | Default recommended: keep refactors small, scoped, and test-backed | | generated-file-guard | Default recommended: avoid direct edits to generated outputs | | context-recall | Optional: reuse prior ticket/rule memory without making RAG the source of truth | | project-pilot | Optional: control cross-language, protocol, generated/runtime drift refactors |

npx deuk-agent-flow init
npx deuk-agent-flow skill list
npx deuk-agent-flow skill add --skill safe-refactor
npx deuk-agent-flow skill add --skill generated-file-guard
npx deuk-agent-flow skill add --skill project-pilot
npx deuk-agent-flow skill expose --platform claude

🏷️ Keywords

#AI-Orchestration #Agentic-Workflow #DeukFamily #Engineering-Intelligence #Zero-Legacy #High-Signal-Coding #AI-Protocol #CursorRules #CopilotInstructions #ClaudeCode #ClaudeMD #AgentsMD #AgentSkills #CodingAgent #AI-Guardrails #LLM-Control-Plane