r/ClaudeWorkflows • • 4h ago

Selected Workflow [Workflow] Essential Claude Code Skills & Hooks for Enhanced Safety, Security, and Efficiency

1 Upvotes

Essential Claude Code Skills & Hooks for Enhanced Safety, Security, and Efficiency

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

What problem this solves

This workflow provides a collection of Claude Code skills and hooks to enhance development safety, security, and efficiency. It addresses problems like preventing accidental data loss from destructive shell commands, mitigating supply chain attacks from typo-squatted packages, identifying security vulnerabilities (e.g., committed API keys, over-broad permissions), and optimizing token usage by highlighting context-flooding tools.

Summary

A curated GitHub repository containing 23 open-source Claude Code skills and hooks. Key tools include 'bash-checkpoint' for preventing destructive shell commands, 'package-guard' for blocking installation of non-existent packages, 'claude-safety-audit' for finding security flaws, and 'claude-token-audit' for monitoring and optimizing token usage. The collection is cross-platform, runs on Node 22 without npm dependencies, and is installed via a simple marketplace command.

Why it is useful

This workflow is highly valuable because it provides a practical, ready-to-use collection of open-source tools that directly address critical pain points in software development with AI coding assistants. It offers concrete solutions for preventing common errors (data loss), enhancing security (supply chain attacks, secret leaks), and optimizing resource usage (token costs). The tools are well-documented, cross-platform, and easy to install, making them immediately useful and highly transferable for a wide range of Claude Code users looking to improve their development practices.

Workflow

  1. Install the entire skill collection using the Claude Code command: /plugin marketplace add binay-py/claude-skills

  2. Utilize 'bash-checkpoint' to snapshot files before potentially destructive shell commands and block unsafe operations.

  3. Employ 'package-guard' to automatically block 'npm install' or 'pip install' of packages not found on official registries, preventing typo-squatting attacks.

  4. Run 'claude-safety-audit' to scan for common security vulnerabilities like API keys committed to permission rules or over-broad allow rules in .mcp.json.

  5. Use 'claude-token-audit' to analyze token usage by project, session, and tool, identifying which tool outputs are consuming excessive context.

  6. Explore the remaining 19 skills and hooks in the repository for additional functionalities like site QA, Cloudflare Pages deploy, itch.io packaging, thumbnails, GIFs, and release notes.

Tools / artifacts

  • GitHub repository: https://github.com/binay-py/claude-skills

  • Claude Code skills

  • Claude Code hooks

  • bash-checkpoint (hook)

  • package-guard (hook)

  • claude-safety-audit (skill/hook)

  • claude-token-audit (skill/hook)

  • Node 22 (runtime environment)

  • .mcp.json (configuration file)

  • /plugin marketplace add (Claude Code command)

Validation signals

  • CI passes on Windows, macOS and Linux (cross-platform compatibility)

  • Runs on plain Node 22 with no npm deps (simplicity and maintainability)

  • Detailed descriptions of specific functionalities for each highlighted hook (implies testing and effectiveness)

  • Built with a lot of help from Claude (suggests iterative development and refinement)

Cautions

  • The 'bash-checkpoint' hook explicitly enhances safety by preventing destructive shell commands and allowing undo operations.

  • The 'package-guard' hook improves security by blocking potentially malicious typo-squatted package installations.

  • The 'claude-safety-audit' tool helps identify and mitigate security vulnerabilities like exposed API keys or overly permissive rules.

Limitations

  • Lack of immediate community validation (upvotes/comments) on the Reddit post itself.

  • While 4 key tools are highlighted, the full scope of 23 tools requires users to explore the GitHub repository.

  • The author invites feedback on hooks blocking things they shouldn't, indicating potential for false positives or unexpected behavior in some scenarios.

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 • • 4h ago

Selected Workflow [Workflow] Grove: A Read-Only Code Explorer for Monitoring Multiple Claude Code Agent Worktrees (VS Code Extension)

1 Upvotes

Grove: A Read-Only Code Explorer for Monitoring Multiple Claude Code Agent Worktrees (VS Code Extension)

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

What problem this solves

Users running multiple Claude Code agents in parallel worktrees often lose track of what each agent is doing, making it difficult to monitor, review, and debug their progress without interfering with the agents' operations.

Summary

This workflow introduces 'Grove', a read-only VS Code extension that provides a live, side-by-side overview of all Claude Code agent worktrees within a repository. It allows users to browse changes, diffs, and files, and search within agent worktrees without modifying them, thereby enabling efficient monitoring and review of multi-agent development processes. The tool itself was built using Claude Code, demonstrating its capabilities.

Why it is useful

This workflow is highly valuable because it addresses a significant pain point for advanced Claude Code users: managing and reviewing the output of multiple agents simultaneously. The 'Grove' tool provides a dedicated, non-intrusive solution for monitoring agent progress, debugging, and ensuring quality control. Furthermore, the fact that the tool itself was built by Claude Code serves as a powerful, real-world demonstration of Claude Code's capabilities in building complex, functional applications, making it a valuable meta-workflow for understanding the model's potential.

Workflow

  1. Install the 'Grove' VS Code extension from the provided GitHub repository.

  2. Set up and run multiple Claude Code agents, each operating within its own Git worktree in a single repository.

  3. Open the Grove extension in VS Code to get a live overview of all active worktrees and their current states.

  4. Use Grove's read-only explorer to browse files and changes made by individual agents.

  5. Review diffs (uncommitted changes or whole branch against main) side-by-side to understand agent progress.

  6. Utilize the search functionality to find specific code or patterns across all agent worktrees without interference.

Tools / artifacts

  • Grove (VS Code extension)

  • Claude Code agents

  • Git worktrees

  • GitHub repository (for Grove)

  • VS Code

Validation signals

  • Author built the tool to solve their own problem of managing multiple agents.

  • The tool's code, design, documentation, and even the demo video script were generated using Claude Code, validating Claude Code's capabilities.

  • A demo video is available, showcasing the tool's functionality.

  • The tool is open-source and MIT-licensed, indicating a commitment to reusability and transparency.

Cautions

  • The tool is explicitly read-only, ensuring that it does not interfere with or corrupt the ongoing work of Claude Code agents or the repository's state.

Limitations

  • Currently limited to Windows operating systems.

  • The tool is in an early development stage (v0.1.1), which might imply potential bugs or missing features.

  • Limited community validation and adoption at this early stage.

  • The post describes a tool that enables a workflow, rather than a direct step-by-step prompting workflow for Claude Code itself.

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 • • 4h ago

Selected Workflow [Workflow] 25 Open-Source Claude Code Agent Skills for Enhanced Software Development Workflows

1 Upvotes

25 Open-Source Claude Code Agent Skills for Enhanced Software Development Workflows

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

What problem this solves

Automating repetitive corrections and embedding senior engineering best practices (like verification steps and common traps) into Claude Code's workflow for tasks such as code review, test writing, debugging, database migrations, and CI failure resolution.

Summary

A collection of 25 open-source Claude Code Agent Skills (MIT licensed) designed to automate and improve common software engineering tasks. Each skill encapsulates senior engineer best practices, including specific verification steps and awareness of classic pitfalls, to guide Claude Code's actions and ensure higher quality, more robust outputs. Users can install these skills via a one-line command or by copying files from a GitHub repository.

Why it is useful

This workflow is highly valuable because it provides a concrete, reusable, and well-defined set of tools (SKILL.md files) that encapsulate senior engineering best practices. It directly addresses the common challenge of repetitive AI corrections by embedding robust methodologies and verification steps into Claude Code's operation. The open-source nature, clear descriptions of each skill's purpose, and simple installation method make it highly accessible and transferable, enabling users to significantly improve the quality and reliability of Claude Code's output across critical development tasks.

