Choose a primitive

Pick the smallest primitive that matches the work. This keeps project structure clear and prevents overlapping agents, workflows, runs, and integrations.

Quick choice

GoalUseStart with
Receive browser, HTTP, or webhook trafficApp route or API routePages and routing
Get one typed result from a single model callOne-shot model callveryfront/llm
Answer users with model reasoning, tools, memory, or skillsAgentAgents
Give an agent one typed capabilityToolTools
Package reusable agent behaviorSkillSkills
Reuse assistant instructionsPromptMCP server
Expose readable context to assistantsResourceMCP server
Measure agent quality across examplesEvalEvals
Define project-owned background workTaskTasks
Coordinate multiple steps, branches, approvals, or retriesWorkflowWorkflows
Run durable background work now or on a scheduleRun or scheduleRuns
Connect agents to third-party servicesIntegration with OAuthIntegrations
Expose project capabilities to assistants over a protocolMCP serverMCP server
Run isolated commands or file operationsSandboxSandbox
Add reusable runtime capabilitiesExtensionExtensions

Decision rules

PrimitiveUse forDo not use for
App routeA browser, HTTP client, or webhook needs an entry point.The work should outlive the request or be reused outside routing.
AgentThe model must decide, explain, call tools, use memory, or stream a response.The work follows fixed control flow and can be a function, task, or workflow step.
One-shot model callExtraction, classification, summarizing, or routing needs one model call and a typed result.The model must call tools, take several steps, or remember earlier turns.
ToolAn agent or workflow needs a typed operation such as search, lookup, write, or transform.The operation has multiple long-running states or human approval steps.
SkillAn agent needs reusable instructions, references, scripts, and assets.The work needs executable behavior or durable process state.
PromptAn assistant needs reusable instruction text.The project needs to execute code or read data.
ResourceAn assistant needs readable project context.The operation changes state or starts work.
EvalYou need repeatable agent quality checks, datasets, metrics, and reports.You need code assertions without model execution.
TaskYou own a reusable background function in tasks/.The user needs conversational reasoning or streaming output.
WorkflowThe process has ordered steps, parallel branches, retries, or human review.A single agent response or one background function is enough.
RunYou need to start or inspect one execution of an agent, task, workflow, or eval.You need to define reusable behavior; use an agent, task, or workflow definition.
IntegrationYou need provider metadata, OAuth, tokens, or remote integration tools.A local custom API call is enough and no shared connector behavior is needed.
MCP serverExternal assistants or MCP clients need tools, prompts, or resources.The capability is only used inside one Veryfront app route.
SandboxCode or shell work needs isolation from the app process.The code can run safely in your own trusted runtime.
ExtensionA capability should be packaged and reused across projects.The code belongs to one app and can stay local.

Common pairings

GoalTypical shape
Chat with company dataAgent + tools + memory + chat UI
Human-approved content pipelineWorkflow + agents + approval step
Nightly sync from an external APITask + schedule + optional integration credentials
Assistant help with a repeatable taskAgent + skill + optional tools
Agent quality gate for CIEval + agent + dataset
Assistant reads project contextMCP server + resources
Observable invoice processingWorkflow + agents + task runs
User-authorized GitHub automationIntegration + OAuth + tools
Assistant-accessible project commandsMCP server + tools
Isolated repo inspection or code editsAgent + sandbox + tools
Reusable Redis cache supportExtension + CacheStore contract

Verify it worked

Before building, write down the primitive and why it owns the work. Then check the matching guide:

  • If the guide's first example solves your shape, continue there.
  • If you need two or more primitives, start with the one that owns the triggering event.
  • A Task defines reusable work. A Run records one execution; it isn't an alternative definition type.
  • When choosing between a one-shot model call and an Agent, remember that generate() from veryfront/llm makes one request with no tools, no steps, and no memory. Reach for an Agent as soon as you need any of those.

Run the guide's example or validation command before adding another primitive.