App template
Bot console
A messaging app where every contact is an agent with a job: status lines, a live screen to take over, routines, and cards that wait for your OK.
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/bot-console- 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, renderBotConsole, which brings its own in-memory router. - Connect your backendEvery read and write goes through
Agentsin . Implement it over your API and pointAgentsLiveat your Layer. - Make it yoursPages are one file per route. Delete the ones you don’t need, and the sample data in .
Screens
Agents
/Every agent as a conversation with its latest status, beside the newest one. On a phone, pinned faces over the list.
Conversation
/agents/:agentMessages, files, events and approval cards, beside the agent's screen, routines, memory and skills.
Routine
/agents/:agent/routines/:routineTurn a routine on or off, edit what it does and when, test it and read its runs.
Memory
/agents/:agent/memoryWhat the agent remembers, to correct, forget or approve.
Skills
/agents/:agent/skillsWhat the agent knows how to do, to turn on, accept or remove.
New agent
/newPick a face and a name, or start from a suggested job.
Plugins
/pluginsThe apps every agent can work in.
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 Agents service. Implement its interface in over HTTP, a sync engine or a database client, then change one line:
export const AgentsLive = Agents.sample
// becomes your Layer, such as
export const AgentsLive = Layer.effect(Agents, makeHttpAgents)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 Agents.sample in services/Agents.ts
- domain/screen.ts, which draws the sample screen (real frames arrive as image URLs)
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 .