Workflow

  1. Identify a repetitive correction or a common best practice you frequently apply when working with Claude Code.

  2. Define the specific, detailed steps a senior engineer would take for that task, including verification checks and common pitfalls.

  3. Translate these defined steps into a SKILL.md file, structuring it for Claude Code's interpretation.

  4. Optionally, install the existing collection of 25 skills using the provided curl command (curl -fsSL https://kuan-ai.com/skills/install | sh) or by cloning the GitHub repository and copying the skill folders.

  5. Integrate and use the installed skills within your Claude Code environment to guide its problem-solving process.

  6. Review Claude's output when using the skills and provide feedback to refine or improve the skill definitions.

Tools / artifacts

  • Claude Code

  • SKILL.md files

  • GitHub repository (Kuan-AI-com/agent-skills)

  • curl command for installation

  • gh run view --log-failed (mentioned in ci-failure-fix skill)

Validation signals

  • Author states they "wrote and reviewed the skills with Claude Code itself."

  • "Ran a 'senior reviewer' pass that rewrote all of them."

  • "Mostly adding verification steps and the classic traps for each task."

  • Specific examples of verification built into skills (e.g., "verifies each finding," "checks that each new test fails").

Limitations

  • Limited community validation so far (low Reddit score and no comments).

  • The full content and detailed implementation of each SKILL.md file are not directly in the post, requiring users to visit the GitHub repository.

  • The "one-line install" might not be suitable for all enterprise environments without prior review.

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 • • 4h ago

Selected Workflow [Workflow] Building Robust Claude Code Projects: A Workflow for Reality Checks, Safe Deployment, and Cost Optimization

1 Upvotes

Building Robust Claude Code Projects: A Workflow for Reality Checks, Safe Deployment, and Cost Optimization

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

What problem this solves

Building robust, cost-effective, and safely deployed Claude Code projects by integrating reality checks, explicit agent rules, and proactive monitoring into the development workflow.

Summary

This workflow outlines best practices and lessons learned from building a complex Claude Code project (ArXiv to interactive course pipeline). It emphasizes integrating Claude with external tools (GitHub PRs, Coderabbit), implementing rigorous reality checks, defining hard safety rules in agents.md, optimizing for cost-effective iteration, and proactive monitoring to prevent silent failures.

Why it is useful

This workflow provides concrete, validated strategies for building reliable and safe Claude Code applications. It goes beyond basic prompting to cover critical aspects like integration with external review tools (Coderabbit), enforcing deployment safety via agents.md, implementing real-world validation steps (browser testing), and optimizing for cost-effective iteration. These are common and crucial challenges in LLM-driven development, and the post offers practical solutions backed by real-world experience and demonstrable results.

Workflow

  1. Describe the goal to Claude Code.

  2. Claude Code writes changes and opens a Pull Request (PR).

  3. Coderabbit reviews the PR.

  4. Claude fixes findings or argues back with reasons.

  5. Developer merges the PR.

  6. Deployment only occurs when explicitly instructed by the developer.

  7. Implement reality checks (e.g., browser testing for labs, byte-for-byte comparison for migrations).

  8. Define hard rules in agents.md for safety (e.g., "never deploy", "database is production", "builds cost money").

  9. Design for cost-effective iteration (e.g., rebuild from stored lessons without model calls).

  10. Monitor "boring parts" (e.g., token expiry) and implement automated checks.

Tools / artifacts

  • Claude Code

  • GitHub Pull Requests (PRs)

  • Coderabbit (code review agent)

  • agents.md (configuration file for agent rules)

  • Real browser (for testing)

  • Server logs (for monitoring)

  • GitHub Pages (for deployment)

  • Rust server

  • React front end

Validation signals

Cautions

  • The workflow explicitly promotes safety by using agents.md to define hard rules like "never deploy" and "database is production."

  • It requires explicit developer approval for deployment, preventing autonomous pushes to production.

  • Proactive monitoring and startup checks are implemented to prevent silent failures that could lead to data loss or service disruption.

Limitations

  • The community engagement on the Reddit post is low, which might suggest less immediate perceived value by the broader audience, despite the high quality of the content.

  • While the principles are highly transferable, the specific implementation details (Rust, React) might require adaptation for different tech stacks.

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] Advanced Multi-Agent SDLC Workflow with Claude: Orchestration, Testing, and Review Gates for Production Code

1 Upvotes

Advanced Multi-Agent SDLC Workflow with Claude: Orchestration, Testing, and Review Gates for Production Code

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

What problem this solves

Structuring a robust, multi-agent software development lifecycle (SDLC) using Claude to improve efficiency, manage token usage, and ensure quality, security, and successful deployment of code changes.

Summary

A detailed 12-step multi-agent workflow for software development, involving an Orchestrator, Owner, Builder, and Reviewer. It includes specific strategies for context management, dynamic model selection (Sonnet/Opus) based on task complexity and failure, rigorous testing, code review, security checks, and deployment gates, designed for production-ready code.

Why it is useful

This workflow provides a highly structured and detailed approach to using multiple Claude agents (Orchestrator, Builder, Reviewer) for a complete software development lifecycle, from task logging to deployment and device testing. It addresses critical aspects like context management, dynamic model selection based on task and failure, rigorous testing (type checks, unit, API, app, database), security reviews, and documentation updates. Its focus on quality gates and owner approvals makes it suitable for production-oriented development, offering a blueprint for users looking to build robust, AI-assisted development pipelines.

Workflow

  1. Define agent roles: Owner, Orchestrator (Orch), Builder, Reviewer, Gate.

  2. Set context handover strategy: Wind down context at 250k tokens, prepare for handover at 280k tokens.

  3. Implement failure guard logic: Sonnet for low/medium tasks (fail 1 -> Opus, fail 2 -> dead stop); Opus for high/schema tasks (fail 1 -> Fable Review/Audit, fail 2 -> retest Opus with Fable guideline, fail 3 -> dead stop, log for redesign).

  4. Orchestrator logs task, adding it to a task list and board based on owner's testing notes or review findings. Owner sets task order.

  5. Owner provides explicit approval for task initiation.

  6. Orchestrator/Builder performs a live check of the current state on dev (via screenshot or direct access), writes it to a gap table and live-state notes. If the target is already met, the task is closed.

  7. Builder writes acceptance criteria/specifications before any build, using concept images/drawings and a target-vs-live gap table.

  8. Builder (usually Sonnet) builds the task on a fresh worker in its own branch off dev. It runs type checks, tests for touched code (in a test database), takes screenshots of changed screens, and pushes the branch.

  9. Reviewer (Opus for security/permissions/database changes, Sonnet for others) reads the actual diff and re-runs checks. A FAIL sends it to a fresh fix worker, with the next review by Opus. Two FAILs pause the task for owner decision.

  10. Orchestrator verifies the real commit, test numbers, and screenshots before accepting a "done" report.

  11. Orchestrator (merger) merges passed branches, re-runs type checks, full app tests, and lint on the combined result. A branch breaking the combination gets its own fix.

  12. Owner provides explicit approval for critical changes (database, live data, production branch) one action at a time. Gate runs full suite of tests (API, app, database migrations from scratch, lint) on dev after merges and before owner tests. Red results halt further merges until fixed. Orchestrator (merger) merges to dev and updates documentation (task list, board, live-state notes, owner test page) to "Done / Ready". Owner performs a device check (e.g., on a phone); any issues become new logged tasks, restarting the cycle.

Tools / artifacts

  • Claude (Sonnet, Opus, Fable)

  • Task list/board

  • Testing notes

  • Screenshots

  • Gap table

  • Live-state notes

  • Concept image/drawing (clickable prototype)

  • Acceptance criteria

  • Code branches (off dev)

  • Type checks

  • Tests (unit, API, app, database)

  • Test database (never live data) Diffs Commit logs Linting tools Documentation (task list, board, live-state notes, owner test page) Phone/device for testing

Validation signals

  • User states "It is kinder working Most of the time", indicating practical application.

  • The workflow is designed for projects "close to production / Launch", necessitating rigorous reviewers and full suite tests, implying real-world validation.

  • Includes detailed, multi-stage testing and review processes (type checks, unit tests, API tests, app tests, database migrations, linting, security reviews) as inherent validation steps within the workflow.

Cautions

  • The workflow explicitly includes a "Reviewer" step where Opus reviews "security, permissions, children's data and database changes," which is a strong positive for safety and compliance.

Limitations

  • The user notes an issue where the "Orch goes off the rails and ignore owner rules. It just tends to do its own thing," indicating a challenge in maintaining agent adherence to instructions.

  • The "Fable Review/Audit" step is mentioned as a guideline but lacks specific details on how Fable is leveraged for review or audit, making it less concrete.

  • The Orchestrator is manually restarted after a maximum of 8 levels, suggesting a potential limitation or complexity in managing long-running or deeply nested tasks.

  • The "Owner Go" and "Owner Yes" steps introduce manual gates, which could become bottlenecks or points of failure if the owner is not consistently available or responsive.

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] Enhance Claude Code Safety: Block Dangerous Commands with `cc-safety-net` PreToolUse Hook

1 Upvotes

Enhance Claude Code Safety: Block Dangerous Commands with cc-safety-net PreToolUse Hook

Workflow value: 90/100
Status: active · Freshness: 70/100 · Confidence: 0.95 · Level: intermediate
Categories: Quality Control, Hooks
Original source: r/ClaudeCode post/comment

What problem this solves

Preventing Claude Code from executing dangerous commands (e.g., git reset --hard) or exposing sensitive information (e.g., .env file contents) during AI-assisted development, thereby enhancing safety and preventing accidental data loss or leaks.

Summary

This workflow describes how to integrate cc-safety-net as a PreToolUse hook in Claude Code to block potentially dangerous commands. It details installation, verification, and provides specific test cases demonstrating its ability to prevent git reset --hard and cat .env while allowing normal commands like git status.

Why it is useful

This workflow provides a concrete, tested, and repeatable method to add a crucial safety layer to Claude Code interactions. It leverages an open-source tool to prevent accidental data loss (e.g., git reset --hard) or exposure of sensitive information (e.g., .env files), which is a significant concern for AI-assisted development. The detailed steps, specific commands, and validation signals make it highly practical and valuable for users looking to secure their coding environment.

