App template
Team assistant
Channels and threads where a team mentions its agent, watches it reply, approves its changes, and tunes its settings.
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/team-assistant- 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, renderTeamAssistant, which brings its own in-memory router. - Connect your backendEvery read and write goes through
Teamin . Implement it over your API and pointTeamLiveat your Layer. - Make it yoursPages are one file per route. Delete the ones you don’t need, and the sample data in .
Screens
First channel
/Where people land: the first channel.
Channel
/channels/:channelMessages with reactions; mention the agent and its reply streams in, with approvals in line.
Thread
/channels/:channel/threads/:threadA thread beside its channel, or as a sheet on a phone.
Agent settings
/settingsThe agent’s name, instructions and permissions.
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 Team service. Implement its interface in over HTTP, a sync engine or a database client, then change one line:
export const TeamLive = Team.sample
// becomes your Layer, such as
export const TeamLive = Layer.effect(Team, makeHttpTeam)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 Team.sample in services/Team.ts
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 .