Skip to content
shoko

Sync and limits

Shoko keeps a copy of the text from your sources and searches that copy. The copy lags the source by up to the sync interval.

Frequency

Each library syncs on a schedule you choose:

FrequencySyncsPrice per GB per month
DailyOnce a day$5
HourlyEvery hour$8
Every 5 minutesEvery 5 minutes$12

The free plan syncs daily. Hourly and every 5 minutes need a paid plan; without one, a library syncs daily whatever its setting says. Owners and admins can also start a sync from the library's page with Sync now: once an hour per library on the free plan, every 5 minutes on a paid plan. The page shows when the next one is possible. Replacing a token starts a sync too, unless a manual sync ran within that time; then the next scheduled sync uses the new token.

The first sync starts as soon as you add a library. The library is searchable while it runs, and agents see a note that results may be incomplete until it finishes. Large libraries sync in slices, so the first sync can take a while.

Full syncs and changes-only syncs

There are two kinds of sync:

  • A full sync reads the whole source, compares it with what is stored, updates what changed and removes what is gone. Every library gets one full sync a day.
  • A changes-only sync asks the source only for what changed since the last sync. It is fast and cheap, so hourly and every-5-minutes libraries run one between their daily full syncs. Sync now also runs one.

A changes-only sync picks up new and edited documents. Whether it also picks up deletions depends on the source:

SourceDeleted at the source, removed from search
GitHubAt the next sync. A changes-only sync sees every deleted, moved and renamed file.
LinearArchived and deleted (trashed) issues at the next sync; archived projects and documents usually too. Others within a day.
NotionPages moved to the trash or archived at the next sync. Pages you stop sharing with the integration within a day.
ConfluencePages archived or moved to the trash usually at the next sync. Others within a day.
JiraWithin a day. Jira does not tell Shoko about deleted issues, so only the daily full sync removes them.

"Within a day" means: the deleted document stays searchable until the next full sync, at most 24 hours later, as long as syncs succeed. A library whose sync fails, is paused or is blocked keeps its last index, searchable, until it syncs again or you delete it. The same applies when someone loses access in the source, and to the new paths of pages under a page that was renamed or moved. The library's page shows the kind of each sync: Full or Changes only.

A full sync also runs at once when you add a library, replace its token, or press Sync now on a library that shows Limit reached.

Each library shows when it last synced, and list_libraries returns the same time to your agent as last_synced_at.

When a sync fails

The library shows the error and keeps what it had indexed; agents can still search it. A temporary error at the source, such as an outage or a rate limit, is retried after 15 minutes (later if the source asks), or at the next scheduled sync if that comes sooner. Other errors, such as an expired token, wait for the next scheduled sync, or for you to fix the cause and press Sync now. Replacing a token starts a sync.

If the source suddenly returns nothing for a library that had documents, Shoko keeps the existing index and fails the sync instead of emptying it. Usually the token, or the GitHub App installation, lost access. To empty a library on purpose, delete it.

Limits

LimitValue
Free plan size100 MB (100,000,000 bytes) of extracted text
Free plan libraries3
Free plan sync frequencyDaily
Free plan text indexed150 MB a day (UTC) per person
Free plan libraries added10 a day (UTC) per person
Largest document indexed1 MB (1,000,000 bytes) of text
Tool callsAbout 60 in a burst, then 1 per second, per person or agent
Tool calls per organizationAbout 300 in a burst, then 5 per second; 2 grep calls at a time
SearchesNot metered
Organizations you create3, including the one made at sign-up

The free plan's 100 MB and 3 libraries belong to the person who created the organization: they are shared by all the free organizations that person created, not given again to each one.

On the free plan, each person may index up to 150 MB of text a day and add up to 10 libraries a day, across the free organizations they created. Days are UTC. Text indexed and libraries added stay counted for the day even if you delete the library or the account, so deleting and re-adding does not start over. For these daily limits a person is an email address: accounts made with you+tag@… variants of one address, or with dots added to a Gmail address, share them. Free indexing on a day also shares a capacity with all free accounts, and a reserved part of it is kept for accounts at least a day old. When your 150 MB are used, your free syncs pause until 00:00 UTC with a note on the library; what is already indexed stays searchable, and the sync resumes by itself.