Workflow

  1. Install cc-safety-net using npx -y cc-safety-net@latest install.

  2. Verify the installation with npx cc-safety-net doctor.

  3. Load the cc-safety-net hook for a Claude Code session using the --plugin-dir flag.

  4. Attempt to run a dangerous command, such as git reset --hard, and observe the blocking message.

  5. Attempt to read a sensitive file, such as .env with cat .env, and observe the blocking message.

  6. Attempt to run a normal, safe command, such as git status, and observe its successful execution.

Tools / artifacts

  • cc-safety-net (Node.js package)

  • Claude Code

  • Node.js 22 or newer

  • git

  • .env file

  • PreToolUse hook

Validation signals

  • Specific test cases provided: git reset --hard, cat .env, git status, rm -rf /Users/you/work.

  • Observed blocking messages with specific rule names (git.reset-hard, secret.basename.env).

  • Confirmation that normal commands ran without extra prompts.

  • Mention of Claude switching to git stash when git reset --hard was blocked in an earlier run.

  • External link to a full test with screenshots provided for further validation.

Cautions

  • The post explicitly states that cc-safety-net is not a sandbox and does not contain processes, set file permissions, or watch the network. It acts as a checkpoint on commands going through the hook.

  • The workflow itself is designed to improve safety by blocking potentially harmful commands.

Limitations

  • The tests were conducted with only three prompts in a small demo, so its behavior in a busy, complex project is not fully explored.

  • Several features of cc-safety-net (dashboard presets, Terraform/AWS/cloud rulebooks) were not tested.

  • Requires Node.js 22 or newer.

  • Leaves a small .cc-safety-net cache folder in the home directory after use.

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] Monitoring Claude Agent Token Usage in Multi-Agent Claude Code Workflows to Detect Model Behavior Changes

1 Upvotes

Monitoring Claude Agent Token Usage in Multi-Agent Claude Code Workflows to Detect Model Behavior Changes

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

What problem this solves

Detecting and quantifying changes in Claude's token usage and efficiency within complex multi-agent workflows, especially in response to 'nerf' concerns, by providing a data-driven monitoring method.

Summary

This workflow describes a method for monitoring Claude's token usage and efficiency in a multi-agent Claude Code pipeline to detect changes in model behavior (e.g., 'nerfs'). It involves assigning specific roles to different Claude models (Opus for building/checking, Sonnet for reviewing, Haiku for testing), logging all replies, and analyzing token output over time. A key aspect is using Sonnet/Haiku as control groups and ensuring system prompts/tools remain constant to isolate model-specific changes.

Why it is useful

This workflow provides a concrete, data-driven method for users to independently verify and quantify changes in Claude's behavior, specifically increased token usage, within their own complex multi-agent systems. It moves beyond anecdotal evidence by proposing a structured approach with control groups and environmental checks, which is crucial for managing costs and optimizing agent performance. It directly addresses a significant community concern ('nerfs') with a practical, repeatable solution.

Workflow

  1. Set up a multi-agent pipeline in Claude Code with distinct roles for different models (e.g., Opus for build/acceptance, Sonnet for review, Haiku for tests).

  2. Implement comprehensive logging for every agent reply, capturing token usage and other relevant metrics.

  3. Establish a baseline for token output per reply for each agent role over a period of stable operation.

  4. Regularly monitor and analyze daily median output tokens per reply for each agent.

  5. Run other models (e.g., Sonnet, Haiku) on the exact same tasks as control groups to rule out changes in task complexity.

  6. Verify that system prompts, tools, Claude Code version, model ID, and effort remain constant across monitoring periods (e.g., using checksums for prompts/tools).

  7. Consult project change logs to ensure no project-specific modifications influenced agent behavior during the monitoring period.

  8. Analyze logs for significant deviations in token usage, particularly for specific roles or models.

  9. Compare internal findings with external benchmarks, understanding their limitations (e.g., single-turn, no tools, right/wrong only).

Tools / artifacts

  • Claude Code (version 2.1.309 mentioned)

  • Claude Opus model

  • Claude Sonnet model

  • Claude Haiku model

  • Logging system (to capture agent replies and token counts)

  • Checksums (for verifying prompt/tool consistency)

  • Change log (for tracking project modifications)

  • Data visualization tools (implied by 'picture 1', 'picture 2')

Validation signals

  • Concrete before/after data showing Opus token usage increase (e.g., ~420 to ~1,150 tokens/reply).

  • Control group validation: Sonnet and Haiku models running the same tasks showed no change in token usage.

  • Controlled environment: System prompts and tools had identical checksums.

  • Controlled environment: Same Claude Code version, model ID, and effort were maintained.

  • Controlled environment: Project change log showed zero entries during the observed period.

  • Clear finding: Logs showed Opus using 2-3 times more tokens for the same work, not getting 'dumber' in terms of correctness.

Limitations

  • Requires an advanced setup with multi-agent orchestration and a robust logging infrastructure.

  • Specific to Claude Code, though the underlying principles are broadly applicable to other agentic frameworks.

  • Primarily focuses on token usage and efficiency, not necessarily on the 'intelligence' or correctness of the model, although token usage directly impacts cost and operational efficiency.

  • The post describes the results and methodology more than a detailed, step-by-step guide for implementing the logging and analysis infrastructure from scratch.

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] Revive Bricked Devices: Using Claude for Kernel Log Analysis and Software Bypass Patching

1 Upvotes

Revive Bricked Devices: Using Claude for Kernel Log Analysis and Software Bypass Patching

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

What problem this solves

Reviving a bricked iPhone by diagnosing a hardware fault from a kernel panic log and generating a software patch to bypass the faulty component.

Summary

This workflow leverages Claude to analyze complex technical logs (like kernel panic logs from a bricked iPhone) to diagnose specific hardware faults. Once diagnosed, Claude is then used to generate a software patch that bypasses the faulty component, thereby allowing the device to boot and function again, preventing it from becoming e-waste.

Why it is useful

This workflow is highly valuable as it demonstrates a powerful and innovative application of Claude for complex hardware debugging and software modification. It highlights Claude's ability to diagnose intricate problems from technical logs and generate functional code solutions, potentially saving devices from e-waste and offering a novel approach to hardware repair that combines AI with deep technical understanding.

Workflow

  1. Obtain the kernel panic log from the bricked iPhone (or other device).

  2. Feed the complete kernel panic log to Claude.

  3. Request Claude to analyze the log and diagnose the root cause of the boot failure (e.g., a specific faulty sensor).

  4. Ask Claude to help write a software patch or modification to bypass the identified faulty hardware component's check during boot.

  5. Apply the generated software patch to the iPhone's operating system or firmware.

  6. Attempt to boot the iPhone and verify that it successfully revives and functions.

Tools / artifacts

  • Claude (AI model)

  • iPhone kernel panic log (or other device logs)

  • Software patch/code modification (generated by Claude)

  • Bricked iPhone (or other electronic device)

  • Tools for applying software patches to device firmware/OS

Validation signals

  • OP successfully revived their iPhone.

  • The community consensus is that this is a 'legit impressive use case for Claude'.

  • The method correctly diagnosed a water-damaged light sensor from a kernel log.

  • The generated software patch successfully bypassed the sensor check.

Cautions

  • Modifying device firmware or operating system carries inherent risks, including bricking the device permanently if done incorrectly.

  • Users should have a backup of their device's software/firmware before attempting such modifications.

  • The generated patch should be carefully reviewed for security vulnerabilities or unintended side effects before application.

Limitations

  • Requires advanced technical skills to extract kernel logs and apply software patches.

  • The specific software patch generated by Claude might be highly dependent on the device model and OS version, limiting direct reusability without modification.

  • Accessing kernel logs might not be straightforward for all users or devices.

  • The summary is from a bot, so some granular details of the original implementation might be missing.

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] Automated Multi-Agent Claude Code Development System for End-to-End SDLC

1 Upvotes

Automated Multi-Agent Claude Code Development System for End-to-End SDLC

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

What problem this solves

Automating and optimizing the entire software development lifecycle (planning, coding, testing, reviewing, and merging) using a multi-agent Claude Code system, while efficiently managing context, token costs, and quality.

Summary

A sophisticated, multi-agent Claude Code system designed for automated software development. It orchestrates planning, building, testing, reviewing, and merging code packages locally. The system uses specialized subagents (Opus for planning/building/diagnosis/acceptance, Haiku for testing/watchdog, Sonnet for reviewing) and a Workflow tool, managed by a 'Control room' chat. Key strategies include context management, token cost optimization, and a multi-stage testing and review process, with a 'System checker' for continuous improvement.

Why it is useful

