Five Component Practices for Building Token-Efficient Always-On Agents

    Always-on personal agents consume tokens even when nothing changes. This article breaks the architecture into five reusable components—Inbox, Scheduler, Memory, Policy, and Outbox—and shows how a reusable prompt contract plus deterministic scheduling logic can eliminate empty runs, duplicate alerts, padded summaries, and scope creep. It includes a practical implementation sequence and cloud-native deployment suggestions.

    1. The Problem: The Hidden Cost of Proactivity

    The value of an always-on personal agent lies in its proactivity. It wakes up on a schedule without you asking, checks the information sources you care about, and pushes changes to you. But once this proactivity is combined with high-frequency scheduled tasks, the billing structure changes fundamentally: only a small fraction of calls produce real value, while the vast majority are cases where “nothing happened, but it still ran the entire workflow.”

    There are four typical symptoms:

    • High empty-run ratio. When there are no meaningful updates, the agent still goes from the first source to the last, fetching, comparing, and verifying item by item.
    • Duplicate alerts. The same item is pushed repeatedly across different batches, because the agent does not remember facts—it only remembers “what I did in this round.”
    • Padded conclusions. To prove it is not slacking off, it generates long, zero-information text such as “No major updates. Here is an overview of current progress,” which is billed on both input and output.
    • Scope creep. During execution, it keeps suggesting “while we are at it, add multilingual support” or “add a scheduled refresh too.” You say yes every time, and end up with a massive deliverable that nobody dares to maintain.

    Of these four costs, only the first is a model capability issue. The other three are essentially state management and contract gaps, which can be solved with prompts and scheduling logic. This is the core idea reused throughout this article.

    2. Breaking an Always-On Agent into Five Reusable Components

    When the industry discusses always-on agent architecture, it commonly splits it into several single-responsibility modules. Once the product shell is removed, it can be abstracted into five components. They are vendor-agnostic, and any agent with memory writes and scheduled triggers can implement them:

    1. Inbox: A unified entry point responsible for intake and deduplication. Deciding “whether it is the same item” requires a stable entity identifier and a content version number, not a timestamp.
    2. Scheduler: Responsible only for “when to wake up,” and keeps a record of reporting history to avoid pushing the same version repeatedly.
    3. Memory: Persists the task itself, processed versions, reported versions, and pending-verification flags. It is the key to cost savings; without it, every wake-up starts from zero.
    4. Policy: Defines the action boundaries after waking up—read-only or read-write, which categories of sources are allowed, and prohibits creating new tasks.
    5. Outbox: Controls the pace and granularity of output, allowing either an immediate single reply or batching into one daily report.

    In code-level agentic coding tools, these five layers are often naturally provided by built-in capabilities. On always-on bots that only have a natural-language configuration layer, you need to “translate” these five layers into an executable constraint text and write it into long-term memory.

    3. A Reusable Prompt Contract

    1. [Inbox] Deduplicate each batch by task ID + content version; a timestamp change alone is not an update.
    2. [Policy] When a source cannot be opened, mark it as pending verification; do not retry in a loop; do not expand sources on your own.
    3. [Memory] Do not push the same version again once it has been reported; do not create new tasks.
    4. [Outbox] When there is no meaningful change, reply only "No updates"; generating summaries, analysis, or suggestions is prohibited.
    5. [Outbox] When there are changes, output item by item: task / new facts / impact on the task.

    This contract actually constrains three typical action biases: proving value with workload (padded summaries), proving rigor with retries (ineffective fetching), and proving insight with suggestions (scope creep).

    4. Cost Control at the Scheduling Layer

    Prompts only solve “output and judgment”; the scheduling layer must work with them. The logic is illustrated below:

    1. def on_tick(batch):
    2. for t in batch:
    3. key = (t.id, t.content_version) # version, not timestamp
    4. if key in state.reported: # already reported, skip
    5. continue
    6. if not policy.readable(t.source): # blocked by policy layer
    7. state.mark_pending(t.id); continue
    8. delta = diff(state.snapshot(t.id), t)
    9. state.snapshot(t.id) = t
    10. if delta.is_empty(): # empty change does not enter the model
    11. continue
    12. outbox.push(format_delta(t, delta))
    13. state.reported.add(key)
    14. if outbox.empty():
    15. return "No updates" # fixed short reply
    16. return outbox.flush(batch_mode="daily")

    The key point is: put the “no change” decision before calling the model, replacing expensive semantic judgment with deterministic comparison logic; only consume inference quota when there is an increment. At the same time, merging multiple wake-ups into one daily report can cut another round of output cost.

    5. Results and Implementation Advice

    After refactoring with the structure above, common gains come from three places: a sharp drop in empty runs, controlled output length per call, and zero duplicate pushes. Usage shifts from “scheduled tasks dominating” to “daily interactions dominating,” so a basic-tier quota is enough, with no need to upgrade to a higher-rate plan.

    For implementation, proceed in three steps: first, connect memory and version comparison to establish an empty-run baseline; then add policy and outbox constraints to suppress padded output; finally, adjust the scheduler frequency and batching window. If you use general cloud capabilities, you can store state snapshots in object storage, use a message queue for event buffering, and use logging and monitoring/alerting services to observe the empty-run rate and call volume, forming a closed loop for continuous optimization.