Skip to content
PluginStats

@argentic-labs/client weekly downloads statistics

By argentic-labs · npm · AI SDKs

Argentic client for TypeScript. The engine runs your agent for hours, rebuilding each prompt from a journal (state blocks plus a recent tail of about 40K tokens) instead of an ever-growing transcript. Adapters for the Vercel AI SDK and Mastra.

View on npm Outdated · Nov 10, 2026

@argentic-labs/client has 37 recorded weekly downloads on npm, a decrease of 91.5% over the past 30 days, ranking #2846 of 3,247 tracked listings.

Weekly downloads
37
Official API · Dec 5, 2026
7-day growth
-24.5%
-12 weekly downloads
30-day growth
-91.5%
-399 weekly downloads
90-day growth
—
Insufficient history
Rank
#2846
▼ 227 in 7 days

About @argentic-labs/client

Argentic for TypeScript

Argentic runs the agent loop. Your Vercel AI SDK or Mastra tools and system prompt carry over; the framework's own loop (generateText, Agent, Mastra Agent.generate) is not used.

Each turn, Argentic rebuilds the prompt from a journal of the run instead of replaying an ever-growing transcript: state blocks plus a recent tail of about 40K tokens. The journal keeps the full record, so you can see every step the agent took and check it against what the model saw.

Each tool call the agent makes comes back to your code to carry out. If the process dies mid-run, run it again: it resumes without repeating a finished action.

Try it

npx @argentic-labs/client demo

Set ARGENTIC_API_KEY and MODEL_KEY first. Press Ctrl-C while it works, run it again, and it skips what already finished. Details in the repo README.

Install

npm i @argentic-labs/client
  • @argentic-labs/client: the client and runDurable, no dependencies, Node 22+.
  • @argentic-labs/client/ai-sdk: fromAiSdkTools, needs ai v5, v6 or v7.
  • @argentic-labs/client/tools: toolPack, retry-safe tools for Stripe, Resend, SMTP, Slack, GitHub and a generic HTTP POST. See TOOLS.md.
  • @argentic-labs/client/mastra: fromMastraTools, takes the createTool() tools you would pass to an Agent (the key is the tool name). Needs @mastra/core 1.x for the tools; the adapter itself imports nothing.

To vendor it instead: clone this repo and copy argentic.ts, ai-sdk.ts and mastra.ts into your project (Node 22+, no package needed beyond what you already use).

Use

import { tool } from 'ai'
import { z } from 'zod'
import { Argentic, runDurable } from '@argentic-labs/client'
import { fromAiSdkTools } from '@argentic-labs/client/ai-sdk'

const tools = { refund_order: tool({
  description: 'Refund an order.',
  inputSchema: z.object({ order_id: z.string(), amount_usd: z.number() }),
  execute: async (args, { toolCallId }) => refund(args, toolCallId),
}) }

// apiKey defaults to ARGENTIC_API_KEY and modelKey to MODEL_KEY
const client = new Argentic()
const out = await runDurable({
  client, agent: 'my-agent', runId: 'order-1182', ledgerPath: '.argentic-ledger.json',
  task: 'Refund order 1182.', system: 'Call one tool per turn.',
  tools: await fromAiSdkTools(tools),
})
console.log(out.reply)

Keep agent and runId the same across restarts. A request that takes longer than timeoutMs (default 300000, 0 for no limit) counts as a network failure and is retried with the same key. If the ledger file is not valid JSON, runDurable warns on stderr, sets the file aside as <path>.corrupt and starts empty, so finished actions may run again. client.replay(agent, wakeId) re-renders a wake's prompts from the journal and compares them to what the model saw; it calls no model and spends nothing.

Once per operation (once_per, 0.1.7)

A tool can declare once_per, a key such as refund:{order_id} filled in from the call's arguments. Argentic then refuses a second call with the same key, in this wake or any later one. Set it on a DurableTool directly, or pass { oncePer: { refund_order: 'refund:{order_id}' } } as the second argument to fromAiSdkTools or fromMastraTools. The template is checked before the request is sent. See TOOLS.md. 0.1.6 and earlier dropped the field.