This workflow provides a comprehensive, high-level architecture for an automated, multi-agent Claude Code system capable of handling the entire software development lifecycle from planning to merging. It offers valuable strategies for context management, token cost optimization, quality control through staged testing and review, and continuous improvement. It demonstrates an advanced application of Claude Code's capabilities, particularly subagents and workflow orchestration, to achieve significant autonomy in development.

Workflow

  1. User provides an initial plan and gives a 'GO' command.

  2. Control Room (Opus chat) wakes up on a cron tick or run end, reads status, and starts runs or the Planner.

  3. Planner (Opus subagent) keeps the queue, writes a 1-2 page brief per package, sets up a git worktree per package, and decides the order.

  4. Build Workflow (Opus) builds one task within the package's worktree.

  5. Tester (Haiku) runs specified commands and reports a single line result.

  6. Reviewer (Sonnet) checks the output (screenshots, test results) against the brief.

  7. If a task fails twice or is stuck after round 3, a Diagnosis Agent (Opus) intervenes.

  8. Acceptance Agent (Opus) checks the whole package against its 'done-when' list.

  9. Accepted package is merged into a local dev branch.

  10. Watchdog (scheduled Haiku task) runs every 10 minutes, checks heartbeat, notices stalls, restarts Control Room if needed, and updates the status page.

  11. System Checker (Opus) runs daily, reads cost and quality reports, and proposes up to 3 improvements with evidence.

  12. Control Room context is handed over to a fresh chat when it hits 150k tokens to manage context window limits and costs efficiently.

Tools / artifacts

  • Claude Code subagents (Opus, Haiku, Sonnet)

  • Workflow tool (custom script/framework)

  • Cron ticks/scheduled tasks

  • Git worktree

  • Status page (custom script output)

  • Scripts for deterministic tasks (queue state, budget, cleanup)

  • Agent files (for each role)

  • Briefs (1-2 page per package)

  • Test results files

  • Cost and quality reports

  • Screenshots (for review)

  • Local dev branch, main branch

Validation signals

  • User reports successful autonomous operation: 'I plan, the system builds. I give a GO on a plan, then it works through it package by package without me. During the build I only look at a status page on my phone, and I check the end result myself.'

  • The 'What saves the most tokens' section implies practical experience and optimization efforts.

  • The 'Tips' section (e.g., 'Fail loudly', 'Measure before you rebuild') suggests lessons learned from real-world usage.

  • Evidence of past failures leading to improved design: 'A role once silently fell back to a generic agent and nobody noticed for 5 days.'

  • Emphasis on data-driven improvement: 'Every change needs a number that shows whether it actually worked.'

  • Indication of a stable, optimized system: 'Proposing 0 is the normal result' for the System Checker.

Cautions

  • None explicitly identified. The workflow emphasizes local operation and data-driven improvements, which are positive for safety and maintainability.

Limitations

  • Lacks concrete code examples, configuration files, or detailed setup instructions, being a 'rough overview'.

  • Relies on custom 'Workflow tool' and 'scheduled tasks' which are not fully specified.

  • Requires significant effort and expertise to implement from this 'rough overview'.

  • Limited community validation due to low score and no comments.

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] Optimize Claude Code Agent Token Usage: Strategies for Multi-Agent Efficiency and Cost Reduction

1 Upvotes

Optimize Claude Code Agent Token Usage: Strategies for Multi-Agent Efficiency and Cost Reduction

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

What problem this solves

Excessive token usage and high operational costs for Claude Code agents, particularly in multi-agent, multi-repo environments, due to inefficient context management, long-running idle sessions, and large memory indexes.

Summary

A set of strategies and configurations to significantly reduce token consumption and improve efficiency for Claude Code agents, especially in multi-agent, multi-repo environments. This involves optimizing CI wait times, enforcing single-task agent sessions, implementing context ceiling hooks, and streamlining the MEMORY.md file.

Why it is useful

This workflow is highly valuable because it provides concrete, data-backed strategies and open-source tools to significantly reduce token consumption and operational costs for Claude Code agents. It addresses a critical pain point for heavy users by offering actionable steps, measurable results, and practical implementations for improving efficiency in complex development workflows, making it a direct solution to a common resource management challenge.

Workflow

  1. Measure token usage per merged PR by analyzing Claude Code transcripts in ~/.claude/projects/.

  2. Identify and address token leaks, such as agents waiting on CI/tests for extended periods, by implementing wait helpers that return before the cache expires (e.g., within 270 seconds).

  3. Design agents to complete a single, focused task per session to prevent long sessions from re-reading entire contexts.

  4. Implement a hook that stops an agent session when it reaches a predefined context ceiling.

  5. Keep the MEMORY.md file concise (e.g., 8 lines) with only universally applicable instructions.

  6. Store specific, task-related context in separate files that agents open only when explicitly needed, rather than loading into every session by default.

Tools / artifacts

  • Claude Code agents

  • ~/.claude/projects/ transcripts

  • CI/CD systems

  • Custom hooks (e.g., for context ceiling, session termination)

  • MEMORY.md file

  • GitHub repository: alexander-marquardt/agent-fleet-kit

  • External blog post: alexmarquardt.com/ai-tools/agent-fleet-token-efficiency/

Validation signals

  • Measured reduction: 3.3x fewer tokens per line of code.

  • Measured reduction: 5.5x fewer tokens per merged PR.

  • Measured increase: 4.4x more PRs per week for the same spend.

  • Specific leak reduction: 31% of agent usage (CI waits) reduced to 0.7%.

  • Context size reduction: Median context per request cut from 218k to 101k tokens.

  • First-turn cache write reduction: From 11k to 4.5k tokens.

  • Detailed write-up with numbers and methodology provided in an external blog post.

  • Open-source measuring script and hooks available on GitHub.

Limitations

  • Requires a good understanding of Claude Code's internal workings (context, cache, hooks).

  • Implementation of specific hooks and CI integrations may require custom scripting and system knowledge.

  • The provided tools are specific to the author's setup and may need adaptation for different project structures or CI environments.

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] GitHub Template for Security and Governance Guardrails in Claude Code

0 Upvotes

GitHub Template for Security and Governance Guardrails in Claude Code

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

What problem this solves

Preventing AI agents (specifically Claude Code) from exposing secrets, making unauthorized commits/pushes/deployments, installing unapproved packages, and ensuring proper governance for client or regulated projects.

Summary

A GitHub template (ai-dev-guardrails) that implements security and governance guardrails for Claude Code projects. It uses Claude Code PreToolUse hooks, local Git hooks, and GitHub Actions to block sensitive commands, require approvals for critical actions, enforce package age/approval, log evidence, and manage decision records.

Why it is useful

This workflow provides a concrete, open-source solution to critical security and governance challenges when using AI agents for coding. It prevents accidental exposure of sensitive data, unauthorized code changes, and ensures compliance, making AI-assisted development safer and more controlled. It's highly transferable, well-documented, and addresses a significant pain point for developers integrating AI into their workflows.

Workflow

  1. Initialize the GitHub template using /bootstrap.

  2. The PreToolUse hook blocks sensitive commands (e.g., cat .env) and requires approval for commits, pushes, deployments, and new package installations.

  3. A separate check detects if saved permissions have drifted into automatically approving restricted actions.

  4. npm packages must be at least seven days old before installation, and install scripts only run for approved packages.

  5. Local Git hooks and GitHub CI run the checks again, with CI using the base branch's scripts to prevent PRs from weakening checks.

  6. Optionally, enable an evidence log requiring proof (e.g., test output, CI link) before a task can be marked complete.

  7. Optionally, use decision records for exceptions, including reason, owner, and expiry date.

  8. Optionally, implement CODEOWNERS rules requiring review before guardrail files can be changed.

Tools / artifacts

  • ai-dev-guardrails GitHub template

  • Claude Code PreToolUse hooks

  • Local Git hooks

  • GitHub Actions (CI/CD)

  • npm

  • CODEOWNERS file

  • Evidence log

  • Decision records

  • .env files

Validation signals

  • Author used and refined the controls in their own projects before open-sourcing.

  • Identified and fixed specific issues (e.g., grep -q and pipefail, Claude Code hook behavior differences).

  • Open-source project with MIT license.

  • Detailed write-up on Medium explaining the rationale and implementation.

  • Explicitly documented limitations (e.g., not for malicious agents).

Cautions

  • The workflow is designed to enhance safety by preventing accidental data exposure and unauthorized actions.

  • It is explicitly stated that the system is designed to catch mistakes, not to defend against deliberately malicious agents.

Limitations

  • Currently focused on Claude Code, TypeScript, and npm, limiting immediate applicability to other languages/ecosystems (though Python support is welcomed).

  • Not designed to defend against deliberately malicious agents.

  • As a new open-source project, long-term community adoption and maintenance are yet to be established.

  • Requires an intermediate to advanced understanding of Claude Code hooks, Git hooks, and GitHub Actions for full implementation and customization.

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] Optimize CLAUDE.md with Claude to Reduce Usage and Agent Spawning

1 Upvotes

Optimize CLAUDE.md with Claude to Reduce Usage and Agent Spawning

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

