FabricFabricHarness
Examples

Examples

Runnable agents demonstrating fabric-harness features and deploy targets.

Every example below is a self-contained workspace under examples/ in the restricted Fabric Harness source repository. You can evaluate the public packages without repository access by generating a project first.

If you are learning the framework rather than looking up one integration, follow the complete learning path. It orders the examples by lifecycle, capabilities, governance, durability, delivery, deployment, and operations.

For the exact current package scripts, expected proof, shared failure behavior, and cleanup contract for every maintained workspace, use Runnable examples.

Quickstart

npx --yes @fabric-harness/cli@latest init harness-example
cd harness-example
npm install
npx fh agents
npx fh run JOB_NAME --mock

The table links open the source-access explanation. Authorized customers and partners can request repository access there to run the exact monorepo fixtures.

By feature

ExampleWhat it showsDeploy target
hello-worldBare minimum: one agent, one prompt.Node
minimalSmallest headless finite job.Node
with-configWorkspace-level config.ts overrides.Node
with-approvalImperative approval gate via session.approval.request().Node
with-checkpointSnapshot a session, restart from a labeled checkpoint.Node
with-skillsession.skill() invocation with typed result.Node
with-taskLong-running tasks with checkpoints.Node / Temporal
with-toolsCustom tool schemas.Node
with-finish-toolSchema-validated finish and explicit give_up result tools.Node
with-local-shellLocalSandboxEnv shell tool.Node
dynamic-agentPersistent state, hooks, capability/model changes, streamed data, and finish guards.Node
react-chatPersistent chat and finite runs through the public client and React protocol.Node / Vite

Deploy targets

ExampleTarget
with-dockerDocker sandbox
with-kubernetesKubernetes pod
with-cloudflare-sandboxCloudflare Containers sandbox
with-cloudflare-shell-workspaceCloudflare Computer Workspace with just-bash and standard Harness tools
with-cloudflare-workers-aiCloudflare Workers AI binding (zero-API-key)
with-azureAzure ACA / AKS
with-daytonaDaytona remote sandbox
with-e2bE2B isolated sandbox with timeout and cleanup
with-modalModal sandbox
with-vercel-sandboxVercel Sandbox with cancellation and cleanup
with-s3-sourceMount an S3 prefix as a filesystem source
with-temporalDurable Temporal worker
with-databricks-simpleCredential-free Databricks authoring smoke with a mocked model provider
with-databricks-revenue-opsGolden Databricks App workload: OBO, Genie, SELECT-only SQL, exact Job approval, Lakebase recovery, and optional Temporal
with-databricksGoverned SQL/Unity Catalog analytics copilot; live Databricks required
with-databricks-ragAI Search plus Unity AI Gateway RAG; live Databricks required
with-databricks-dataengLakeflow pipeline operations; live Databricks required
with-databricks-cost-attributionSystem Tables cost attribution with a generated Databricks SDK client
with-analytics-copilotCredential-free proof of SELECT-only SQL and analytics steward policy; README includes live SP and OBO wiring
with-databricks-managed-mcpManaged MCP discovery, rotating OBO auth, fail-closed effects, and governed lineage
with-databricks-computeSQL Warehouse, Jobs, notebook, and App execution choices
with-databricks-agent-serviceUnity Catalog Agent Services registration, grants, discovery, and teardown
with-databricks-authoring-adminApproval-bound Serving, Unity Catalog, Workspace, and secret-reference administration
with-databricks-genie-authoringGoverned Genie management plus create → grant → Agent Mode invoke → exact cleanup
with-databricks-jobs-authoringPolicy-bound multi-task Jobs lifecycle and cleanup
with-databricks-bundle-deployGoverned checked-in Asset Bundle validate/deploy/run/destroy with fingerprint drift detection
with-databricks-rag-adminAI Search endpoint/index lifecycle plus governed query verification
with-databricks-app-resourcesNative Databricks App resources, least-privilege bindings, preflight, and Bundle cleanup
with-databricks-appkit-interopAppKit Beta agent invoking a read-only governed Harness tool through MCP
with-postgres-storePostgres session persistence
with-slack-channelVerified Slack event ingress to a persistent agent
with-channel-adaptersAll 18 maintained channel adapters with signed ingress and governed replies
agent-registryVertical-neutral definitions, immutable versions, capability grants, budgets, and autonomy ceilings
with-signal-messagesOut-of-band typed signal messages
with-packaged-skillsPackaged skills and lazy resource loading
finite-jobsTyped parent/child jobs, middleware, run identity, and idempotent nested invocation
scheduled-jobsNode cron scheduling, Cloudflare Cron build output, and HA lease guidance
database-persistenceOne config selecting local libSQL, Turso, MySQL, or MongoDB unified persistence
application-routesAuthenticated Fetch routes and middleware composing durable dispatch and finite jobs

Production and operations patterns

ExampleWhat it proves
private-networkingDeny-by-default Docker and Kubernetes egress with an explicit proxy path.
with-observabilityRedacted, correlated Braintrust, Jetty, Sentry, OpenTelemetry, and evaluation evidence.
operational-slosStable operational metrics, policy evaluation, and importable Prometheus/Grafana assets.

Realistic use cases

ExampleWhat it does
code-reviewReview a PR diff, produce inline comments.
issue-triage-ciGH Actions agent that triages new issues.
bug-reproducerGenerate a minimal reproduction from a bug report.
data-analystMount a CSV; answer SELECT-style questions.
support-agentKB-grounded customer support.
support-agent-cloudflare-r2Same, deployed on Cloudflare with R2-backed KB.
support-agent-foundrySame, on Azure AI Foundry Hosted Agent.
changelog-writerDrafts release notes from git log.
incident-runbookRuns a runbook against an alert payload.
api-docs-generatorGenerate API docs from source.
schema-migrationPlan a database schema migration.
test-generatorGenerate Vitest tests from source.
dependency-auditorAudit npm dependencies for risk.
coding-agent-liteMinimal Claude-Code-style coding agent.
remote-coding-agentCoding agent in a remote sandbox.
release-notesCompose release notes from PRs and commits.
voice-data-collectorVoice intake — Realtime API + bring-your-own audio I/O.

Need a connector?

When no example covers the provider you want, scaffold one in your own project:

fh add daytona | claude
fh add https://your-provider.example.com --category sandbox | claude
fh add daytona --pr           # open a draft PR with a stub

See the connector catalog for the spec.

What "runnable" means

Credential-free examples demonstrate local wiring and deterministic model behavior. Provider-backed examples require the named provider, credentials, permissions, and the smoke test documented by that integration. Follow the Databricks deployment guide for workspace identity and certification.

Each maintained example must identify prerequisites and authentication, a run command, an expected observable result, explicit failure behavior, and cleanup. The examples catalog is checked against the actual top-level workspaces so a shipped example cannot silently disappear from documentation.

Follow-along guides

The credential-free Databricks examples cover the authoring flow. Configure the credentialed suite to verify Lakebase OAuth database credential exchange, App deployment, workspace permissions, and restart recovery in the target workspace.