All blocks

App template

Work

Hand an agent an outcome: it plans, works in your files, browser and apps, asks before anything goes out, and hands back a file you open, page through and download.

Full preview

Good morning, Ada

What are you working on today?

Start from a command

Use this template

Installs the whole app into your project: its pages, routes, services with sample data, agent tools and the browser entry. Every file is yours to edit.

npx shadcn@latest add checkfu/uicontext/work
  1. Run itLoad from your page’s script. It builds the app with createApp: the browser’s router, the agent tools, an offline notice, and sign-in when you turn it on. Inside an app that already routes, render WorkTemplate, which brings its own in-memory router.
  2. Connect your backendEvery read and write goes through Work in . Implement it over your API and point WorkLive at your Layer.
  3. Make it yoursPages are one file per route. Delete the ones you don’t need, and the sample data in .

Screens

  • New task

    /

    What you're working on: commands as cards, and a composer with plugins, connectors and Work or Ask.

  • Task

    /tasks/:task

    The conversation with each run folded into "Worked for", approvals and app permissions, beside Progress, Outputs and Context, the browser, or the file in its viewer.

  • Scheduled

    /scheduled

    Recurring tasks as plain sentences: when they last ran and run next, pause, run now and delete.

Where your backend plugs in

Pages never call a backend. They read through the queries in queries/ and write through Commands kept beside the component that runs them; both capture the Work service. Implement its interface in over HTTP, a sync engine or a database client, then change one line:

export const WorkLive = Work.sample
// becomes your Layer, such as
export const WorkLive = Layer.effect(Work, makeHttpWork)

The root provides it once, so every page shares one instance. Sign-in is one line: delete auth: false in once your backend serves the session routes, and the sidebar shows who signed in.

What to delete

  • services/seed.ts, and Work.sample in services/Work.ts, which simulates the agent's runs
  • components/SamplePage.ts, which draws the sample sites (a real backend shows the live page)

To drop a screen, delete its file in pages/ and its route in ; TypeScript points at every link that still prints it. The agent tools are in .