by LofiSu
A local-first TypeScript AI agent that turns messages and scheduled events into tasks, with a Router and background Workers.
# Add to your Claude Code skills
git clone https://github.com/LofiSu/LofiBotLofiBot is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by LofiSu. A local-first TypeScript AI agent that turns messages and scheduled events into tasks, with a Router and background Workers. It has 166 GitHub stars.
LofiBot's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/LofiSu/LofiBot" and add it to your Claude Code skills directory (see the Installation section above).
LofiBot is primarily written in TypeScript. It is open-source under LofiSu on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh LofiBot against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.

English · 简体中文
LofiBot is a local TypeScript agent that turns messages and scheduled events into tasks. Its Router keeps the conversation moving while Workers run tasks in separate sessions. SQLite keeps task state across restarts.
Requires Node.js 22+, pnpm, and an OpenAI-compatible model. Replace the example values with your model settings.
git clone https://github.com/LofiSu/LofiBot.git
cd LofiBot
pnpm install
export LOFIBOT_API_BASE=https://models.example/v1
export LOFIBOT_API_KEY=your-key
export LOFIBOT_API_MODEL=your-model-id
pnpm lofibot init
pnpm lofibot chat "Summarize the open tickets"
pnpm lofibot tasks
See installation for other providers or to migrate an existing checkout. For Feishu and iMessage, run pnpm lofibot channels check before pnpm lofibot serve --imessage --feishu. See channel setup for details and GitHub.
For a native chat window, see the Rune desktop client. It connects to the same Agent runtime and can render an offline preview without opening a window.
flowchart TD
Sources["CLI · Feishu · iMessage · GitHub · A2A"]
Routines["Daemon routines"]
Ingress["Ingress · filter and route triggers"]
Router["Engine · Router batches by Thread and runs Eval"]
Assign["Ticket → Assignment"]
Worker["Harness · isolated Worker session · async ReAct"]
Tools["Model · sandboxed tools · optional MCP"]
Store[("SQLite · sessions, tasks, memory and Outbox")]
Watchdog["Watchdog · stalled work"]
Outbox["Router → Outbox → channel"]
Sources --> Ingress
Routines --> Ingress
Ingress --> Router
Router -->|actionable| Assign --> Worker
Router -->|subscribed Thread| Worker
Worker <--> Tools
Worker -->|report| Router
Router --> Outbox
Router <--> Store
Worker <--> Store
Watchdog -.->|nudge or fail| Assign
classDef input fill:#F9EDF5,stroke:#A73968,color:#17234E
classDef route fill:#213C83,stroke:#E94D9A,color:#FFFFFF,stroke-width:2px
classDef work fill:#DEEBFF,stroke:#345EB1,color:#17234E
classDef support fill:#EBF6A3,stroke:#61751D,color:#222D14
class Sources,Routines input
class Ingress,Router,Outbox route
class Assign,Worker,Tools work
class Store,Watchdog support
The Router owns replies. Workers report their results to it, and the Outbox handles delivery. Scheduled triggers and channel messages share the same ingress path.
The agent reuses scoped notes across sessions and consolidates them automatically. Run pnpm lofibot memory to inspect indexes or pnpm lofibot memory archive to read historical snapshots. Memory design