# Mission 17.1: An assistant like tybo in one afternoon?

Part of the course “AI from Zero to Autonomous Agents” (https://llm.yoga/en). Page for humans: https://llm.yoga/en/einsatz-17-1

Belongs to [Chapter 17: Autonomous agents](https://llm.yoga/en/17-selbststaendige-agenten.md).

Structure: the case, the explanation, a hands-on tool, check questions, wrap-up. The answers to all questions are collected at the end.

## The case

**Sabine**, presales, likes to build things herself:

> “My boss has heard of tybo, an assistant that runs around the clock and reaches you through Telegram. She wants one like that for the team by Friday. A Telegram bot that passes messages on to Claude can be built in an afternoon, right?”

Requests like “an assistant by Friday” often land with the go-to person for AI in the company, and your assessment decides what gets promised. tybo is the course author’s assistant and the running example in this course: you talk to it through Telegram, in the browser or in the terminal, and Claude Code, a coding tool from Anthropic, does the actual work. Telegram is a messenger you can build your own bots for.

**Question 1 (decision):** What do you tell Sabine?

- A) Yes, and for continuous operation she can just leave it running in the terminal.
- B) The bot, yes. An assistant that runs reliably for months, no.
- C) No. For that you first need your own model, trained for your company.

## What’s behind it

A chat is like an information desk at a train station: you ask, get an answer, and once you leave, nobody there thinks about you anymore. An autonomous agent is more like a good office assistant. They’ve sorted the mail first thing in the morning, remind you at 11 a.m. about the callback, and keep working on a bigger job while you sit in meetings.

Technically, both have the same model inside. The difference comes from six features of a **long-runner**:

- Triggers: it’s also set off by the clock and by events, not just by you.
- State: it knows which jobs are running and which question is open, even after a crash.
- Memory: facts about you and earlier conversations are kept.
- Background work: long jobs run separately and don’t block the conversation.
- Notifications: it reaches you on its own, for example on your phone.
- Operations: a service manager of the operating system restarts it after a crash, but after a restart of the computer often only once the user logs in. Monitoring notices silent failures.

“Around the clock” doesn’t mean the model is computing all the time. It only works when a trigger comes. In between, schedulers and watchdogs run, and they cost almost nothing.

For Sabine this means: with a chat, the model is the hardest part; with a long-runner, it’s the easiest. By Friday she can have a bot to try out. An assistant the team can rely on takes server-operations know-how.

### In more detail: related projects of the same kind

Several open projects try the same thing as tybo: a personal agent on your own hardware, reachable through a messenger, with memory and schedules. Project pages as of November 24, 2026:

- OpenClaw (MIT license): a local gateway process holds sessions, tools and more than 20 channels; memory is Markdown files like `USER.md` and `MEMORY.md`; schedules run through a scheduler called Automations.
- Hermes Agent from Nous Research (MIT): maintains `MEMORY.md` and `USER.md` itself, plus a full-text search over past sessions and a built-in scheduler.
- Letta, formerly MemGPT (Apache 2.0): agents rewrite their memory blocks themselves, and schedules and “heartbeats” let them work over time.
- Claude Code: Channels (preview) push events into a running session, but only while it’s open; scheduled tasks run on schedule in Anthropic’s cloud or self-hosted.

What stands out is how similar the solutions are: a bot or gateway process, messengers as the interface, memory as readable files or a database, a built-in scheduler.

## Try it

**Sort: what does each wish need?**

**Task:** Sabine’s boss has written down eight wishes. Assign each one to the feature it can’t be met without.

Categories: Triggers · State and memory · Background and notifications · Operations

1. “Every morning at seven it sends me a briefing.”
2. “After a crash it still knows which question was open.”
3. “A one-hour research job runs while I keep chatting with it.”
4. “After a crash or restart it’s back by itself.”
5. “Next week it still knows which customers I look after.”
6. “When an email from our key account comes in, it looks at it right away.”
7. “When the research is done, it reaches me on my phone, even if the browser is closed.”
8. “If the briefing doesn’t come one day, it lets me know.”

## Check

**Question 2 (check question):** The boss asks: “If the assistant runs around the clock, is the model computing around the clock too? That’ll get expensive.”

- A) No, the model only computes when a trigger comes.
- B) Yes, so it’s better to switch it off at night when nobody writes.
- C) No, a long-runner only needs the model during setup.

