Claude Code

Advanced workflows and cloud collaboration

Choose Advisor, Agent View, /goal, dynamic workflows, routines, /loop, Ultraplan and Ultrareview with caching and Passion8 boundaries in mind.

Advanced workflows combine local orchestration and official cloud collaboration. Local work can use Passion8 and your filesystem; cloud features generally depend on claude.ai, GitHub connections and Anthropic environments.

For subagents, background sessions, teams and channels, start with parallel agents and Agent Teams and Channels.

#Choose a capability

CapabilityExecutionSuitable forPassion8 boundary
AdvisorConsults another model in the current sessionDecisions, failure analysis, completion checksDepends on gateway model support
Agent ViewLocal background session listSeveral independent tasksLocal gateway configuration applies
/goalAutomatic continuation in the current sessionLong tasks with clear completion criteriaLocal configuration applies
Dynamic workflowsScripts orchestrating local subagentsMigrations, auditing, researchLocal configuration applies
/loopTimed turns in the current sessionPolling, CI waiting, maintenanceLocal configuration applies
RoutinesAnthropic cloudSchedule/API/GitHub triggersUsually does not inherit the local token
UltraplanCloud planning, local/cloud executionResearch before a large implementationOfficial environment during planning
UltrareviewCloud multi-agent reviewDeep pre-merge bug findingOfficial billing and limits

#Advisor

Advisor consults another model at important points without switching the primary model for the entire conversation.

ActionCommand/configuration
Enable in a session/advisor
Enable in settingsadvisorModel
Enable at startup--advisor
Disable/advisor off or remove the setting
ScenarioValue
Major refactoring planConsult a stronger model about important disagreements
Repeated test failuresReassess the approach
Completion reviewIndependently check omissions, risks and verification
Lower-cost primary modelUse Haiku/Sonnet routinely, Opus/Fable when needed
ItemCache/cost effect
Advisor callAdditional model usage
Main prefixUsually no complete cache rebuild required
Different advisor modelSeparately billed/cached requests
High-risk completion checkExtra cost may be justified

#Agent View

Manage several local background sessions in one panel.

StateMeaning
WorkingWork in progress
Needs inputWaiting for an answer or permission
IdleReady for more input
CompletedFinished successfully
FailedEnded with an error
StoppedWas stopped
claude agents
claude agents --cwd ~/work/repo
claude agents --json
claude attach <id>
claude logs <id>
claude stop <id>
claude respawn <id>

Use it for independent tasks such as a bug fix, tests and documentation review. Isolate interdependent file changes with worktrees instead of running them concurrently in one workspace.

#/goal

Claude checks the goal at the end of each turn and continues if it remains unmet.

MechanismNext turnStop condition
/goalImmediately after the prior turnModel confirms the criteria
/loopAt the intervalUser stops it or Claude judges completion
Stop hookAfter the prior turnScript/prompt decision

Use specific goals:

/goal Continue fixing until npm run lint, npm run typecheck and npm run build pass, and the new pages have no broken internal links.

Avoid vague ones:

/goal Make it good

#Dynamic workflows

Scripts orchestrate many subagents for dozens or hundreds of tasks whose results need cross-checking.

PropertySubagentsWorkflows
DecisionsCurrent Claude turnScript
Intermediate stateConversation contextScript variables
ScaleA few workersPotentially many agents
RepeatabilityPrompt-dependentReusable saved script
InterruptionRestart current turnResume the same run
Bundled commandPurpose
/deep-research <question>Multiple perspectives, cross-checking and a cited report
LimitReason
No direct shell/file access in the workflowAgents perform operations
No ordinary user input mid-runOnly agent permission prompts
Concurrency capProtect local resources
Total agent capPrevent runaway execution

#Routines and /loop

MethodRuns inMinimum intervalSuitable for
Cloud routinesAnthropic cloudOne hourReliable schedules, APIs and GitHub events
Desktop scheduled tasksLocal DesktopOne minuteLocal files and tools
/loopCurrent CLI sessionOne minuteCI, deployments and temporary maintenance
/loop 5m Check whether CI passed. If not, summarize the failures and try to fix them.

Cron example:

0 9 * * 1-5

Cloud routines are not extensions of your local Passion8 session. Configure provider, secrets, network and repository permissions separately in their official cloud environment.

#Ultraplan

Research and planning happen in the cloud before you choose where to execute.

StageDescription
CLI startLaunch the plan locally
Cloud researchBrowser session investigates code/task
Browser reviewEdit and approve the plan
Cloud executionContinue on the web
Return to terminalExecute the plan locally

This can reduce mistaken changes in large tasks. Cloud stages generally do not inherit local gateway settings.

#Ultrareview

Remote multi-agent review provides a deeper check.

Property/code-review/review <pr>/code-review ultra
TargetCurrent diffGitHub PRDiff or PR
ExecutionLocal sessionLocal sessionCloud sandbox
DepthQuick feedbackModerate PR reviewMulti-agent verification
DurationSeconds to minutesMinutesTypically 5–10 minutes
CostNormal usageNormal usageMay use usage credits

Use it for large pre-merge changes, security-sensitive work or issues requiring independent verification. Local review is faster for small changes.

#Cache strategy

WorkflowFive-minute/one-hour guidance
AdvisorSeparate usage; stable main prefixes can still hit
Multiple Agent View sessionsIndependent prefixes per session
/goalContinuous turns; can benefit from one-hour TTL
Dynamic workflowsIndependent subagent contexts; control fanout cost
/loopStable prefixes and intervals under one hour can help
Cloud routinesOfficial cloud rules; no local cache sharing
Ultraplan/UltrareviewOfficial cloud billing/cache policy

#Official references

Support

Need help?

For setup, billing, or model issues, email us. Check the status page for uptime.

WeChat / QQ support is available at the bottom right.