Tools, context and deferred loading (0.1.10)

Declare an agent's tools once with client.putTools(agent, tools) and leave tools out of later wakes; client.tools(agent) reads them back. A wake can also carry context (facts for that call only, such as the signed-in user's plan; it is not written to the journal) and tool_choice ('auto', 'required' or { type: 'tool', name }). On a tool, defer_loading: true keeps its schema out of the prompt until the agent looks it up, which pays off from about ten tools.

await client.putTools('support-bot', [{ name: 'book_slot', description: 'Book a slot.', parameters: { type: 'object', properties: { day: { type: 'string' } }, required: ['day'] } }])
const out = await client.wake('support-bot', { message: 'Book Tuesday.', model: freeModel, context: 'Plan: pro' }, 'book-1')

Structured tool results (0.1.11)

runDurable answers the tools an agent asked for with a text message the model reads, and now also sends the same results as the results field of the wake: [{ seq, result }], where seq is the action's seq and result is exactly what the tool returned (or the { error } object when it threw). The API journals each as the real result of that call. The first wake of a run has none, and a result the ledger already held is sent again like the others. Pass structuredResults: false to send the text only. If the API you talk to does not know the field yet, it answers 400 and names results; the client sends that wake again once without it, under the same key, and leaves it out from then on. Calling client.wake() yourself, add results to the body next to the message, never with fire_due, at most 100 entries.

Waking on a schedule (handleDue)

Create a recurring schedule or a one-shot timer, and read what is due:

const client = new Argentic()
await client.putSchedule('support-bot', 'morning-check', { cron: '0 9 * * *', message: 'Review overnight tickets.' }) // five UTC fields
await client.putSchedule('support-bot', 'follow-up', { at: '2026-11-20T09:00:00Z', message: 'Chase the open refund.' }) // one-shot
await client.schedules('support-bot')   // name, cron or at, next_at, last_fired_at, fires
await client.due()                      // what is due now; wake each agent with fire_due, or let the notice below do it
await client.deleteSchedule('support-bot', 'follow-up')
```…

Description from the npm listing.

  • agents
  • long-running
  • context
  • journal
  • ai-sdk
  • mastra
  • argentic

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

@argentic-labs/client weekly downloads on npm, last 90 days: 37 weekly downloads as of Dec 5, 2026.@argentic-labs/clientWeekly downloads on npm · Last 90 days37downloads / week02004006008001K1.2K1.4KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
@argentic-labs/client weekly downloads on npm, last 90 days: 37 weekly downloads as of Dec 5, 2026.

7/30/90-day growth

@argentic-labs/client weekly downloads growth on npm: -24.5% over 7 days, -91.5% over 30 days, 90-day growth unavailable.@argentic-labs/clientWeekly downloads growth on npm37downloads / week now7-day growth-12 weekly downloads-24.5%30-day growth-399 weekly downloads-91.5%90-day growth+37 weekly downloadsInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@argentic-labs/client weekly downloads growth on npm: -24.5% over 7 days, -91.5% over 30 days, 90-day growth unavailable.

Ranking history

@argentic-labs/client npm ranking history: currently #2846 (by weekly downloads).@argentic-labs/clientnpm ranking · by weekly downloads · Last 90 days#2846current rank#1600#1800#2000#2200#2400#2600#2800#3000Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankNov 10, 2026 – Dec 6, 2026 · 12 observations · Updated Dec 5, 2026pluginstats.com
@argentic-labs/client npm ranking history: currently #2846 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 143, #8 (overall #2,848)
All npm: every listing in weekly downloads order

Listing placement

AI SDKs378 listings · 19 pages · page 19, #6 (overall #366)
AI SDKs: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (142)
Recent weekly downloads observations for @argentic-labs/client
Date (UTC)Weekly downloadsChange vs. previous
37-9
46-3
49-9
58-5
63+6
57-14
71+22
49-1
500
50+4
46+1
45+9
36+14
22—

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/@argentic-labs/client. First seen Nov 10, 2026; last successful collection Nov 10, 2026. See the methodology.