Skip to content

2.41.0: opens fast, Fix this with your AI agent, one line per site

Choose a tag to compare

@spcaeo spcaeo released this 26 Oct 23:43
c1fc7d7

The dashboard opens fast and stays fast as data grows: code and data are compressed, code is cached until the next release, the four big lists load only when their tab opens, and the counting runs give way to the dashboard. Measured on a 3,000-page sample over a slow line, a first load went from 8.0 s and 17.8 MB to 1.4 s and 1.4 MB, and a site switch from 7.9 s to 0.4 s. Each site gets its own AI agent line, so ten sites can be set up at once, and Search Console is an agent job. Every Insights to-do has one Fix this button: your AI agent gets the full list from Skald, fixes it and reports back.

Upgrade

  • Docker: nothing to do. The image's nginx compresses and caches by itself.
  • Self-hosted with your own front nginx built from DEPLOY.md: copy the new cache map and the
    gzip lines, and widen the kit's POST location to (report|hooksecret|searchkey) plus the new
    /fix location (DEPLOY.md). Rolling back below 2.41.0 while keeping those lines: first delete
    the *.json.gz files beside the data files (UPGRADING.md).
  • Scheduled jobs now run at a lower CPU priority (SKALD_JOB_NICE, default 10; 0 turns it off).

