# "I was using Claude Code wrong The Ultimate Workflow"
<!--
ref: @content/youtube/ai-jason/2025-07-24-i-was-using-claude-code-wrong-the-ultimate-workflo
triggers: [switching from Cursor, need for interactive collaboration, requirement alignment before coding, automating repetitive tasks]
trigger_prompt: When transitioning from another tool like Cursor, or when you want to enhance your coding process by aligning on project requirements and utilizing automation features.
version: 4
updated_at: 2026-10-31T18:26:01.929Z
-->

Claude Code (AI Jason, 2025-07-24): Claude Code is more powerful than Cursor when used with its native interactive model — plan-first, sub-agent delegation, and hook-driven automation — rather than bypassed with permission-skipping flags.

AI Jason, an AI-focused creator and founder of the AI Builder Club, shares the workflow refinements he adopted after switching fully from Cursor to Claude Code.

## Core Thesis
Claude Code is more powerful than Cursor when used with its native interactive model — plan-first, sub-agent delegation, and hook-driven automation — rather than bypassed with permission-skipping flags. The real productivity unlock is treating Claude Code as a collaborator that aligns on intent before writing code, and then extending it with hooks, custom slash commands, and model routing to match your project's needs.

## Key Insights
- **`CLAUDE.md` is persistent system context**, appended to every system message — simpler than Cursor rules but equally powerful when used for plan-and-review directives.
- **Spec-driven ("plan-first") development** mirrors Amazon's Kiro workflow: align on requirements and architecture in `.claude/tasks/{taskname}.md` before implementation.
- **Plan Mode** (double Shift+Tab) loads a restricted system prompt focused on research and architecture — ideal for any non-trivial feature.
- **Sub-agents via the `task` tool** preserve the parent context window by returning only a summary, enabling parallel work and offloading large file reads.
- **Hooks** trigger programmatic actions at lifecycle events (Stop, PostToolUse, etc.); exit code 2 blocks and feeds stderr back to Claude Code to force corrections.
- **Custom slash commands** are just markdown files in `.claude/commands/` — trivially shareable across projects.
- **Claude Code lacks file snapshots on conversation revert** — external tools like CC Undo or Yoyo fill that gap.
- **`ANTHROPIC_BASE_URL` redirection** lets you route Claude Code to alternative models like Kimi K2 (~80% cheaper) for cost-sensitive experimentation.

## Actionable Takeaways
1. Run `/init` on any codebase to auto-generate `CLAUDE.md`, then add a plan-and-review directive that saves plans to `.claude/tasks/`.
2. Use "always auto-approve" for safe commands instead of `--dangerously-skip-permissions` — preserve the interactive review loop.
3. Enter plan mode (double Shift+Tab) before any semi-complicated feature and iterate the spec doc back-and-forth before coding.
4. Delegate large file reads and independent parallel work to sub-agents via the `task` tool to conserve parent-agent tokens.
5. Add a `PostToolUse` hook that runs `tsc` after Edit/Write/MultiEdit to replicate Cursor's inline type-checking.
6. Add a `Stop` hook that plays a system sound when tasks complete.
7. Install CC Undo or Yoyo for file-level snapshot/rollback — Claude Code doesn't persist file state across conversation reverts.
8. Use `!` prefix for bash mode (output enters context) and `#` prefix for memory mode (notes saved to CLAUDE.md).
9. Try SuperClaude for a pre-built command library (e.g., `/sc:analyze` for architecture reviews).
10. Alias Kimi K2 via `ANTHROPIC_BASE_URL` override as a cheap alternative when Claude credits run low.
11. Enable working-directory persistence so the CWD is appended to every prompt — prevents commands from executing in the wrong folder.
12. Build a personal library of rules, hooks, and custom commands you copy-paste into new projects.

## Notable Quotes
> "One of the key advantage of the cloud codes UX is that allow you to interact with cloud much better."

> "It is almost always better to just align with cloud code what exactly do you want."

> "When the agent is in plan mode, it has this special system prompt and limit access to tools."

> "Only the last part which is summary of the findings will be sent back to the parent cloud code agent."

> "This is a feature that I probably missed the most from cursor... this hook will basically replicate that functionality directly."

> "Every time when cloud is running, it will always append the current working directory into the prompt. So it will always remember where it is instead of running command in run place."

> "Try to rebuild cloud code from scratch so that we can learn the best practice of building effective AI coding agents."

---

*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*

*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*