The CLI-First Agent Workflow
For developers who already ship with AI - and want more control.
You already know AI-assisted coding. This workshop covers what the CLI unlocks beyond the IDE.
IDE-first vs agent-first thinking
CLAUDE.md, permissions, project setup
Subagents, custom agents, agent teams
Skills, hooks, MCP servers
Headless mode, CI/CD, pipelines
Cursor concept → Claude Code equivalent
Cursor wraps AI around your editor. Claude Code gives the AI a terminal and lets it work.
You open files, position cursor, invoke AI inline. The AI assists within your editor's context.
You describe the outcome. The agent reads files, runs commands, makes edits, tests, and iterates.
The key insight: You stop being a typist with AI assist. You become a technical lead directing agents.
Good news - many Cursor concepts have direct equivalents.
| Cursor | Claude Code |
|---|---|
.cursorrules |
CLAUDE.md (more powerful - hierarchical) |
| Composer | Natural language prompts in the terminal |
| @files in chat | @files and @directories - same syntax |
| Agent mode | Default behavior - always agentic |
| Model picker | Alt+P or /model |
| Apply to file | Automatic - Claude edits files directly |
Your .cursorrules knowledge transfers. Same idea, but CLAUDE.md supports a global → project → directory hierarchy.
Features that have no Cursor equivalent. This is where it gets interesting.
Spawn parallel agents with their own context windows. Research while implementing.
Multiple agents collaborating via shared task lists and direct messaging. New with Opus 4.6.
Lifecycle events that trigger your scripts. Auto-lint on edit, block dangerous commands, log everything.
Packaged expertise that Claude loads automatically when relevant. Hot-reloaded, shareable.
Connect to databases, APIs, browsers, and any external tool through an open protocol.
Run Claude in CI/CD pipelines, cron jobs, and shell scripts. No human in the loop.
That's it. Claude reads your codebase, makes the changes, runs the tests, and fixes failures. No file selection needed.
Not just a single file. A hierarchy that Claude reads at session start.
npm run test, npm run lint - so Claude can verify its own work.
Patterns, conventions, and "never do X" rules. Like .cursorrules but version-controlled.
Pro tip: Tell Claude "update CLAUDE.md with this convention" and it maintains the file itself. Use /init to bootstrap.
In Cursor, you approve each edit inline. Claude Code gives you three modes.
Claude asks before each file edit and command. You review diffs inline. Like Cursor's apply flow.
File edits auto-approved. Commands still need approval. For when you trust the direction.
Read-only exploration. Claude researches but can't modify anything. Perfect for architecture review.
In settings.json, whitelist specific tools like Bash(npm test:*). Surgical control.
Cursor has Cmd+K and Cmd+L. Here's the Claude Code equivalent muscle memory.
The big one: ! prefix runs commands without going through the AI. Check git status, run tests, peek at files - zero token cost.
Cursor has no equivalent. This is how you tackle complex architecture before writing code.
Press Shift+Tab twice. Claude explores your codebase in read-only mode, then presents a plan for approval before any edits.
Control how deeply Claude reasons before responding. Four levels of effort.
Toggle: Alt+T
Trigger words:
"think" → standard reasoning
"think harder" → extended
"ultrathink" → max (32k tokens)
Cursor handles context silently. In Claude Code, you manage it - and that's a superpower.
/contextSee exactly where your tokens go. System prompts, CLAUDE.md, skills, conversation - all broken down with a visual grid.
/compactCompress conversation to reclaim context. Add focus: /compact Focus on the auth refactor
Start broad (explore), narrow focus (implement), compact when needed, repeat. Context auto-compacts at ~95% capacity.
1M token context window in beta. 128K output tokens. Claude handles long sessions by automatically compacting older context while preserving key information.
No Cursor equivalent. Spawn specialized agents that work in parallel with their own context.
Fast, read-only codebase exploration using Haiku. Searches files without consuming your main context.
Dedicated research for planning mode. Reads code and returns findings to the main agent.
Full tool access in a separate context window. For complex multi-step operations.
Terminal commands in isolated context. Run builds, tests, or system operations separately.
Why it matters: Research in one agent, implement in another. No context pollution. Parallel execution. This is the "hire a team" moment.
Build your own specialized agents. Drop a markdown file, get a domain expert.
toolsmodelmemorymaxTurnsNew with Opus 4.6. Multiple Claude Code instances collaborating on one project.
Your main session. Spawns teammates, assigns tasks, coordinates. Use Shift+Tab for delegate-only mode.
Independent agents with their own context. Can message each other directly - not just report to lead.
Tasks with dependency tracking. Teammates self-claim the next unblocked task when done.
Direct messaging between any agents. Cross-layer coordination without bottlenecks.
Best for: 2-5 teammates, 5-6 tasks each. Think frontend + backend + tests in parallel.
Like VS Code extensions, but for your AI agent. Packaged expertise that auto-loads when needed.
Claude reads skill descriptions and loads them automatically when your prompt matches. No manual invocation needed.
Edit a skill mid-session - changes take effect immediately. No restart required (v2.1+).
Community skills: Install from the public skill repo or create your own. Skills can include templates, examples, and reference files.
Run your scripts when Claude does things. Three hook types: command, prompt, and agent.
| Event | When | Can Block? |
|---|---|---|
PreToolUse |
Before any tool runs | Yes - allow/deny/ask |
PostToolUse |
After tool succeeds | No - feedback only |
Stop |
Claude finishes responding | Yes - force continue |
TaskCompleted |
Agent marks task done | Yes - quality gate |
SessionStart |
Session begins | No |
Model Context Protocol - an open standard for connecting AI to external tools. Like APIs, but for agents.
Query Postgres, SQLite, or any DB directly. Claude writes and runs queries.
Navigate pages, fill forms, read DOM. Debug frontend issues live.
Connect to Slack, GitHub, Jira, or any service. Claude acts on your behalf.
Persistent knowledge graphs. Claude remembers across sessions via MCP.
Reference MCP tools with @mcp:server-name in prompts. Cursor has no equivalent.
This is the ultimate "no Cursor equivalent." Run Claude without a human in the loop.
Auto-review PRs, fix lint errors, generate changelogs. Use claude-code-action for native integration.
Delegate to cloud with & syntax. Long-running tasks execute asynchronously while you keep working.
The vision: Claude doesn't just help you write code. It reviews PRs, maintains docs, monitors tests, and fixes regressions - all headlessly.
Cursor doesn't persist sessions. Claude Code treats every conversation as resumable work.
claude -c resumes last session. claude --resume opens a picker. Sessions persist 30 days.
Fork a session into a new branch. Try something different without losing the original path.
Every edit is checkpointed. Press EscEsc to rewind both code and conversation. Three restore options.
/teleport moves a session between terminal, desktop app, and web IDE. Start on laptop, continue on desktop.
The safety net: EscEsc is your undo button for everything. Cursor has Cmd+Z for individual files. Claude Code rewinds the entire agent state.
CLAUDE.md@file! bash (free)Esc×2 rewindShift+Tab mode cycleAlt+P model switchCtrl+B background@ mention files
/init, /compact, /context, /model, /resume, /rewind, /teleport, /hooks, /agents, /permissions
-p (headless), -c (continue), --resume, --from-pr, --output-format json
You came from Cursor knowing AI-assisted coding. Now you have agent-directed development - parallel agents, lifecycle hooks, composable skills, and headless automation.
Master CLAUDE.md, permission modes, ! and EscEsc
Add subagents, custom agents, and your first skill
Set up hooks, MCP servers, and headless pipelines
Agent teams. You're now directing a dev team, not typing code.
Want hands-on training? We run workshops on Claude Code and agent development.
Get in touch →
Many humans use both Cursor and Claude Code. They're complementary, not competing.