The dashboard opens fast, and stays fast as data grows

  • Fixed. Opening a site fetched every data file at full size, every time: on a sample of
    3000 pages, 293 files and 17.8 MB before the key figures showed, 8.0 s on a 2.5 MB/s line,
    and the same again on every reload and site switch. Now 1.4 MB and 1.4 s the first time,
    42 kB and 0.3 s on a reload, 0.4 s on a site switch. How:
    • Compressed. nginx gzips the app's code and data, and sends each data file's
      .json.gz, written beside it by every run, as it is. The helper's answers are never
      compressed (they can hold the session's CSRF token: BREACH).
    • Kept by the browser. The code is fetched at an address carrying its version (a hash
      of the code, on every import too) and kept a year; a new release is a new address. Data
      files are asked for again each time and answer 304 while unchanged. The page itself,
      sites.json and every helper route stay no-store. Every file still needs a session;
      the session check for the shared code is cheaper (a pass for 30 seconds after a full
      check, ended at sign-out).
    • The big files when needed. not_found, pages, page_index and page_trends load
      when a tab or card first needs them, never with the Overview. Those cards show their
      title and "Loading" meanwhile.
    • Smaller copies for the app. data/slim/ holds not_found, pages and page_index
      without the parts the app never draws (each day's 404 rows, each page's day-by-day and
      breakdowns, sitemap date lists). Every row and value kept is the full file's, checked by
      the audit's own walk before the copy is written; the full files, API and MCP are
      unchanged (DATA-CONTRACT.md, "The app's slim copies").
    • Code asked for at once (modulepreload), and scheduled jobs at a lower CPU
      priority
      (SKALD_JOB_NICE, 10), so the dashboard comes first during a live run.
  • Why. The owner, 2026-10-26: "when we open a new site, it is taking a lot of time ...
    you cannot wait five minutes for the overview to load."
  • Who / what to do. Everyone, on the next upgrade; Docker installs: nothing. A
    self-hosted nginx made from DEPLOY.md: take the new map $request_uri $skald_cache and
    the /traffic/ location's gzip and Cache-Control lines (DEPLOY.md, "Compression and
    caching"). A web server in front passes both through as they are. Rolling back below this
    release with the new nginx lines: delete the *.json.gz copies first.
  • Checked. tools/bench_load.py (the figures above: a 3000-page sample, real nginx with
    the image's config behind HTTP/2, Chromium on a throttled line), tests/test_nginx_cache.py
    (the rules from DEPLOY.md, then a real nginx: gzip, HTTP/1.0 proxies, 304, Cache-Control per
    path, helper answers neither kept nor compressed), tests/test_gzip_copies.py (every copy is
    its file, atomic, removed when it would be stale), tests/test_lazy_load.py with
    tests/js/lazy-load.mjs (nothing big at open, each file once, every reader known),
    tests/test_slim.py (copies reconcile on a real run, the audit catches a changed, dropped,
    reordered or added value), tests/test_auth_api.py (the 30-second pass), the scheduler's
    nice, and the full suite with and without PyYAML.

Many sites with your AI agent: one line each, two lines through MCP, and Search Console

  • Added. Settings > Organisation > Sites > Set up many sites with your AI agent
    (#settings/org/sites?lines=all): every site with what is left on it, its own Make its
    line
    , Make a line for each site (one separate line per site), each site's line and watch,
    and Add several sites (up to 25 names, each with Add a site's checks and the plan's limit).
    Each site's Two lines (MCP) makes a token for that one site (mcp + setup) and shows
    line 1 for Claude Code (claude mcp add ..., kept to that folder) or Codex (its own
    [mcp_servers.skald-<site>]), and line 2, Set up Skald for this site. MCP setup_line no
    longer needs site with a one-site token. New GET sites/agentleft.
  • Added. A search job: the agent finds the Search Console property and, with the user's
    yes, when Skald has no key and the line's maker is an install admin, makes a service account
    with gcloud and sends its key file to the new POST /traffic-kit/<code>/searchkey from the
    file (never the chat, never a log; never replaces a key). The one click (add the robot as a
    Restricted user) and Bing's key stay the user's. Checklist line 8, "Search Console connected"
    (optional), whose Set up opens This site > Leads & integrations > Search Console & Bing. The
    report's property is a recommendation with Apply.
  • Fixed. The AI agent kit's rate limit counted per address only, so ten sessions on one
    laptop setting up ten sites shared 10 tries a minute and got "Too many tries". It now counts
    per address and code, with 120 a minute per address across codes.
  • Why. The owner: "a user can be working on 10 sites ... i will give permission from 10
    sites separate". No code or token covers two sites.
  • Who / what to do. Owners and admins. A self-hosted front nginx made from DEPLOY.md must
    widen the kit's POST location to (report|hooksecret|searchkey); the Docker image's nginx has
    it. Nothing else.
  • Checked. tests/test_agent_many.py (ten sites' lines used at once from one address, the
    searchkey route's refusals and its bash + curl command, the two lines' token),
    tests/js/agent-many.mjs (the view and its address), the checklist parity test, and the full
    suite.

To-dos your AI agent fixes: one button, "Fix this"

  • Changed. Each to-do on Overview > Insights has one main button, Fix this, in place of
    Download CSV, Copy link and Send to team. It asks Who will do it?: My AI agent (one
    line to paste into Claude Code, Codex or Cursor), Me (the exact nginx or Apache lines to
    paste, from every row, with the CSV as a small link) or Someone else (Send to team, or the
    link). Fix all (N) above the list asks the same for every open to-do. The link to a to-do
    is the copy icon by its title. The address keeps each choice
    (todo=<id>&fix=1&fixby=agent|me|someone, and link=<id> for the line being watched; never
    the line or its code).
  • Added. The to-do line: fix the Skald to-do "<title>" for <site> — read <address>/traffic-kit/llms.txt and use code <code> (works once, 24 hours). Its steps fetch every row of the to-do from Skald
    with curl into a 0600 file (new GET /traffic-kit/<code>/todo/<id>: paths and counts only;
    never the browser's files, which hold at most 1,000 rows), check first where the site keeps
    its redirects or rules (nginx, Apache, Next.js, vercel.json, Netlify, WordPress, Cloudflare),
    change only what is missing, ask before any server change, test with nginx -t, and report
    each to-do (new POST /traffic-kit/<code>/fix, up to 256 KiB): done, partly or left, the
    exact change, the rows left and why. The report shows in the dialog and on the to-do; "done"
    marks the to-do done, so Skald re-checks it on the days after. Marking done changes no figure
    and is undone with one click; that is the most a leaked line can do. One job per kind:
    todo-lost, todo-errors, todo-markdown, todo-sitemap, todo-leave. A new to-do line never ends a
    set-up line.
  • Added. MCP tools fix_todo (every row and the steps; any token for the site) and
    mark_todo_done (the report and the mark; the setup scope for that one site, owner or
    admin; audit row mcp.todo_done). "Fix my Skald to-dos" now works with the MCP token alone.
  • Added. New to-dos are said: "N new to-dos your AI agent can fix" above the list and in
    the summary mail (each to-do with a link that opens Fix this > My AI agent; never a code in a
    mail), and the outgoing webhook event todo.new (title, proof, figures, link; never a code or
    a row). todos.json gains agent and first_seen; every row is kept for the agents in
    <history folder>/todo-rows/<site>.json (0600).
  • Why. The owner (26 Oct): give the to-do's data to the person's own AI agent so it can do
    all that is needed, with no download and no copy and paste; and one button that asks what
    you want, instead of a row of buttons. "Fix the lost pages", from opening Insights to the
    change made: before, 4 clicks (Open in Site > Not found, Download the nginx lines, back to Insights,
    Mark done) plus signing in to the server, editing nginx, nginx -t and a reload by hand; now
    3 clicks (Fix this, My AI agent, Copy), one paste into the agent and one "yes" to its server
    change. The mark is made by the agent's report.
  • Who / what to do. Owners and admins make lines; anyone who may read the site sees the
    reports. A self-hosted front nginx made from DEPLOY.md needs the new
    ^/traffic-kit/<code>/fix$ location (POST, 256k); the Docker image's nginx has it. Nothing
    else.
  • Checked. tests/test_todo_agent.py (the rows equal todos.py's full rows with
    todos.json cut to one row; the steps run as written under bash with curl, the key never on
    a command line; one line reads only its own site and to-dos; expiry and cancel answer 410;
    "done" marks and "left" does not; the MCP refusals and audit row; no code in a mail; the
    webhook body), tests/js/todos.mjs (the one button, Fix all, the dialog's three answers,
    the address round trip after a reload, cancel, the report on the card), the MCP and mail
    tests, and the full suite with and without PyYAML.

Full release notes: https://github.com/spcaeo/skald/blob/main/docs/CHANGELOG-2.39-2.41.md#2410-2026-10-26