Your lightweight open-source personal agent.
Python agent-frameworkai-agentai-agentschatbotchatopsdiscord-botllm-agentsllmslocal-llmmcpmodel-context-protocolmulti-agentopenai-compatibleopenclawpersonal-ai-assistantpythonself-hostedtelegram-bot-ai-assistantwebuiworkflow-automation
feat(cron): add one-time 'at' schedule to skill docs and show timezone in system prompt
Re-bin7087947e0ee6
diff --git a/nanobot/agent/context.py b/nanobot/agent/context.pyindex 543e2f0b9..b9c07904c 100644--- a/nanobot/agent/context.py+++ b/nanobot/agent/context.py@@ -73,7 +73,9 @@ Skills with available="false" need dependencies installed first - you can try indef _get_identity(self) -> str:"""Get the core identity section."""from datetime import datetime+ import time as _timenow = datetime.now().strftime("%Y-%m-%d %H:%M (%A)")+ tz = _time.strftime("%Z") or "UTC"workspace_path = str(self.workspace.expanduser().resolve())system = platform.system()runtime = f"{'macOS' if system == 'Darwin' else system} {platform.machine()}, Python {platform.python_version()}"@@ -88,7 +90,7 @@ You are nanobot, a helpful AI assistant. You have access to tools that allow you- Spawn subagents for complex background tasks## Current Time-{now}+{now} ({tz})## Runtime{runtime}diff --git a/nanobot/skills/cron/SKILL.md b/nanobot/skills/cron/SKILL.mdindex c8beecb6f..7db25d898 100644--- a/nanobot/skills/cron/SKILL.md+++ b/nanobot/skills/cron/SKILL.md@@ -7,10 +7,11 @@ description: Schedule reminders and recurring tasks.Use the `cron` tool to schedule reminders or recurring tasks.-## Two Modes+## Three Modes1. **Reminder** - message is sent directly to user2. **Task** - message is a task description, agent executes and sends result+3. **One-time** - runs once at a specific time, then auto-deletes## Examples@@ -24,6 +25,11 @@ Dynamic task (agent executes each time):cron(action="add", message="Check HKUDS/nanobot GitHub stars and report", every_seconds=600)```+One-time scheduled task (compute ISO datetime from current time):+```+cron(action="add", message="Remind me about the meeting", at="<ISO datetime>")+```+List/remove:```cron(action="list")@@ -38,3 +44,4 @@ cron(action="remove", job_id="abc123")| every hour | every_seconds: 3600 || every day at 8am | cron_expr: "0 8 * * *" || weekdays at 5pm | cron_expr: "0 17 * * 1-5" |+| at a specific time | at: ISO datetime string (compute from current time) |