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.
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- 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, renderWorkTemplate, which brings its own in-memory router. - Connect your backendEvery read and write goes through
Workin . Implement it over your API and pointWorkLiveat your Layer. - 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/:taskThe 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
/scheduledRecurring 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 .