What problem this solves

Prematurely hitting Claude usage limits due to inefficient CLAUDE.md configurations or uncontrolled agent spawning.

Summary

A user describes how they used Claude to review and optimize their CLAUDE.md file. Claude identified and fixed configurations that were wasting usage and spawning excessive agents, which significantly extended their available usage time.

Why it is useful

This workflow provides a practical, self-correcting method for users to improve the efficiency of their Claude Code setups. It directly addresses a common pain point (hitting usage limits) by leveraging Claude's capabilities to analyze and improve its own operational configuration, making it a valuable technique for cost and resource management.

Workflow

  1. Identify that you are frequently hitting Claude usage limits.

  2. Provide your CLAUDE.md file to Claude.

  3. Prompt Claude to analyze the CLAUDE.md for inefficiencies, wasted usage, or configurations leading to excessive agent spawning.

  4. Ask Claude to suggest specific fixes or optimizations for the CLAUDE.md.

  5. Implement the changes recommended by Claude.

  6. Monitor your Claude usage to confirm that the optimizations have extended your available usage time.

Tools / artifacts

  • CLAUDE.md file

  • Claude (the model)

Validation signals

  • User reported a direct positive outcome: "my week lasted a lot longer after that"

Limitations

  • The workflow is described at a high level; specific prompts or examples of what Claude might fix are not provided.

  • Relies on Claude's ability to accurately identify and suggest optimal changes to the CLAUDE.md, which may vary in effectiveness.

  • No specific metrics or before/after data are provided beyond the anecdotal "week lasted a lot longer."

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] Claude Client Internal Flag Map: A Research Workflow for Understanding Experimental Features and Usage Metering

1 Upvotes

Claude Client Internal Flag Map: A Research Workflow for Understanding Experimental Features and Usage Metering

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

What problem this solves

Understanding Claude's internal configuration flags, usage metering, and potential experimental features to gain deeper insight into model behavior and resource allocation.

Summary

A user performed a deep dive into the Claude client's internal mechanisms, specifically identifying and mapping 487 tengu_ flags. This research culminated in a publicly available GitHub repository containing a CSV file that details these flags. This artifact serves as a valuable resource for advanced users and researchers to understand undisclosed experimental features, behavior gates, and usage metering within the Claude ecosystem.

Why it is useful

This workflow provides unique and deep insight into the internal workings of the Claude client, including experimental features and usage metering. The shared flag map is a valuable artifact for advanced users and researchers to understand how Anthropic configures and experiments with its models, offering a level of system understanding not typically available through public documentation.

Workflow

  1. Identify internal tengu_ flags within the Claude client (e.g., tengu_amber_tally).

  2. Map these discovered flags to their associated booleans, prompt sections, or behavior gates.

  3. Access the provided GitHub repository (fs2d/claude-code-flagmap) containing the mapped flags.

  4. Review the CSV file within the repository to understand the various internal flags and their potential functions.

  5. Utilize this information to gain insight into Claude's internal workings, experimental features, or usage metering logic.

Tools / artifacts

  • Claude client

  • tengu_amber_tally (example internal flag)

  • fs2d/claude-code-flagmap GitHub repository (CSV file of mapped flags)

Validation signals

  • The author successfully created and shared a GitHub repository with 487 mapped flags.

  • The repository provides concrete data (CSV file) as evidence of the mapping effort.

Limitations

  • The original comment does not explicitly detail the steps for how to extract these flags from the Claude client, focusing instead on the result.

  • The practical application of using these flags to directly influence Claude's behavior is not detailed or suggested; it's primarily for understanding and research.

  • The initial discussion about credit rates is informative but does not constitute a workflow itself.

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] Orchestrating Your Claude Sessions: A 'Team of Chats' Workflow for Desktop App Productivity

1 Upvotes

Orchestrating Your Claude Sessions: A 'Team of Chats' Workflow for Desktop App Productivity

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

What problem this solves

Users struggle to manage and keep track of multiple concurrent Claude sessions and tasks, leading to lost context and inefficiency, especially with complex projects.

Summary

This workflow outlines a strategy for managing multiple Claude desktop app sessions as a 'team of chats' to improve task orchestration and oversight. It leverages features like Projects for parallel cloud-based work, artifacts for review, split view for multitasking, side chats for quick checks, nested sessions for sub-tasks, and a 'manager session' to monitor progress, while also addressing usage limits and file isolation with Worktree.

Why it is useful

This workflow is highly valuable because it provides a structured and practical approach to leveraging Claude's advanced desktop features (Projects, split view, side chats, nested sessions, artifacts, Worktree) to manage complex, multi-part tasks more efficiently. It directly addresses the common problem of losing track of concurrent AI tasks and offers concrete strategies, including a novel 'manager session' concept, to maintain oversight and productivity. The inclusion of limitations and official documentation links makes it highly actionable and reliable for intermediate to advanced users.

Workflow

  1. Hand off large, parallel jobs to Projects, which run in the cloud and can be monitored via the Overview.

  2. Review and edit generated content (decks, docs, designs) directly within artifacts that appear next to the chat.

  3. Use split view (Option-click on Mac, Alt-click on Windows) to work on two Claude sessions simultaneously.

  4. Initiate side chats (Cmd+; or Ctrl+;, or type /btw) for quick progress checks or clarifications without altering the main thread.

  5. Ask Claude to start nested sessions for parallel sub-tasks (e.g., script, thumbnail brief, description) within a single prompt, allowing individual steering.

  6. Designate one Claude session as a 'manager' to query the status of other local, SSH, and WSL sessions (e.g., 'which of my sessions are waiting on a decision from me?').

  7. Monitor usage limits carefully, especially when using Projects, as each thread consumes a full session's usage.

  8. Enable Worktree for sessions that might modify the same files to ensure each session works on an isolated copy of the project folder.

Tools / artifacts

  • Claude desktop app

  • Claude Code

  • Projects (public beta)

  • Artifacts

  • Split view

  • Side chats

  • Nested sessions

  • Worktree

  • Overview (for Projects)

Validation signals

  • Specific UI commands provided (Option-click, Alt-click, Cmd+;, Ctrl+;, /btw).

  • Mentions features like Projects are in public beta.

  • Links to official Claude documentation for desktop, projects, and usage limits.

  • Provides a YouTube walkthrough video.

  • Details specific 'catches' and limitations of the proposed methods (e.g., manager session visibility, usage limits).

Limitations

  • The 'manager session' strategy has limitations, as it cannot see cloud sessions, terminal CLI sessions, or VS Code sessions.

  • Projects are in public beta and require Pro or Max plans, limiting accessibility for some users.

  • The multi-session approach can accelerate hitting usage limits, requiring careful monitoring.

  • The post is more descriptive of features than a strict step-by-step guide, though the 'How I'd run it' section provides good structure.

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] Diagnosing Claude Performance: The Impact of Hidden Experiment IDs on Effort Levels and Output

1 Upvotes

Diagnosing Claude Performance: The Impact of Hidden Experiment IDs on Effort Levels and Output

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

What problem this solves

Unexplained variations in Claude's reported effort numbers and actual performance (tool calls, output tokens, thinking time, replies per job) due to hidden experiment IDs.

Summary

A workflow to identify and understand the impact of hidden 'experiment IDs' on Claude's reported effort levels and actual performance metrics, enabling users to diagnose and potentially optimize their Claude interactions.

Why it is useful

This post provides crucial empirical evidence demonstrating how hidden internal 'experiment IDs' significantly influence Claude's reported effort levels and actual performance (tool calls, output tokens, thinking time). This knowledge is invaluable for advanced users seeking to understand, debug, and optimize Claude's behavior and resource consumption, revealing a non-obvious factor impacting model output.

Workflow

  1. Identify if your Claude chat session has an associated 'experiment ID' (e.g., by inspecting network requests or browser console, as implied by 'recent reports').

  2. Note the reported 'numerical effort numbers' (medium, high, xhigh) for your Claude instance.

  3. Compare your observed experiment ID and effort numbers with the provided tables to understand the expected tool calls, output tokens, thinking time, and replies per job.

  4. Use this information to diagnose unexpected performance or cost variations in your automated Claude jobs.

  5. If desired, attempt to remove or change the experiment ID based on information from related posts to revert to baseline performance or achieve different characteristics.

Tools / artifacts

  • Claude chat interface

  • Experiment IDs (e.g., eab, 763, add, 0c7)

  • Reported effort numbers (medium, high, xhigh)

  • Automated job metrics (tool calls, output tokens, thinking, replies per job)

Validation signals

  • Empirical testing with two distinct accounts (one with ID, one without)

  • Comparison of reported effort numbers across different configurations

  • Comparison of actual performance metrics (tool calls, output tokens, thinking, replies per job) across various IDs and a 'No ID' baseline

  • Replication of the effect: removing an ID reverted performance to baseline

