agentskit.js

Performance budgets

Bundle size ceilings per package, enforced in CI via size-limit. Measured values injected when available.

Every @agentskit/ package has a gzipped size budget enforced on every PR via size-limit. Exceed the limit and CI fails — no surprise bundle bloat.

PackageFormatLimit (gzip)
@agentskit/adaptersESM20 KB
@agentskit/cliESM20 KB
@agentskit/coreCJS10 KB
@agentskit/coreESM10 KB
@agentskit/evalESM10 KB
@agentskit/inkESM15 KB
@agentskit/memoryESM15 KB
@agentskit/observabilityESM10 KB
@agentskit/ragESM10 KB
@agentskit/reactESM15 KB
@agentskit/runtimeESM15 KB
@agentskit/sandboxESM10 KB
@agentskit/skillsESM10 KB
@agentskit/templatesESM15 KB
@agentskit/toolsESM15 KB

Budgets only. Run pnpm measure:sizes && pnpm gen:performance to include real measurements. CI does this on every merge to main.

#Runtime budgets

ConcernTarget
First token latency (streaming)< 400 ms p95
Chunk render rate60 fps (batched on requestAnimationFrame)
Memory read (in-memory adapter)< 1 ms
Memory read (SQLite adapter)< 5 ms
Tool call overhead< 2 ms per call

#How bundle budgets are chosen

  • core: must stay < 10 KB gzipped — it ships in every install.
  • react/ink/vue: aim for < 15 KB — UI layer only, zero adapter bundled.
  • adapters: sum of individual provider imports; tree-shakable.
  • runtime: includes ReAct loop + planner primitives — aim for < 20 KB.
  • cli: no budget — terminal tool, size is not on the critical path.

Tip

The limits are not aspirational. Every PR runs pnpm size in CI and will fail if it regresses.

Explore nearby

✎ Edit this page on GitHub·Found a problem? Open an issue →·How to contribute →

On this page