Examples
Examples
Runnable agents demonstrating fabric-harness features and deploy targets.
Every example below is a self-contained workspace under examples/ in the fabric-harness repo. Clone, install, and run.
Quickstart
git clone https://github.com/Fabric-Pro/fabric-harness
cd fabric-harness/examples/<example-name>
pnpm install
pnpm fh agents # list defined agents
pnpm fh run <agent-name>By feature
| Example | What it shows | Deploy target |
|---|---|---|
hello-world | Bare minimum: one agent, one prompt. | Node |
minimal | Strict-import variant — no defaults injected. | Node |
with-config | Workspace-level config.ts overrides. | Node |
with-approval | Imperative approval gate via session.approval.request(). | Node |
with-checkpoint | Snapshot a session, restart from a labeled checkpoint. | Node |
with-skill | session.skill() invocation with typed result. | Node |
with-task | Long-running tasks with checkpoints. | Node / Temporal |
with-tools | Custom tool schemas. | Node |
with-local-shell | LocalSandboxEnv shell tool. | Node |
Deploy targets
| Example | Target |
|---|---|
with-docker | Docker sandbox |
with-kubernetes | Kubernetes pod |
with-cloudflare-sandbox | Cloudflare Containers sandbox |
with-cloudflare-workers-ai | Cloudflare Workers AI binding (zero-API-key) |
with-azure | Azure ACA / AKS |
with-daytona | Daytona remote sandbox |
with-modal | Modal sandbox |
with-s3-source | Mount an S3 prefix as a filesystem source |
with-temporal | Durable Temporal worker |
Realistic use cases
| Example | What it does |
|---|---|
code-review | Review a PR diff, produce inline comments. |
issue-triage-ci | GH Actions agent that triages new issues. |
bug-reproducer | Generate a minimal reproduction from a bug report. |
data-analyst | Mount a CSV; answer SELECT-style questions. |
support-agent | KB-grounded customer support. |
support-agent-cloudflare-r2 | Same, deployed on Cloudflare with R2-backed KB. |
support-agent-foundry | Same, on Azure AI Foundry Hosted Agent. |
changelog-writer | Drafts release notes from git log. |
incident-runbook | Runs a runbook against an alert payload. |
api-docs-generator | Generate API docs from source. |
schema-migration | Plan a database schema migration. |
test-generator | Generate Vitest tests from source. |
dependency-auditor | Audit npm dependencies for risk. |
coding-agent-lite | Minimal Claude-Code-style coding agent. |
remote-coding-agent | Coding agent in a remote sandbox. |
release-notes | Compose release notes from PRs and commits. |
voice-data-collector | Voice 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 stubSee the connector catalog for the spec.
Use Cases
Ten Fabric Harness agents you can build today, across the software development lifecycle — issue triage, PR review, changelog drafting, test generation, dependency audit, migrations, API docs, bug repro, release notes, and incident runbooks. Every example shows both minimal and complete entrypoint forms.
Agent Anatomy
The metadata-first shape of a Fabric Harness agent — default and strict variants of the same call.