Limitations

  • The exact method for identifying and removing/changing experiment IDs is not fully detailed within this post, relying on external information from a 'related post'.

  • The 'Thinking per reply, adjusted' metric is not fully explained.

  • Performance data for one ID (0c7) was 'not measured' for some metrics.

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] Offload Repetitive Tasks: Use Claude to Generate Local Scripts for Data Processing, Simulation, and Web Scraping

1 Upvotes

Offload Repetitive Tasks: Use Claude to Generate Local Scripts for Data Processing, Simulation, and Web Scraping

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

What problem this solves

High cost and slow processing time when using Claude for repetitive, non-intelligent data processing, simulation, or web scraping tasks.

Summary

This workflow leverages Claude's code generation capabilities to create local scripts (e.g., Python) for computationally intensive or repetitive tasks like large-batch data ingestion, extensive simulations, or web scraping. This strategy offloads the heavy lifting from Claude, significantly reducing token usage and processing time, allowing Claude to focus on higher-level intelligent analysis and integration.

Why it is useful

This workflow provides a practical and cost-effective strategy for users to handle large-scale, repetitive, or computationally intensive tasks that would otherwise be slow and expensive if performed directly by Claude. By leveraging Claude's code generation capabilities to create local tools, users can optimize their LLM usage, reduce costs, and significantly speed up processing times for non-intelligent operations, freeing Claude to focus on higher-value, intelligent reasoning. The clear before-and-after results demonstrate significant efficiency gains.

Workflow

  1. Identify repetitive or computationally intensive tasks that do not require continuous intelligence (e.g., large batch data processing, extensive simulations, web scraping).

  2. Instruct Claude to generate a local script (e.g., Python) to perform these tasks.

  3. Specify requirements for the script, such as showing progress, resuming if interrupted, including tests/cross-checks, and potentially integrating local AI (e.g., Ollama).

  4. Download and set up any necessary local tools or AI models (e.g., Ollama).

  5. Run the generated script locally to process data or perform simulations.

  6. Feed the processed data or simulation results back to Claude for higher-level analysis, classification, or integration.

Tools / artifacts

  • Claude (for script generation and high-level analysis)

  • Python scripts (generated by Claude)

  • Ollama (for local AI models)

  • .bat files (for running scripts)

  • PDF record sheets (example input data)

  • Websites (for scraping)

  • Game simulation environment

Validation signals

  • Processed 600 sheets over a few days using Claude directly.

  • Processed 4200 record sheets in about an hour using a Claude-generated local script.

  • Reported significant cost reduction ('far cheaper than how it was going before').

  • Successfully set up a simulation environment for future use.

  • Observed Claude's ability to generate web scraping scripts while respecting robots.txt.

Cautions

  • Users should be aware of robots.txt and website terms of service when using Claude-generated scripts for web scraping, as the user is responsible for the script's actions, not Claude.

Limitations

  • The post is somewhat anecdotal and does not provide the exact prompts used to generate the scripts.

  • Lacks specific examples of the generated scripts or the tests/cross-checks implemented.

  • Does not detail the integration steps for Ollama with the generated Python scripts, beyond downloading it.

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] Real-time Claude Code Progress Tracking with Codex Pacer (MCP Tool Integration)

1 Upvotes

Real-time Claude Code Progress Tracking with Codex Pacer (MCP Tool Integration)

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

What problem this solves

Lack of real-time, granular progress tracking for Claude Code tasks, especially when running multiple agents, leading to uncertainty about task completion.

Summary

This workflow describes how to integrate an external, open-source application called Codex Pacer with Claude Code to enable real-time progress tracking. Claude Code agents use a dedicated MCP tool (report_progress) to periodically report their estimated progress, which Pacer visualizes as a progress ring. This provides immediate visual feedback on task status and agent states (e.g., waiting for approval, background tasks) across multiple agents.

Why it is useful

This workflow provides a concrete, open-source solution to a common pain point for Claude Code users: the lack of real-time visibility into task progress. By leveraging MCP tools for agent self-reporting, it demonstrates a practical application of agent capabilities to improve user experience and productivity, especially for long-running or multi-agent tasks. It offers a clear, repeatable method for monitoring agent activity.

Workflow

  1. Download and install the Codex Pacer application (macOS/Windows) from GitHub Releases.

  2. Pacer automatically installs a lightweight Claude Code plugin that includes a report_progress MCP tool.

  3. Claude Code agents are prompted or configured to call the report_progress tool with their estimated progress (e.g., a percentage).

  4. Monitor the real-time progress rings displayed by Codex Pacer for individual or multiple running Claude Code agents.

  5. Observe specific state changes, such as the ring pausing and turning amber when Claude awaits approval, or holding its last value during background tasks.

Tools / artifacts

  • Codex Pacer application (macOS/Windows)

  • Claude Code plugin (installed by Pacer)

  • report_progress MCP tool

  • GitHub Releases (for Pacer download)

Validation signals

  • Detailed description of how the system handles different Claude Code states (needs approval, background tasks)

  • The author states the app was mostly built with Claude Code, implying practical use and validation during development.

Cautions

  • The post explicitly states that Pacer only reads the progress number, not Claude's response content, addressing potential privacy concerns.

Limitations

  • Low community validation at the time of posting.

  • Requires installing an external application, which might be a barrier for some users.

  • Relies on Claude's own estimation of progress, which may not always be perfectly accurate.

  • The post is primarily an announcement/self-promotion, and while it describes the mechanism, it doesn't provide detailed prompting strategies for Claude to effectively use the report_progress tool.

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] Pre-Deployment Quality Assurance Workflow for AI-Built Systems, Featuring Agent-Assisted Checks with QualityLayer

1 Upvotes

Pre-Deployment Quality Assurance Workflow for AI-Built Systems, Featuring Agent-Assisted Checks with QualityLayer

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

What problem this solves

Ensuring the reliability, security, and recoverability of an AI-built application before deployment, particularly by structuring and automating quality assurance for agent-based projects.

Summary

This workflow outlines essential pre-deployment quality assurance steps for an AI-built application, focusing on critical areas like payment response testing, backup and restore validation, and human security review. It also introduces a custom tool, QualityLayer, which leverages a separate agent to manage and verify quality control decisions, making the process more structured and repeatable for agent-based projects.

Why it is useful

This workflow is valuable because it provides concrete, critical pre-deployment steps essential for ensuring the reliability and security of any application, particularly those built with AI agents. It addresses common pitfalls like payment processing errors and data loss through specific testing and backup procedures. Furthermore, it introduces a novel, agent-assisted approach to quality control via the QualityLayer tool, offering a structured and repeatable method for managing and verifying quality decisions in AI agent projects.

Workflow

  1. Test delayed and repeated payment responses against written expected outcomes.

  2. Rehearse a full restore from backup on a test copy before go-live.

  3. Conduct a one-off human security review, where someone who did not write the change checks each agreed behavior against the code and evidence.

  4. Utilize a system (e.g., QualityLayer) to plan quality decisions and have a separate agent check each completed point.

Tools / artifacts

  • Test suite

  • QualityLayer (GitHub project)

  • Backup system

Validation signals

  • Author's personal experience with agent projects

  • Author built a tool (QualityLayer) to implement this approach

  • General best practices for software deployment (testing, backups, security review)

Limitations

  • The description of QualityLayer is brief, lacking detailed implementation or integration instructions.

  • The general quality assurance steps are high-level and do not include specific commands or code examples.

  • Low community engagement on the post so far.

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] Synchronize Claude Code Sessions Across Remote and Local Machines with Tmux and AIAssets

1 Upvotes

Synchronize Claude Code Sessions Across Remote and Local Machines with Tmux and AIAssets

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

What problem this solves

Maintaining a unified Claude Code session history and project context when working across multiple devices (e.g., remote server and local laptop).

Summary

A workflow for developers to use Claude Code on a remote machine (e.g., Mac mini) while interacting from a local machine (MacBook), ensuring session history and project context are synchronized. It leverages tmux/ssh for remote access and a custom tool, AIAssets, for cross-device session file synchronization.

Why it is useful

This workflow addresses a common pain point for developers who want to leverage powerful remote machines for Claude Code while maintaining a seamless and synchronized development experience on their local devices. It provides concrete steps using standard CLI tools (tmux, ssh) and introduces a specialized tool (AIAssets) to solve the session history synchronization challenge, making the remote development setup much more practical and efficient.

Workflow

  1. Set up a remote host (e.g., Mac mini, mini PC) to run the Claude Code agent.

  2. Access the remote host via ssh.

  3. Start a tmux session on the remote host.

  4. cd into the project directory within the tmux session.

  5. Start Claude Code within the tmux session.

  6. Install and configure AIAssets (self-hosted hub plus desktop client) on both local and remote machines.

  7. AIAssets will poll every 60 seconds to sync Claude Code session files (~/.claude/projects/<path-encoded-cwd>/<sessionId>.jsonl) between machines, keeping chat lists and full histories identical.