Free-plan indexing also shares a daily capacity across all free accounts. It is larger than one person's 150 MB, and part of it is kept for people starting their first sync of the day, so no single person can use it up. Only if many people index a lot on the same day can it run out; then free-plan syncs pause until 00:00 UTC with a note on the library, what is already indexed stays searchable, and the sync resumes by itself. Paid plans are not affected by either limit.

Free-plan syncs also take turns: a free sync works for a few minutes at a time, then waits behind the other free libraries in line before it continues. A large first sync on the free plan can therefore take longer than on a paid plan. When the free plan's 100 MB is full, a sync stops downloading new documents it could not add.

Sizes are decimal: 1 MB is 1,000,000 bytes and 1 GB is 1,000,000,000 bytes.

At the free limit

The free plan does not let you add a library once the free organizations you created hold 3 libraries together, or their 100 MB is full.

When a sync would take them over 100 MB, Shoko keeps syncing that library with what fits:

  • Documents deleted at the source are removed from the index.
  • Changes that keep a document the same size or make it smaller are indexed.
  • New documents, and changes that make a document larger, are indexed while they fit. The rest are left out, and a document whose change was left out keeps its last indexed version.

The sync finishes normally and the library shows Limit reached with a message saying how many new or grown documents were not added. Everything that is indexed stays searchable, and agents see limit_reached in list_libraries and a note under their results. The library keeps syncing, so deletions and changes that fit keep being applied. The daily full sync tries the left-out documents again (a changes-only sync tries one again only if it changed). To make room, delete a library, narrow this one to fewer repositories, projects, spaces or teams, or upgrade. Then press Sync now: on a library at its limit it runs a full sync, which adds what fits, and the library shows Ready again once nothing is left out.

If there are more than 3 libraries on the free plan, for example after a paid plan ends, only the 3 oldest sync. The others keep what they had indexed and show why they do not sync.

If the free organizations you created hold more than 100 MB, which can only happen after a paid plan ends, their libraries keep syncing the same way: deletions and changes that do not grow are applied, nothing new is added, and the libraries show Limit reached until the total is under 100 MB again.

On the paid plan

There is no size limit, only the monthly spending limit the owner sets in Billing ($50 to start). When the projected bill for the month would pass it, a sync adds only what fits and the library shows Limit reached, the same way as at the free plan's 100 MB. Raise the limit to index the rest.

Hourly libraries are billed as at least 10 MB and every-5-minutes libraries as at least 20 MB, whatever they hold. See Billing.

If a payment fails, libraries keep syncing for 7 days, then stop until the payment goes through. Search keeps working.

What is skipped

  • Documents over 1 MB (1,000,000 bytes) of text, empty documents, and documents whose path is longer than 4,000 bytes.
  • From GitHub: binary files, lockfiles, generated and minified files, dependency, vendored and build directories, symbolic links, submodules and Git LFS files. GitHub lists them.
  • Attachments, images and files in every source.

Each source page lists what else it skips. The library's page shows how many documents each sync skipped for their size or content. It does not list them, and files skipped by their path, such as lockfiles, are not counted.

Freshness for agents

If an answer looks out of date, check last_synced_at from list_libraries. Shoko is a search index, not a live view. It does not show the current state of a ticket that changed a minute ago unless the library syncs that often.

Deleting a library

Owners and admins delete a library from its page by typing its name. Agents stop seeing it at once: it disappears from list_libraries, and calls that name it get Library not found or not accessible. Shoko then deletes its search index, its list of documents, its sync history and its stored token, usually within minutes. A sync that is running stops before it writes anything more, and nothing it does afterwards can bring the library back. See Security.

Deleting an organization or your account

An owner deletes an organization in Settings; deleting your account deletes the organizations you are the only member of. The organization disappears at once for everyone: nobody can sign in to it, its people, invitations, agents, keys and connected clients lose access, and agents see none of its libraries. Shoko then deletes every library's search index, and only after the last one is gone the organization's remaining records. This usually takes minutes; if the search service is unavailable, Shoko keeps retrying every few minutes until it is done.