New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

@dv.nghiem/flowdeck

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dv.nghiem/flowdeck

FlowDeck — structured planning and execution workflows for OpenCode

Source
npmnpm
Version
0.6.1
Version published
Weekly downloads
104
-35.8%
Maintainers
1
Weekly downloads
 
Created
Source

FlowDeck — OpenCode Plugin

AI-powered multi-agent workflow orchestration with built-in safety intelligence for OpenCode

FlowDeck adds a structured, multi-agent development workflow to OpenCode. It coordinates 27 specialist agents through an adaptive cycle — discuss, plan, execute, review — with persistent state that survives session restarts, a configurable governance layer, and tool-selection policies that route work to codegraph, token-optimized readers, web search, and library docs when available.

Features

  • 🤖 27 agents — orchestrator, planner, architect, backend/frontend coders, tester, reviewer, researcher, security-auditor, risk-analyst, policy-enforcer, performance-optimizer, and more
  • 🛠️ 67 skills — reusable workflow patterns (TDD, security scan, deploy check, code review, and more)
  • 24 commands — slash-command entry points for planning, execution, verification, and support
  • 📋 Workflow classesquick, standard, explore, ui-heavy, bugfix, docs-only, and verify-heavy routing
  • 🔄 Persistent state — resume exactly where you left off across sessions via .planning/STATE.md
  • 🔀 Parallel execution — independent tasks run simultaneously through the orchestrator
  • 🦀 FDX CLI — token-optimized Rust CLI tools built and installed automatically: fdx-read, fdx-grep, fdx-search, fdx-outline, fdx-tree, fdx-ls, fdx-impact, fdx-diff, fdx-git, fdx-batch
  • 📐 Language rules — coding standards for TypeScript, Python, Go, Java, and Rust
  • 🗂️ Multi-repo support — coordinate changes across multiple repositories in one session
  • 🔔 System notifications — desktop alerts when long-running tasks complete
  • 🛡️ AI safety scaffolding — patch trust scoring, edit gates, phase gating, failure replay, and regression prediction built into selected workflows
  • 🔍 Governance scaffolding — agent contracts, validator mode, supervisor review, delegation budgets, deadlock detection, and workflow scorecards configured through flowdeck.json
  • 🪝 OpenCode hooks — session events, shell environment injection, and guard rails that enforce phase and design constraints
  • 🌐 MCP-aware integrations — uses codegraph, Exa (web search), Grep.app, Context7, and token-optimizer MCPs when registered

Quick Install

curl -fsSL https://raw.githubusercontent.com/DVNghiem/flowdeck/main/install.sh | bash

Method 2: npx (no git required)

npx @dv.nghiem/flowdeck install

See Installation for prerequisites, verification steps, and environment variables.

Core Workflow

FlowDeck structures every feature through an adaptive workflow cycle. The orchestrator scores each task across 5 dimensions (simplicity, confidence, risk, codebase familiarity, complexity) and selects the minimal sufficient workflow class:

Workflow ClassStagesWhen Used
quickexecute → verifySimple tasks (< 5 files, low risk)
standardplan → execute → verifyNormal implementations
explorediscuss → plan → execute → verifyAmbiguous or unfamiliar tasks
ui-heavydiscuss → design → plan → execute → verifyUI/UX-heavy tasks
bugfixdiscuss → fix-bug → verifyBug fixes
docs-onlywrite-docs → verifyDocumentation changes
verify-heavyplan → execute → verifyHigh blast radius or sensitive paths

The default full cycle:

/fd-init-deep → /fd-map-codebase → /fd-new-feature → /fd-discuss → /fd-design → /fd-plan → /fd-execute → /fd-verify → /fd-done
StepCommandWhat happens
Initialize/fd-init-deepCreate .planning/STATE.md, config.json, and phase directories
Map/fd-map-codebaseAnalyse and index the codebase into structured .codebase/ files
Define Feature/fd-new-feature "…"Initialize feature context and set the workflow class
Discuss/fd-discuss@discusser runs structured Q&A, saves decisions to DISCUSS.md
Design/fd-design@design produces UI artifacts — wireframes, visual system, approval gate
Plan/fd-plan@planner builds a PLAN.md; you confirm before execution
Execute/fd-execute@orchestrator delegates to specialist agents via TDD
Done/fd-doneMark complete — validates readiness, finalizes state, refreshes mapping
Verify/fd-verifyFull test suite, code review, security scan, and deploy check

State is written to .planning/STATE.md after each phase. Use /fd-checkpoint to save mid-session and /fd-resume to reload context in a new session.

Command Reference

Workflow commands