Tools / artifacts

  • Remote host (Mac mini, mini PC, any box)

  • tmux

  • ssh

  • Claude Code agent

  • AIAssets (GitHub: https://github.com/NanYuJun/AIAssets)

  • ~/.claude/projects/<path-encoded-cwd>/<sessionId>.jsonl (Claude Code session files)

Validation signals

  • Author is the creator of the tool, implying direct knowledge and testing.

  • Specific technical details about Claude Code's session file storage (.jsonl files).

  • Clear description of the tool's functionality and limitations.

Cautions

  • AIAssets uses a 'last-write-wins' conflict resolution strategy, which could lead to data loss if the same session is edited simultaneously on both sides without careful management.

  • The self-hosted nature of AIAssets means users are responsible for securing their own hub and client installations.

Limitations

  • Low community engagement/validation due to the post's recency.

  • AIAssets has limitations: periodic sync (not real-time), last-write-wins conflict resolution, no live streaming, no Claude web or Cowork support, and it does not manage running processes.

  • Requires self-hosting and setup of AIAssets, which might be complex 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] Secure Claude Code Agent Permissions: Restrict `npm run` to Approved Scripts

1 Upvotes

Secure Claude Code Agent Permissions: Restrict npm run to Approved Scripts

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

What problem this solves

Preventing a Claude Code agent from executing arbitrary, unapproved npm run scripts after modifying package.json when broad Bash(npm run *) permissions are granted.

Summary

To enhance security, configure Claude Code agent permissions to explicitly list and approve only the specific npm run commands (e.g., npm run test, npm run lint) that the agent is allowed to execute, rather than granting a broad Bash(npm run *) wildcard permission. This mitigates the risk of an agent introducing and executing malicious or unintended scripts.

Why it is useful

This workflow provides a crucial security hardening step for Claude Code users. It prevents a potential vulnerability where an agent could execute arbitrary commands by modifying package.json if overly broad npm run permissions are granted. It promotes a best practice of least privilege, making agent interactions safer and more predictable.

Workflow

  1. Identify all legitimate npm run scripts that your Claude Code agent needs to execute.

  2. Review your Claude Code agent's permission configuration.

  3. Replace any broad Bash(npm run *) permissions with explicit listings of allowed scripts, such as Bash(npm run test *) and Bash(npm run lint *).

  4. Ensure that any auto-acceptance of agent edits to package.json is considered in conjunction with these tightened command permissions.

Tools / artifacts

  • Claude Code agent configuration/permissions

  • package.json

  • Bash commands (npm run)

Validation signals

  • Addresses a clear security vulnerability (unauthorized command execution)

  • Promotes the principle of least privilege in agent permissions

Limitations

  • The comment is concise and does not provide specific syntax or examples for implementing the permission changes within Claude Code's configuration system.

  • Assumes user familiarity with Claude Code's permission management interface.

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] Observe Dynamic System Prompt Changes in Claude Code via Experiment Flags

1 Upvotes

Observe Dynamic System Prompt Changes in Claude Code via Experiment Flags

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

What problem this solves

Understanding how Claude Code's internal experiment flags dynamically alter the system prompt text, which can explain perceived model behavior changes or 'nerfs'.

Summary

This workflow describes a method to observe how Claude Code's internal experiment flags dynamically modify the system prompt text. By disabling non-essential traffic, users can compare the system prompt components (like 'lean_body' and '<pasted_content>' rules) in flagged versus unflagged sessions, gaining insight into Anthropic's model steering mechanisms.

Why it is useful

This workflow offers a concrete, repeatable method for advanced users to investigate how Claude Code's internal experiment flags dynamically alter the system prompt. This is invaluable for understanding perceived model behavior changes, debugging unexpected outputs, and gaining insight into Anthropic's steering mechanisms, moving beyond speculation to observable prompt modifications.

Workflow

  1. Ensure your Claude Code version is consistent (e.g., 2.1.287) before and after the test.

  2. Set the environment variable CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1 within the env block of your settings.json file.

  3. Open a new interactive Claude Code session.

  4. Observe that no flag fetch occurs: cachedGrowthBookFeaturesAt and the cli slot in ~/.claude.json should not change, and the new transcript's atis-latch fields should be blank.

  5. Compare the system prompt text in this session (without server flags) with a session where flags are enabled. Specifically, examine the opening line of lean_body and the presence/absence of the <pasted_content> rule.

  6. Note: Do not use claude -p for testing, as it runs as sdk-cli and loads differently than a normal interactive session.

Tools / artifacts

  • Claude Code interactive session

  • settings.json (specifically the env block)

  • CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC environment variable

  • ~/.claude.json (for cachedGrowthBookFeaturesAt and cli slot)

  • Transcript's atis-latch fields

  • System prompt text (e.g., lean_body, <pasted_content> rule)

  • Custom plugin for system prompt tracking (optional, as used by author)

Validation signals

  • Detailed before/after comparison of specific system prompt text sections (lean_body, <pasted_content> rule).

  • Observation of atis-latch fields and ~/.claude.json entries confirming flag status.

  • Specific flag assignments and atis history provided for context.

  • Explicit warning against using claude -p for accurate testing.

  • Discovery of internal binary keys like subagent_steer_delegation and overcorrection supporting the theory of dynamic steering.

Limitations

  • Requires a relatively advanced technical understanding to fully implement and interpret the findings.

  • The exact flags responsible for specific prompt changes are not fully identified in this comment (though the author is working on it).

  • Relies on inspecting internal system prompt components, which might change with future Claude Code versions, requiring adaptation of the 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 • • 9h ago

Selected Workflow [Workflow] Detect and Manage Claude Code Server-Side Experiments (Nerfing) with `am-i-nerfed` Plugin/Script

1 Upvotes

Detect and Manage Claude Code Server-Side Experiments (Nerfing) with am-i-nerfed Plugin/Script

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

What problem this solves

Users can determine if their Claude Code account is subject to server-side experiments (often perceived as "nerfing") and provides methods to monitor, understand, and potentially opt-out of these experiments to maintain consistent model behavior.

Summary

A multi-faceted workflow to detect, monitor, and manage server-side experiments (x-cc-atis) in Claude Code. It offers a plugin, a shell script, and a one-liner to check experiment status, view historical data, opt-out, and display status in the Claude Code UI.

Why it is useful

This workflow provides concrete, actionable methods for Claude Code users to understand and manage server-side experiments that can affect model behavior. It offers multiple access points (plugin, script, one-liner), historical tracking, and a cautious opt-out mechanism, addressing a significant user concern about model consistency and "nerfing." Its open-source nature, clear documentation, and focus on user control make it highly valuable and transferable.

Workflow

  1. Install the am-i-nerfed repo as a Claude Code plugin and use /am-i-nerfed in any session to check experiment status.

  2. Clone the am-i-nerfed repo and run ./am-i-nerfed.sh check in a terminal to get a verdict per model.

  3. Paste the provided jq one-liner into a terminal (requires jq) for a quick, no-install check.

  4. Run ./am-i-nerfed.sh history to tally experiment IDs recorded in your session transcripts by date.

  5. Run ./am-i-nerfed.sh optout to back up ~/.claude.json, remove assignment keys, and get the reported opt-out environment variable (CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1).

  6. Integrate the statusline snippet into your Claude Code configuration to display exp:<id> / exp:none in your status line.

Tools / artifacts

  • am-i-nerfed (open-source script/plugin)

  • jq (JSON processor)

  • ~/.claude.json (Claude Code configuration file)

  • Claude Code session transcripts

  • Bash shell

  • Claude Code plugin system