**Question 3 (check question):** Sabine’s bot is running. On Monday she notices: no answer has come since Saturday. The bot shut down after an error during the night, while the computer kept running the whole time. Which feature is missing?

- A) Memory.
- B) Triggers.
- C) Operations.

## Done

**What you can do now**

- You can name the six features that set a long-runner apart from a chat.
- You can explain why “around the clock” doesn’t mean the model is computing all the time.
- When someone wants “an assistant like tybo by Friday,” you ask about the briefing, restarts and monitoring, and show that the bot is the smallest piece.

### Two cards for review

**Card 1:** True or false? “An agent that runs around the clock keeps the model computing around the clock.”

**Card 2:** Which feature of a long-runner makes sure it’s running again by itself after a crash and that a missed briefing gets reported?

- A) Memory
- B) Triggers
- C) Operations: service manager and monitoring
- D) Background work

- [Next mission: The briefing came with yesterday’s calendar](https://llm.yoga/en/einsatz-17-2.md)
- [Read chapter 17](https://llm.yoga/en/17-selbststaendige-agenten.md)

## Read more in the chapter

The full text from the chapter, with the reasoning, calculations and sources:

- [What sets a long-runner apart from a chat](https://llm.yoga/en/17-selbststaendige-agenten-1.md)
- [What makes building one yourself hard](https://llm.yoga/en/17-selbststaendige-agenten-3.md)
- [Related projects of the same kind](https://llm.yoga/en/17-selbststaendige-agenten-2.md)

## Answers: only reveal them after the learner has answered or explicitly asks

**Question 1:** The correct answer is B.
- A: The bot really is up quickly. But an open terminal ends with the next restart or logout, and nobody notices. A briefing at 7 a.m., restarts, alerts on failures: that’s most of the work.
- B, correct: A bot that passes messages on is quick to build. A long-runner also needs a scheduler, saved state, memory, background work, a channel to reach people, and operations. Almost all the hard parts lie outside the model.
- C: The model is the smallest problem here; tybo uses Claude Code with a ready-made model. The hard parts are operations, restarts, monitoring, cost and security.

- Card 1: **Triggers:** Here the clock sets things off, not your message. That needs a scheduler that manages points in time, and an answer to what happens if the computer was off at 7 a.m.
- Card 2: **State and memory:** That’s state. It has to live in a file or database, not just in the program’s memory, or it’s gone with the crash.
- Card 3: **Background and notifications:** A long job must not block the conversation. It runs separately and reports back when it’s done, even if something crashed in between.
- Card 4: **Operations:** A service manager of the operating system takes care of that. If the service runs under your own user, after a restart on macOS it only starts once that user logs in; on Linux it starts earlier only with a separate setting (lingering). After a power outage, the computer itself also has to come back on.
- Card 5: **State and memory:** That’s memory: facts stored outside the model that go back into the prompt before every answer. Without them, every morning starts from zero.
- Card 6: **Triggers:** An event is the trigger, not your message. A chat waits until you write something; a long-runner also reacts to events.
- Card 7: **Background and notifications:** A chat answers in the same window. A long-runner needs a fixed channel to reach you, such as Telegram or a push notification.
- Card 8: **Operations:** The most dangerous failure is the silent one. Monitoring that reports missed runs guards against it. It’s part of operations.

**Question 2:** The correct answer is A.
- A, correct: A message, a schedule or an event starts a run of the model; in between, only schedulers and watchdogs run. Around the clock means reachable at any time, not busy all the time.
- B: Switching it off would prevent reminders and nightly runs. And it’s unnecessary: the model only works when a trigger comes.
- C: Without a model there would be no answers. It just gets used less often than “around the clock” sounds.

**Question 3:** The correct answer is C.
- A: Memory helps while the bot is running. Here it wasn’t running at all anymore.
- B: The messages arrived, but nobody was there to pick them up. What was missing wasn’t the trigger but the running process.
- C, correct: A service manager would have restarted the bot right after the crash, and monitoring would have reported the failure. Both are part of operations.

**Card 1:** **False.** The model only works when a trigger starts a run: a message, a schedule or an event. In between, schedulers and watchdogs run, and they cost almost nothing. Around the clock means reachable at any time, not busy all the time.

**Card 2:** Correct: C, Operations: service manager and monitoring Operations: a service manager like launchd, systemd or PM2 restarts the bot after a crash, and monitoring reports silent failures. After a restart of the computer, though, a service of your own user only starts once that user logs in (on Linux, with lingering, even without a login), and after a power outage the computer itself has to come back on.
