All blocks

App template

Coding agent

Run coding sessions with a plan, an editor, a terminal and a browser, approve what the agent asks, and review its pull request.

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/coding-agent-workspace
  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 CodingAgent, which brings its own in-memory router.
  2. Connect your backendEvery read and write goes through Sessions in . Implement it over your API and point SessionsLive 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

  • Sessions

    /

    Every session, grouped by what needs you, what’s working and what’s done.

  • New session

    /sessions/new

    Pick a repository and describe the task, or start from a suggestion.

  • Session

    /sessions/:id

    The timeline with its approval gate, plan and tool calls, beside resizable editor, changes, terminal, tests and browser panes.

  • Pull request

    /sessions/:id/pull-request

    The pull request card with every changed file’s diff, to approve the revision.

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

export const SessionsLive = Sessions.sample
// becomes your Layer, such as
export const SessionsLive = Layer.effect(Sessions, makeHttpSessions)

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 Sessions.sample in services/Sessions.ts, which simulates the agent’s work

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 .