CommandPurpose
/fd-init-deepInitialize .planning/ workspace for the project
/fd-map-codebaseAnalyse and index the codebase into structured .codebase/ files
/fd-new-featureDefine a new feature and initialize feature context
/fd-discussPre-planning structured Q&A to capture decisions
/fd-designDesign-first workflow for UI-heavy tasks
/fd-planGenerate an execution plan from decisions
/fd-executeImplement feature with TDD discipline and parallel agents
/fd-doneMark feature/phase complete and refresh mapping
/fd-verifyFull verification pipeline: tests, review, security scan, deploy check
/fd-fix-bugDiagnose, fix, and verify a bug with regression test
/fd-write-docsExplore APIs and generate accurate documentation
/fd-deploy-checkPre-change release safety checks and review routing
/fd-statusView project progress, roadmap, and workspace overview
/fd-checkpointSave a session checkpoint to STATE.md
/fd-resumeReload STATE.md and PLAN.md to continue an interrupted session
/fd-reflectPost-session reflection or capture patterns as reusable skills
/fd-retrospectiveCapture lessons from a completed task to .flowdeck/lessons.md
/fd-multi-repoMulti-repo orchestration — list, add, remove, or status
/fd-translate-intentConvert vague requests into ranked implementation options with tradeoffs
/fd-suggestCombined opportunity and risk analysis (impact, volatility, failures, skill gaps)
/fd-askRoute a focused question to the appropriate specialist agent
/fd-doctorCheck FlowDeck installation and environment health
/fd-merge-assistHuman-in-the-loop selective merge between branches
/fd-ultraworkMaximum-effort autonomous execution with deep research + perfection loop (high token cost)

See docs/workflows.md for details on how commands work.

UltraWork Mode

/fd-ultrawork <task description> runs FlowDeck at maximum effort — deep research, full planning, TDD execution, full verification, and an evaluate-and-retry loop until done criteria are met. Use it when the result matters more than the cost; do not use it for routine work.

⚠️ Cost warning — token consumption is significantly higher than any other command. Every run performs mandatory research, multiple verification passes, and may iterate on failures. Only invoke when the task justifies the spend.

Fixed phasesResearch → Discuss → Plan → Execute → Verify → Evaluate (loop) → Done. Phases cannot be skipped to save tokens.

State — every run persists to .planning/ultrawork/ (RESEARCH.md, STATE.md, PLAN.md, ITERATIONS.md, REPORT.md). Use /fd-resume to continue an interrupted run.

When to use: hard, high-stakes, or unfamiliar problems where a thorough answer is worth the cost — greenfield architecture, security-sensitive refactors, complex multi-file changes with ambiguous acceptance criteria.

When NOT to use: routine edits, docs updates, single-file fixes, anything you'd run through the orchestrator or /fd-fix-bug.

See docs/commands/fd-ultrawork.md for the full phase specification.

Governance Layer

FlowDeck's governance layer provides scaffolding for trustworthy multi-agent execution. It is configured through flowdeck.json and runs as internal runtime services.

ServiceWhat it does
Agent Contract RegistryDefines allowed tools, forbidden actions, required inputs, and success criteria for every agent
Agent ValidatorChecks each agent invocation against its contract; mode: off / advisory / strict
SupervisorReviews commands and agents before or after execution
Delegation BudgetConfigurable limits on tool calls, sub-agent delegations, retries, and delegation depth
Deadlock / Loop DetectionConfigurable detection of agent bounce loops, circular delegation, and retry loops
Workflow ScorecardConfigurable quality scoring for runs across multiple dimensions

Configure in flowdeck.json:

{
  "governance": {
    "validator": { "mode": "advisory" },
    "delegationBudget": { "maxToolCalls": 200, "maxDepth": 8, "maxSameStepRetries": 3 },
    "deadlockDetection": { "enabled": true, "bounceThreshold": 3, "autoStop": false },
    "scorecard": { "enabled": true }
  }
}

Model Selection

FlowDeck does not hardcode any model. Every agent uses the model currently selected in OpenCode.

To assign a specific model to a specific agent, add it to flowdeck.json:

{
  "agents": {
    "planner": { "model": "anthropic/claude-opus-4" },
    "tester":  { "model": "openai/gpt-4o-mini" }
  }
}

Agents not listed in agents inherit the active OpenCode model. See Configuration for the full schema.

Documentation

FileDescription
docs/index.mdFull documentation table of contents
docs/installation.mdPrerequisites, install methods, verification, and uninstall
docs/quick-start.mdFirst 15 minutes — step-by-step walkthrough
docs/configuration.mdopencode.json, flowdeck.json, environment variables, plugin tools
docs/USER_GUIDE.mdFull agent and skill usage reference with examples
docs/workflows.mdCommand architecture and workflow patterns
docs/intelligence.mdAI safety features: patch trust, volatility map, failure replay, regression prediction

License

MIT

Keywords

opencode

FAQs

Package last updated on 13 Jul 2026

Related posts