Agent Mode is PorkiCoder's flagship feature — built on the official
@anthropic-ai/claude-agent-sdk. It gives Claude autonomous access to your
project filesystem, shell, and the web, while keeping you in control of every file write
through human-in-the-loop diff review.
1. You describe the task — "Refactor the auth module", "Add dark mode", "Fix the failing test". Plain English.
2. The agent plans and acts — Claude autonomously calls tools:
Read to understand files, Glob and Grep to search your codebase, Bash to run commands, WebSearch and WebFetch for documentation, and sub-Agent to delegate subtasks.
3. Diff review on every write — When the agent wants to edit or create a file, the change routes through a DiffReviewBridge into a Monaco Diff Editor modal. You see side-by-side diffs and accept or reject each change. Only approved writes are applied.
4. Adaptive thinking — Extended thinking is enabled with thinking deltas streamed live, so you can follow the agent's reasoning as it works through complex tasks.
5. Progress tracking — Toast-style progress cards show planning, tool calls, thinking, and completion events in real time.
Glob — Find files by pattern (e.g.,
src/**/*.ts).
Grep — Search file contents with regex across your codebase.
Bash — Run shell commands: install packages, run tests, git operations, build steps.
WebSearch — Search the web for documentation, APIs, or error solutions.
WebFetch — Fetch content from URLs for context.
Sub-Agent — Spawn child agents to handle subtasks in parallel.
Edit / Write — File modifications routed through human-in-the-loop diff review.
porki.md file in your project root and the agent will load it as persistent project-level instructions. Use it to describe your codebase conventions, architecture, key files, and preferences — the agent reads it before every task so it always has the right context.