Skip to content

Latest commit

 

History

History
100 lines (70 loc) · 5.92 KB

README.en.md

File metadata and controls

100 lines (70 loc) · 5.92 KB

Chronos — Telegram Task Assistant

Use /info backward for instructions. /backward Submit the database report next Friday previews steps, effort, dependencies, real Calendar slots and reserved buffer. /backward #42 reuses a goal; /backward progress 42 shows linked progress. Confirmation is required before creating tasks/events. Date-only deadlines conservatively finish work the previous day. See planning rules and recovery.

Turn Chinese or English messages into personal tasks, manage them in your own Telegram bot, and receive a daily list of unfinished tasks.

繁體中文 · Report a problem

CI

Chronos is a self-hosted, single-user task assistant. Gemini handles natural-language task input; SQLite stores local data, with Firestore available for Cloud Run deployments. Telegram is the interface for viewing, adding and completing tasks.

Version 0.1.0 is in development. There is no License file or GitHub Release yet; clarify licensing before redistribution or code contributions. There is no shared public bot or hosted demo. The optional Study integration retains NTOU / TronClass-specific progress, assignment, and announcement workflows; it does not download course materials or generate AI notes from PDFs.

Edits provide an Undo this edit button; /undo restores the latest successful edit. Deadline reminders run every five minutes: 24 hours and 1 hour before a timed deadline, or at 09:00 the day before and on a date-only deadline. Completed tasks stop reminders. Cloud deployments require the separate deadline Scheduler job created by the deployment script.

Install and start

Requires Git and Python 3.11 or later. CI covers Python 3.11 and 3.12. From a directory where you want to clone the project:

Windows PowerShell:

git clone https://github.com/Yili-code/Chronos.git
cd Chronos
python -m venv .venv
.\.venv\Scripts\python.exe -m pip install uv==0.12.3
.\.venv\Scripts\uv.exe sync --locked --extra dev
if (!(Test-Path .env)) { Copy-Item .env.example .env }
.\.venv\Scripts\uv.exe run uvicorn chronos.main:app --host 127.0.0.1 --port 8000

macOS / Linux:

git clone https://github.com/Yili-code/Chronos.git
cd Chronos
python3 -m venv .venv
.venv/bin/python -m pip install uv==0.12.3
.venv/bin/uv sync --locked --extra dev
test -f .env || cp .env.example .env
.venv/bin/uv run uvicorn chronos.main:app --host 127.0.0.1 --port 8000

Check service health: http://127.0.0.1:8000/live returns {"status":"live"} and http://127.0.0.1:8000/ready reports status: ready. These checks do not prove external services are available.

Create your first task

Get your own key from Google AI Studio, then edit the existing fields in .env:

CHRONOS_GEMINI_API_KEY=YOUR_API_KEY
CHRONOS_GEMINI_MODEL=gemini-3.5-flash-lite

The model must be available to your account; see Google's model list. Provider fees and limits apply. After connecting Telegram below, restart the app and send Finish the report tomorrow at 17:00 #Chronos. Check the interpreted date with /tasks, then complete it with /done 1.

Your input and current time are sent to Gemini, without the full task list. Titles are stored in concise English; the original Chinese input for a newly created task is not retained separately. Failed parsing or unavailable AI does not create a task. There is no offline parsing fallback.

Connect your own Telegram bot

  1. Create a bot with BotFather, then send it /start.
  2. For a new bot without a webhook, obtain your private message.chat.id using getUpdates. Do not share token-bearing URLs. getUpdates cannot be used while a webhook is active.
  3. Set all four fields below, using your own HTTPS public endpoint. Telegram cannot reach a loopback-only server.
CHRONOS_TELEGRAM_BOT_TOKEN=YOUR_BOT_TOKEN
CHRONOS_TELEGRAM_CHAT_ID=YOUR_INTEGER_CHAT_ID
CHRONOS_TELEGRAM_WEBHOOK_SECRET=YOUR_LONG_RANDOM_SECRET
CHRONOS_PUBLIC_BASE_URL=https://YOUR_PUBLIC_ENDPOINT

Use HTTPS for the public service. Restarting attempts to register /telegram/webhook; a running service does not prove registration succeeded.

Try this in your own bot:

Finish the report tomorrow at 17:00 #Chronos
/tasks
/edit 1 remove the due date
/tasks
/done 1

Confirm position 1 before each action: open tasks are sorted by deadline. Listing and completion do not require AI; semantic edits may. The daily digest runs at 08:00 in the configured timezone (Asia/Taipei by default), requiring a running service or an external scheduler. It is not a separate alert at every task's deadline. Chronos has no multi-user account isolation.

Troubleshooting and reference

Problem Check
Missing Python module Use the virtual environment's Python and repeat the install command.
Telegram does not reply Check HTTPS webhook, all four bot settings, chat ID and whether the bot is blocked.
Port 8000 is occupied Use --port 8001 and open port 8001 instead.

Detailed setup, Docker, command semantics, deployment and Study boundaries are currently in Traditional Chinese: setup, commands, deployment, Study. Read the extension data-flow guide before enabling browser observation.

Report reproducible setup problems or documentation errors with your OS, Python version, commit and sanitized steps. Never attach .env, tokens, cookies, personal tasks or school materials. See CONTRIBUTING for the current licensing status. If Chronos is useful to you, a Star can help you find it later.