Coding agent workflow
Connect Claude Code, Codex, or Cursor over MCP and CLI, sync tasks, and run personal tool handoffs.
Connect an autonomous coding agent
Combine the hosted MCP server, the pf CLI, repository instructions, and Tool Handoffs so coding agents (Claude Code, Codex, Cursor, Gemini CLI) pick up real tasks, keep checklists accurate, and hand work back for human review.
- 01Developer
Connect & scope
Sign in with pf auth login --web and run pf agent setup --oauth --agents-md --write.
- 02Agent / Handoff
Receive or claim work
Read assigned tasks, wait locally via pf handoffs wait --json, or react to a webhook.
- 03Agent
Update as you build
Move the task to in_progress, check off checklist milestones, and comment test output.
- 04Human
Review & accept
Agent moves the task to in_review or submits a handoff result; a teammate reviews and accepts.
- Task changes mid-run
- Stale-context protection blocks accepting outdated handoff results. Dismiss the stale run and request a fresh handoff.
- Free plan workspace
- Hosted MCP works read-only on Free (projects, posts, comments, reactions, tasks). Pro unlocks writes and personal tool handoffs.
Configure CLI, MCP, and task updates
- 1.
Install the CLI and sign in via browser
Run
npm install -g pfeed-cli, thenpf auth login --webto pick your workspaces without manually creating a token. Confirm withpf auth check. - 2.
Configure your coding agents in one command
Run
pf agent setup --oauth --agents-md --writeto register the hosted MCP server in Claude Code, Cursor, VS Code, Codex, or Gemini CLI and write the task workflow intoAGENTS.md. - 3.
Enable personal tool handoffs (optional, Pro)
Register the connection with register_personal_tool, enable it under Account > Tools & tokens > Personal tools, and limit it to the projects it should touch.
- 4.
Wait for work without busy-looping
For local agents, run
pf handoffs wait --jsonin the background instead of polling in a tight loop. For headless CI or cloud agents, subscribe an outbound webhook or AI agent run trigger.
The same task update across every surface
Switch tabs below to compare the exact same claim, comment, and review handoff across the CLI, MCP, TypeScript, and curl.
# 1. Find open work and claim a task
pf tasks list --project <project-id> --status todo --json id,identifier,title
pf tasks edit PRO-142 --status in_progress
# 2. Track progress as you work
pf checklist add PRO-142 --text "Update lighting pass on north gate"
pf tasks comment add PRO-142 --content "Adjusted rim light intensity; unit tests pass."
# 3. Hand off for human review (never set done unless asked)
pf tasks edit PRO-142 --status in_review[
{ "tool": "list_tasks", "arguments": { "projectId": "<project-id>", "status": "todo" } },
{ "tool": "update_task", "arguments": { "taskId": "<task-id-from-list_tasks>", "status": "in_progress" } },
{ "tool": "create_task_comment", "arguments": { "taskId": "<task-id-from-list_tasks>", "content": "Adjusted rim light intensity; unit tests pass." } },
{ "tool": "update_task", "arguments": { "taskId": "<task-id-from-list_tasks>", "status": "in_review" } }
]const headers = {
Authorization: `Bearer ${process.env.PROJECT_FEED_API_KEY}`,
"Content-Type": "application/json",
};
// Move task to in_progress
await fetch("https://projectfeed.app/api/v1/tasks/PRO-142", {
method: "PATCH",
headers,
body: JSON.stringify({ status: "in_progress" }),
});
// Post a checkpoint comment
await fetch("https://projectfeed.app/api/v1/tasks/PRO-142/comments", {
method: "POST",
headers,
body: JSON.stringify({ content: "Adjusted rim light intensity; unit tests pass." }),
});curl -X PATCH https://projectfeed.app/api/v1/tasks/PRO-142 \
-H "Authorization: Bearer $PROJECT_FEED_API_KEY" \
-H "Content-Type: application/json" \
-d '{"status":"in_progress"}'
curl -X POST https://projectfeed.app/api/v1/tasks/PRO-142/comments \
-H "Authorization: Bearer $PROJECT_FEED_API_KEY" \
-H "Content-Type: application/json" \
-d '{"content":"Adjusted rim light intensity; unit tests pass."}'Fix coding agent workflow problems
- The agent hits 429 rate_limit_exceeded
- Replace tight polling loops with pf handoffs wait --json or webhooks. Always honor Retry-After or retryAfterSeconds, and batch up to 50 task edits via POST /api/v1/tasks/bulk.
- The agent writes to the wrong workspace
- Run pf auth check and pf workspace current. Check whether a local .env file sets PROJECT_FEED_API_KEY or PROJECT_FEED_WORKSPACE, which overrides your stored profile.
- MCP write tools are missing
- Verify the workspace is on Pro or Enterprise and that you granted read-and-manage access during OAuth sign-in. Reset the connection in Account > Tools & tokens > Connected apps if needed.