Zoku: A Tool That Automatically Detects Repeated Workflows in Claude Code

✍️ OpenClawRadar📅 Published: April 15, 2026🔗 Source
Zoku: A Tool That Automatically Detects Repeated Workflows in Claude Code
Ad

Zoku is a tool built with Claude Code that monitors your Claude Code sessions to discover and automate repeated workflows. It was created after the developer noticed performing the same sequence of actions—like grepping, opening a file, editing, running tests, and fixing linting issues—daily without realizing it.

How It Works

Zoku integrates with Claude Code's event system using specific hooks: hookSpecificOutput, PostToolUse, Stop, SessionStart, and UserPromptSubmit. It silently records every tool action during your sessions. After collecting data from a couple of sessions, it analyzes the sequences to find patterns, such as "Grep then Read then Edit then Bash then Bash" appearing across multiple sessions.

When you start a new session, Zoku communicates these discovered patterns to Claude, enabling Claude to proactively suggest or automatically execute the identified workflows.

Key Features and Details

  • Captures tool responses, including exit codes and errors.
  • Normalizes MCP tool names (e.g., converts mcp__github__push_files to github:push_files).
  • Records user prompts to eventually correlate intentions with actual tool usage.
  • Patterns persist through Claude Code's context compaction and are automatically re-injected.
  • No configuration required and no external dependencies.
  • All data stays local, stored in ~/.zoku/; nothing is sent externally.
  • Currently at version 0.1.2, with 67 tests passing on macOS, Windows, and Linux.
Ad

Installation and Usage

Install via pip: pip install zoku

Setup command: python -m zoku setup

After installation, use Claude Code normally. Once you have completed two or more sessions, you can view detected patterns with: python -m zoku patterns

Development Status and Future Plans

The tool is in early development but actively maintained. Planned features include workflow replay, cross-project pattern aggregation, and cross-agent translation. The latter would allow recording a workflow in Claude Code and replaying it in another agent like Cursor.

The source code is available on GitHub at https://github.com/kasparovabi/zoku.

📖 Read the full source: r/ClaudeAI

Ad

👀 See Also

MemAware Benchmark Tests AI Memory Beyond Keyword Search
Tools

MemAware Benchmark Tests AI Memory Beyond Keyword Search

MemAware is a benchmark with 900 questions across 3 difficulty levels that tests whether AI assistants with memory can surface relevant context when queries don't hint at it. Results show BM25 search scored 2.8% vs 0.8% with no memory, while vector search drops to 0.7% on cross-domain connections.

OpenClawRadar
Scaling Karpathy's Autoresearch with 16 GPUs: Results and Methods
Tools

Scaling Karpathy's Autoresearch with 16 GPUs: Results and Methods

The SkyPilot team gave Claude Code access to 16 GPUs on a Kubernetes cluster to run Karpathy's Autoresearch project. Over 8 hours, the agent submitted ~910 experiments, reduced validation bits per byte from 1.003 to 0.974 (2.87% improvement), and reached the best validation loss 9x faster than sequential execution.

OpenClawRadar
Open Source AI Agent Prompt Library Reaches 100 GitHub Stars
Tools

Open Source AI Agent Prompt Library Reaches 100 GitHub Stars

A community repository called ai-setup provides shared system prompts, Cursor rules, Claude configs, and local model workflow setups for AI agents. The project has 100 GitHub stars and 90 merged PRs.

OpenClawRadar
Claudigotchi: Physical Tamagotchi Device That Feeds on Claude Code Activity
Tools

Claudigotchi: Physical Tamagotchi Device That Feeds on Claude Code Activity

Claudigotchi is a physical desktop creature running on an ESP32 with an LCD screen that connects to Claude Code via a plugin. The device's hunger system responds to coding activity, with visual states and sound effects that escalate when Claude is left idle.

OpenClawRadar