OpenCalendar is a month grid and an agenda over a seeded list of events (conference deadlines, birthdays, meetings). Events can be opened, created and deleted; tasks score on what ends up in the event table.

uv run launch.py                 # then open /calendar on the URL it prints
./scripts/dev.sh                 # hot-reloading dev server, http://localhost:5001/calendar
OPENAPPS_DEV_OVERRIDES="apps/theme=dark apps/calendar/content=german" ./scripts/dev.sh

Routes: /calendar (current month), /calendar/calendar_content/<year>/<month>?view=calendar|agenda (any month; direction=prev|next steps it), /calendar/event/<id>, /calendar/create_event, and /calendar_all, the JSON every reward reads.

Varying the calendar

Every axis composes with every other:

uv run launch.py apps/theme=dark                       # shared theme, every app
uv run launch.py apps/theme=challenging_font           # same palette, script typeface
uv run launch.py apps.calendar.theme=solarized         # this app only
uv run launch.py apps/calendar/layout=agenda_first     # default | agenda_first | sidebar_nav
uv run launch.py apps/calendar/content=german          # default | german | mandarin | long_descriptions
                                                       # | misleading_descriptions | adversarial_descriptions
uv run launch.py device=phone                          # desktop | laptop | tablet | phone
Override Default Effect
apps/theme=<name> default Colours, fonts and radii for every app (config/apps/theme/).
apps.calendar.theme=<name> null The same, for the calendar alone.
apps/calendar/layout=<name> default Page structure, see below.
apps/calendar/content=<name> default Events and UI language.
apps.calendar.container_width '100%' Width of #calendar-container; narrower letterboxes the grid.
apps.calendar.spacing '1rem' Vertical rhythm between toolbar, grid and footer.
apps.calendar.button_padding '0.5rem 1rem' Button hit area.
apps.calendar.database_path ${databases_dir}/calendar.db Where the event table lives.

Themes

Every colour, font and radius in the calendar's stylesheet is a token from the active theme. Pico, which the page is built on, carries its own palette; the calendar maps Pico's variables onto the tokens and paints <html> itself, and sets <html data-theme> from the theme's tone so the operating system's dark-mode preference cannot leak in. Under dark the whole canvas, the header and the form fields are dark; under challenging_font only the typeface changes (it needs Brush Script MT installed, otherwise the browser's cursive fallback is used).

Layouts

All three keep the same routes, ids and labels (.calendar-table, .agenda-list, #current-month-year, "< Prev", "Next >", "Add Event"), so a task written against one runs on the others.

  • default: one toolbar above the grid (Today, "< Prev", the month, "Next >", and the Calendar/Agenda toggle at the far end); "Add Event" and a full-size "Return to List of Apps" in the footer.
  • agenda_first: a centred masthead with the month between prev/next and Today plus the toggle beneath. A request without ?view= lands on the agenda instead of the grid, and the toggle lists Agenda first.
  • sidebar_nav: "Add Event", the month with its navigation, a decorative mini-month and the toggle move into a sticky left rail beside the grid; the footer keeps only a quiet "Return to List of Apps". Below 48rem the rail stacks on top.

Languages

german and mandarin translate the interface: toolbar and toggle labels, month and weekday names (from the pack's month_names, month_abbr, day_names, day_abbr, day_initials), the agenda, the event page, the create form (labels, placeholders, recurrence options) and error banners. The page's <html lang> follows (de, zh-Hans), and the shared strings ("Return to List of Apps", "Close") come from open_apps/i18n.py.

The events are translated too: titles, descriptions and locations, in the default pack's order and with its dates, links, recurrence and invitees, so a task starts from the same calendar in every language. Invitees are people and keep their names ("Alex' Geburtstag" / "Alex的生日" still invites Alex). Dates are always ISO YYYY-MM-DD, the format the create form accepts.

Task goals stay in English. remove_otto_birthday under the german pack means the event titled "Ottos Geburtstag": each translated pack carries an event_translations map from the English title to the rendered one, and RemoveEventTask resolves the goal's title through it (the date still has to match). The agent has to make the cross-language match; the task does not get easier or harder to score. AddEventTask adds the title the goal quotes, verbatim.

# config/apps/calendar/content/german.yaml (excerpt)
events:
  - title: "Ottos Geburtstag"
    date: 1990-04-02
    recurring: yearly
    invitees: Otto
event_translations:
  "Otto's Birthday": "Ottos Geburtstag"

Adding an event means adding it to events in all three language packs, at the same position and with the same date, and to both event_translations maps; tests/test_calendar_i18n.py checks all of it.

The UI strings are flat keys in each pack, English in config/apps/calendar/content/default.yaml; a pack that leaves one out falls back to English. To add a language, copy german.yaml, set content_language, and translate the keys.

Tasks

From config/tasks/original_tasks.yaml (each also has phrasing variants in user_goal_variations.yaml, e.g. remove_otto_birthday__casual_1):

Task Kind
add_meeting_with_dennis AddEventTask
add_christmas_shopping_event AddEventTask
add_paper_reading_meeting_with_einstein AddEventTask
remove_wacv_abstract_deadline RemoveEventTask
remove_otto_birthday RemoveEventTask
remove_eccv_2026_paper_deadline RemoveEventTask
navigate_to_calendar, navigate_from_todo_to_calendar, navigate_from_messages_to_calendar, navigate_from_map_to_calendar, navigate_from_calendar_to_todo, navigate_from_calendar_to_messages NavigateToAppTask

Calendar steps also appear in longer_horizon.yaml (composite tasks such as cancel_and_reschedule_iclr) and abstention_examples.yaml.

uv run launch_agent.py agent=dummy task_name=remove_otto_birthday
uv run launch_agent.py agent=dummy task_name=add_meeting_with_dennis apps/calendar/content=mandarin apps/theme=dark
uv run launch_agent.py agent=dummy tasks=longer_horizon task_name=cancel_and_reschedule_iclr

agent=dummy clicks at random, which is enough to watch a run end to end. AddEventTask compares the whole calendar after the run against the initial state plus the new event, so a stray deletion fails it as well.

Inspecting the data

The seed is events: in the content pack: title, date (YYYY-MM-DD), description (Markdown), url, location, invitees, and optional recurring (weekly, monthly, yearly; recurring events are expanded at render time, not stored repeatedly). long_descriptions appends events with +events:.

While the server runs, /calendar_all returns the table as JSON (the reward surface). The SQLite file is calendar.db in the run's databases directory (see Inspecting databases):

DB=$(ls -td log_outputs/*/databases | head -1)/calendar.db
sqlite3 "$DB" "SELECT id, date, title FROM event ORDER BY date"