All blocks

App template

Agent development environment

Run several coding agents at once, each on its own branch: watch them work, review their changes with comments on lines, and ship each through checks to a merge.

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/agent-studio
  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 AgentStudio, which brings its own in-memory router.
  2. Connect your backendEvery read and write goes through Workspaces in . Implement it over your API and point WorkspacesLive 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

  • Home

    /

    Start a workspace: repository, branch, task, model and effort, Code or Ask. Below, the workspaces that need a look.

  • Workspace

    /w/:id

    The conversation with folded tool calls, changed-file cards and turn footers, the branch strip with checks, Create PR and Merge, and the changes, checks, terminal, browser and files panes.

  • Usage

    /usage

    Spend against the monthly budget, by model and by workspace.

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 Workspaces service. Implement its interface in over HTTP, a sync engine or a database client, then change one line:

export const WorkspacesLive = Workspaces.sample
// becomes your Layer, such as
export const WorkspacesLive = Layer.effect(Workspaces, makeHttpWorkspaces)

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 Workspaces.sample in services/Workspaces.ts, which pretends to be the agents, the worktrees and the code host

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 .