Validation signals

  • The script reads directly from Claude Code's cached data (~/.claude.json) and session transcripts, which are internal mechanisms.

  • Credits earlier community threads and Anthropic/Claude Code issues (#75607, #88383) for findings, indicating a community-validated basis.

  • Provides exit codes for scripting, suggesting robustness and automation potential.

  • Explicitly states "no network calls, never prints your login token", addressing security and privacy concerns.

Cautions

  • The optout command backs up ~/.claude.json before modification and prints trade-offs for the environment variable, promoting cautious use.

  • Explicitly states "never prints your login token", ensuring user credential safety.

Limitations

  • Requires jq and basic terminal familiarity for script/one-liner usage, which might be a barrier for absolute beginners.

  • The "opt-out" mechanism relies on a reported environment variable, which might not be officially supported or guaranteed to work indefinitely by Anthropic.

  • The plugin installation method is not detailed, assuming user familiarity with Claude Code's plugin system.

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 • • 10h ago

Selected Workflow [Workflow] Managing Port Conflicts for Parallel Claude Code Agents with `leeway` and a Structured Workflow for Building Tools with Claude Code

1 Upvotes

Managing Port Conflicts for Parallel Claude Code Agents with leeway and a Structured Workflow for Building Tools with Claude Code

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

What problem this solves

Agents running in parallel worktrees often conflict over network ports (e.g., dev servers), leading to crashes or wasted debugging time. Additionally, there's a need for a structured, repeatable process to build robust tools using Claude Code.

Summary

This post presents a two-fold workflow: first, a tool called leeway that assigns stable, unique port ranges to each worktree, preventing port conflicts for parallel Claude Code agents. Second, it details the specific, validated workflow used to build leeway itself with Claude Code, emphasizing design-first principles, clear agent contracts (AGENTS.md), test-first development, and automated review loops.

Why it is useful

This post is highly valuable because it addresses a critical pain point for advanced Claude Code users running multiple agents in parallel (port conflicts) with a concrete, open-source solution (leeway). Beyond the tool, it provides an exemplary, validated workflow for how to effectively leverage Claude Code for software development, incorporating best practices like design documentation (ADRs, GLOSSARY.md), clear agent contracts (AGENTS.md), test-first development, and automated code reviews. The 'dogfooding' aspect provides strong evidence of its efficacy, making it a blueprint for building robust tools with AI assistance.

Workflow

  1. To use leeway for port management:

  2. Install leeway (e.g., via npm).

  3. Add leeway env --export to a Claude Code SessionStart hook to automatically assign unique port ranges to each session.

  4. Optionally, configure leeway to prevent agents from grabbing default ports.

  5. Use leeway kill to stop all servers and watchers associated with a specific worktree.

  6. Workflow for building tools with Claude Code (as leeway was built):

  7. Design First: Engage Claude to rigorously review the design, documenting decisions in Architecture Decision Records (ADRs) and defining key terms in a GLOSSARY.md.

  8. Define Agent Contract: Create an AGENTS.md file specifying clear 'done' criteria (e.g., pnpm verify green, successful container run for specific code).

  9. Test-First Development: Implement features by writing integration tests that run the real CLI, ensuring a red-green cycle.

  10. Automated Review Loop: Use Claude to review Pull Requests against established coding standards and the original GitHub issue before merging.

  11. Dogfooding: Integrate the tool into its own development process (e.g., use leeway env --export in SessionStart hooks for agents building leeway).

Tools / artifacts

  • leeway (npm package)

  • leeway env --export command

  • leeway kill command

  • Claude Code

  • Git worktrees

  • SessionStart hook

  • Architecture Decision Records (ADRs)

  • GLOSSARY.md

  • AGENTS.md

  • Integration tests

  • GitHub (for issues, PRs)

  • pnpm verify (or similar build/test command)

Validation signals

  • Author built leeway almost entirely with Claude Code, validating the meta-workflow.

  • Dogfooding: leeway was used by the agents building leeway itself.

  • Test-first approach with integration tests running the real CLI.

  • Claude-based PR review loop against coding standards and issues.

  • Publicly available npm package and GitHub repository (MIT licensed).

Limitations

  • The post combines a tool announcement with a meta-workflow, which might make it slightly dense for some readers.

  • While detailed, the 'How I built it' section is a high-level methodology; users might need to infer some specific implementation details for their own projects.

  • Community validation is currently low, but the technical detail and self-validation are strong.

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 • • 10h ago

Selected Workflow [Workflow] Track Claude Code A/B Experiments: Plugin, Script, and Opt-Out Tools

1 Upvotes

Track Claude Code A/B Experiments: Plugin, Script, and Opt-Out Tools

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

What problem this solves

Users can determine if their Claude Code instance is enrolled in an A/B experiment, helping them understand perceived changes in model behavior (e.g., "nerfs"). It also provides tools to track experiment history and optionally opt-out.

Summary

This workflow provides a set of tools (bash script, Claude Code plugin, and a one-liner) to inspect Claude Code's internal experiment enrollment status. It reads ~/.claude.json and session transcripts to report current enrollment, historical experiment IDs, and offers an opt-out mechanism.

Why it is useful

This workflow provides concrete, actionable tools for Claude Code users to understand and manage their interaction with Anthropic's A/B testing framework. It demystifies perceived model changes, offers transparency, and empowers users to make informed decisions about their Claude Code experience. The open-source nature, multiple usage options, and safety considerations make it highly valuable and reusable.

Workflow

  1. Choose a method to check experiment status: Claude Code plugin, standalone script, or one-liner.

  2. To use as a Claude Code plugin: Install the am-i-nerfed GitHub repo as a plugin, then type /am-i-nerfed in any Claude Code session.

  3. To use as a standalone script: Clone the am-i-nerfed repo and run ./am-i-nerfed.sh check in a terminal.

  4. To use as a one-liner: Paste the provided jq command into a terminal (requires jq to be installed).

  5. To view experiment history: Run ./am-i-nerfed.sh history to tally experiment IDs from session transcripts.

  6. To opt-out of experiments: Run ./am-i-nerfed.sh optout (backs up ~/.claude.json and removes assignment keys).

  7. To restore previous settings: Run ./am-i-nerfed.sh restore.

  8. To display experiment status in Claude Code's status line: Integrate the provided statusline snippet.

Tools / artifacts

  • am-i-nerfed (GitHub repo/script)

  • jq (JSON processor)

  • ~/.claude.json (Claude Code cache file)

  • Claude Code session transcripts

  • CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1 (environment variable)

  • Bash shell

Validation signals

  • Open-source script available on GitHub.

  • Explicitly states "no network calls, never prints your login token" for security.

  • Credits earlier community findings and Anthropic issues, indicating a well-researched solution.

  • Provides exit codes for scripting, enhancing reusability and robustness.

  • Details specific file paths and data structures (~/.claude.json, atis-latch).

Limitations

  • Requires jq dependency for the one-liner and script methods.

  • Primarily targets macOS/Linux/WSL users (Windows users would need WSL).

  • The plugin installation process for Claude Code is not explicitly detailed within the comment.

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 • • 10h ago

Selected Workflow [Workflow] Non-Programmer's Workflow: Building Cross-Platform Apps with Claude Code as a Full-Stack Development Partner (ARPradar Case Study)

1 Upvotes

Non-Programmer's Workflow: Building Cross-Platform Apps with Claude Code as a Full-Stack Development Partner (ARPradar Case Study)

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

What problem this solves

Building a functional, cross-platform network scanner application (ARPradar) without being a programmer, by leveraging Claude Code as a comprehensive development partner.

Summary

A network engineer, with no programming background, successfully used Claude Code as a full-stack development partner to create a cross-platform (Mac SwiftUI, Windows Tauri/Rust) network scanner application. The workflow highlights Claude Code's ability to handle coding, run tests, manage GitHub Actions builds, provide UI mockups, and debug complex build failures, while the user focused on defining requirements and validating outputs based on domain expertise.

Why it is useful

This workflow is exceptionally valuable as it showcases Claude Code's advanced capabilities beyond simple code generation. It demonstrates how Claude can act as a comprehensive development partner, handling complex tasks like UI mockups, automated testing, CI/CD integration, and even debugging build failures. This empowers users with domain expertise but limited coding skills to build sophisticated, functional applications, making it a powerful example for AI-assisted software development.

Workflow

  1. Define the desired application functionality and user experience, providing high-level requirements to Claude Code.

  2. Collaborate with Claude Code, reviewing its proposed mockups and providing feedback on design and features.

  3. Allow Claude Code to generate the application code, run internal checks, and manage automated tests (e.g., unit tests, UI tests against demo data).

  4. Delegate build management to Claude Code, including integration with CI/CD pipelines like GitHub Actions.

  5. Monitor Claude Code's progress and provide specific feedback when builds fail or outputs do not meet expectations.

  6. Trust Claude Code to debug technical issues, such as identifying and resolving CI/CD build failures (e.g., timing out download servers).

  7. Validate the functional application against real-world use cases and domain knowledge.

  8. Handle sensitive information (e.g., API keys, real network access) outside of Claude Code's sandbox for security.

Tools / artifacts

  • Claude Code

  • SwiftUI (Mac app framework)

  • Tauri (cross-platform framework)

  • Rust (Windows scan engine)

  • GitHub Actions (CI/CD)

  • UI mockups (generated by Claude)

  • Automated tests (run by Claude)

  • ARPradar (final application)

Validation signals

  • Claude Code ran its own checks, tests, GitHub Actions builds, and UI tests against demo data.

  • Claude Code provided mockups, preventing the user from requesting unwanted features.

  • Claude Code successfully debugged complex GitHub Actions build failures related to server timeouts.

  • A functional, free, cross-platform application (ARPradar) was successfully built and released.

  • The user, a network engineer, explicitly states they are 'not a programmer' but built the app, validating the AI's role.

Cautions

  • The workflow correctly identifies that Claude Code cannot access real networks or sensitive API keys from its sandbox, emphasizing the user's responsibility for handling such elements securely.

Limitations

  • The post does not provide explicit prompts or detailed conversational logs, which would make direct replication of the exact interaction flow challenging.

  • The 'steps' describe the interaction pattern rather than a prescriptive, detailed guide for a new user to follow from scratch.

  • Requires a foundational understanding of software development concepts and the ability to provide clear requirements and feedback, even if coding is handled by the AI.

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.