Building a Multi-Tool Gemma 4 Agent with Error Recovery
In a
Building a Multi-Tool Gemma 4 Agent with Error Recovery Read Post »
This is today’s edition of The Download, our weekday newsletter that provides a daily dose of what’s going on in the world of technology. A reality check on the AI jobs hysteria Despite the growing hysteria over AI’s threat to white-collar jobs, there’s still scant evidence that the technology has had a large-scale impact on the labor market. Analysis of US labor data shows that unemployment in occupations most exposed to AI is actually lower than in less-exposed jobs. There are also no signs that large numbers of workers are shifting from AI-threatened professions into supposedly safer manual-labor jobs. It’s true that things aren’t great in the job market—but the question is why. Here’s what the data really says about AI and jobs. —David Rotman Opinion: It’s time to address the looming crisis in entry-level work —Georgios Petropoulos, an assistant professor at the USC Marshall School of Business AI has not yet produced mass unemployment. But it may be quietly weakening the first rung of the career ladder. A recent Stanford study found that young workers in AI-exposed occupations suffered a sharp decline in employment after the spread of generative AI. The same pattern didn’t appear in low-exposure jobs, suggesting AI is replacing junior tasks that once gave young workers their first foothold. It’s time to rethink how we train, prepare, and support young people entering the workforce. Read this op-ed on how job seekers, businesses, and society can adapt. The must-reads I’ve combed the internet to find you today’s most fun/important/scary/fascinating stories about technology. 1 The Pope has called for governments to regulate AI In his first major teaching document, Pope Leo said AI must be “disarmed.” (BBC)+ He warned that AI fuels war and misinformation. (CNN)+ But could also “open up a horizon extending in all directions.” (Engadget)+ Anthropic cofounder Chris Olah also spoke at the event. (Reuters $) 2 SpaceX has launched its biggest and most powerful rocketThe Starship V3 made its test flight debut two days after Elon Musk announced SpaceX’s IPO.(Guardian)+ SpaceX pulled off the launch, but not the landing. (Ars Technica)+ The rocket could be key to SpaceX’s valuation. (Fortune $)+ But rivals to the company are rising. (MIT Technology Review) 3 Huawei says it can make industry-leading chips within five yearsThe Chinese tech giant announced a breakthrough in chip design. (Reuters $)+ Its progress underscores Beijing’s push to neutralize US sanctions. (NBC)+ Chinese chip stocks rallied after the announcement. (Bloomberg $) 4 A new vaccine may protect against the Ebola strain behind the current crisisTests have shown promising results for the mRNA vaccine. (New Scientist)+ Another Ebola vaccine that could be ready for trials in months. (BBC)+ But vaccines face a new problem: their name. (MIT Technology Review) 5 A swimmer broke a world record at the ‘Steroid Olympics’Athletes at the Enhance Games were encouraged to take dope. (Wired $)+ Silicon Valley elites have backed the competition. (WP $)+ Which fits right into 2026’s longevity vibes. (MIT Technology Review) 6 The EU plans to fine Google a massive antitrust penaltyFor allegedly favoring its own services in search results. (CNBC)+ It would be the largest penalty for breaching the Digital Markets Act. (Reuters $) 7 US quantum computing subsidies may not be legalCongressional critics say the funding has been misused. (Ars Technica) 8 AI is minting new billionaires—and workers want their shareThe Samsung labor showdown reflects global concerns. (Rest of World) 9 China has launched artificial human embryos into orbitTo find out whether we can reproduce beyond Earth. (Gizmodo) 10 Jony Ives has designed Ferrari’s first fully-electric carThe legendary Apple designer has created a polarizing aesthetic. (FT $) Quote of the day “Technology is never neutral, because it takes on the characteristics of those who devise, finance, regulate, and use it.” —Pope Leo issues a warning about AI in his first encyclical letter, entitled ‘Magnifica humanitas: On Safeguarding the Human Person in the Time of Artificial Intelligence.” One More Thing ALYSSA SCHUKAR How climate vulnerability and the digital divide are linked In Anacostia, a historic African-American section of Washington, DC, Monica Sanders is measuring Wi-Fi speeds. It’s below the FCC’s minimum to qualify as a broadband service. She then checks the temperature: 46.9 °F. Sanders, an adjunct professor of law at Georgetown University, frequently records this combination of weak internet access and environmental conditions. Her work shows how underinvestment in infrastructure can leave underserved communities more exposed to climate risks like extreme heat and flooding. Discover how the digital divide is shaping climate vulnerability in the US. —Colleen Hagerty We can still have nice things A place for comfort, fun, and distraction to brighten up your day. (Got any ideas? Drop me a line.) + Here’s a joyful way to settle sibling squabbles: a mandatory dance-off.+ Build the metropolis of your dreams in this browser-based city simulation game.+ Watch this hypnotic tiny train move in a perfect, endless loop on a rotating turntable.+ Take a nostalgic look at early computing history with this curated gallery of vintage punch cards.
The Download: puncturing the AI jobs panic Read Post »
Amid rapidly growing adoption of enterprise-level AI agents, there’s a disconnect emerging between ambition and execution. Although 85% of organizations say they want to be agentic within the next three years, 76% say their current operations and infrastructure can’t support that change. They cite a lack of readiness across people, processes, and workflows. The sticky tape problem The challenge is that many organisations are often layering AI agents onto existing operations, rather than reimagine the operating model and how work will need to be rewired, explains Prasun Shah, global CTO for workforce consulting and chief AI officer at PwC UK Consulting. “They’re embedding AI employees into what is a human operating model,” layering on AI agents to existing workplace structures when “this is like adding sticky tapes to parts of an operating model that is breaking.” Doing so may be preventing organizations from unlocking the full value agentic AI offers, creating circumstances where disillusionment can quickly creep in. That full value lies in agents’ capacity to execute entire workflows with limited human input. They can coordinate complex tasks, make independent decisions, adjust to changing conditions, and iterate performance. In early proving grounds that span customer service, HR, and sales, it’s already estimated that AI agents could accelerate business processes by as much as 30% to 50% and low-value work time by 25% to 40% when deployed at scale. But with this capability comes greater complexity and the need for an enterprise-wide change. Growing the AI vocabulary Enterprise agentic AI platform Ema describes this change as agentic business transformation (ABT), a term it coined last year in partnership with HFS Research, in an attempt to plug what it sees as a gap in the existing lexicon about AI agents, and to provide enterprises with a new framework with which to think about their own adoption of the technology. “None of the existing vocabulary captures the full scope of the change,” explains Ema CEO and founder Surojit Chatterjee. “Digital transformation was about moving from paper to software. AI transformation was about adding artificial intelligence to existing processes. Co-pilot is about AI assisting in various human tasks. But ABT is something categorically different: It’s the integration of AI agents into the fabric of the organization.” For Shah, the dedicated term (ABT) “helps drive the need to redesign an organization in its entirety: its operating model, its workflows, decision rights, and performance management systems.” He emphasizes that “everything that’s needed to ensure those agents are actually active participants in value creation, rather than just point tools or productivity aids.” According to Ema, ABT encompasses three core pillars: an organization’s technology stack, its workforce, and the metrics used for success. AI agents as connective tissue The first pillar of ABT is the technology stack. “Your existing tech stack was designed for human-operated, application-centric workflows,” says Chatterjee. “It needs to be reconsidered when the actor is an AI agent operating at machine speed across multiple systems simultaneously.” As AI agents are integrated into an organization, enterprises will need to pivot from a set of linear processes and steps, to rewiring work in a very different way, explains Shah. That’s because the value in AI agents isn’t as another layer in an existing technology stack but as a connective tissue, he explains, moving between or across layers to coordinate a high-level task or retrieve and interpret data from multiple discrete applications. AI agents can create “a true competitive differentiation for an enterprise” by making decisions based on this capacity to contextualize, he says. “That is where the next battleground will be.” To build this connective tissue, leaders need to adapt their technology stack to surface higher quality decisions from AI agents, prioritizing access to multiple datasets and applications simultaneously to develop tacit knowledge. “Organizations that make this architectural shift become genuinely more adaptive,” says Chatterjee. “When a new business requirement emerges, you don’t wait six months for a software vendor to build a feature. You configure an AI employee using natural language and connect it to the systems it needs. The time from business to production workflow drops from months to days.” The workforce, redesigned As AI agents are deployed for more use cases, enterprise leaders must consider what this means for dynamics across their workforce, the second pillar of ABT. Workforce structures today deviate little from the hierarchical model of the early days of industrialization. To maximize efficiency and scale, processes are standardized, tasks are clearly delineated between strategic business units (SBUs), and employees progress up through an organization based on their capacity to optimize output from teams below them. But with AI agents that can execute, coordinate, and optimize tasks—often without managerial coordination—the lines of that established hierarchy become blurred. In a workforce that blends AI agents and human employees, managers will be freed up from many execution-based tasks but take on new responsibilities associated with managing hybrid teams. Managers “will need to be able to manage issues around trust, explainability, psychological safety, and even status dynamics” to navigate new tensions that could arise in a hybrid workforce, says Shah. The impact of agentic AI on existing workforce structures goes far beyond the management layer, too. McKinsey predicts that by 2030, three-quarters of current jobs will require redesign, upskilling, or redeployment, and organizations will need to act swiftly to amend recruitment, retention, and remuneration. From output to outcome Success metrics are the third and final pillar of ABT. As AI agents assume greater ownership of core enterprise processes, taking on collaborative roles alongside human employees, traditional workforce metrics that focus on activity or output—such as calls handled or reports filed—no longer make sense. “When you add AI employees into the workforce, activity metrics become meaningless or actively misleading,” says Chatterjee. “An AI employee can handle a thousand customer interactions in the time it takes a human to handle ten. If you measure success by interactions handled, you’ll conclude the AI is working brilliantly while missing whether any of those interactions actually drove customer satisfaction,
Rethinking organizational design in the age of agentic AI Read Post »
The Model Context Protocol has moved from Anthropic’s internal experiment to a de facto industry standard at a speed few integration protocols have matched. Since its launch in November 2024, MCP has grown explosively: OpenAI adopted it in March 2025, Microsoft announced support in Copilot Studio in March 2025, and by late 2025 combined Python and TypeScript SDK downloads had crossed 97 million monthly. In December 2025, Anthropic donated MCP to the Agentic AI Foundation under the Linux Foundation. Gartner projects that up to 40% of enterprise applications will include integrated task-specific AI agents by the end of 2026, up from less than 5% today. That growth has made authentication the central unsolved problem of the agentic stack. When AI agents do nothing but answer questions, auth is a conversation-level concern. When they read emails, update CRMs, write to databases, and call external APIs autonomously, auth becomes infrastructure — and the blast radius of getting it wrong becomes enormous. The Spec Requirements That Matter Before ranking platforms, it helps to understand exactly what the MCP spec requires for protected HTTP-based deployments — because several well-known providers still fall short on at least one requirement. For a spec-compliant remote MCP server, OAuth 2.1 with PKCE is required when authorization is implemented, all endpoints must use HTTPS, authorization server metadata must be discoverable by clients, Protected Resource Metadata (RFC 9728) must be exposed, and Resource Indicators (RFC 8707) must be validated to prevent token audience confusion. Dynamic Client Registration (DCR) deserves a nuance: it is not a universal hard requirement. The current spec defines CIMD as the should-level preferred registration path, while DCR remains a may-level fallback and backward-compatible option. DCR is still operationally useful — it lets clients self-register with servers they have never encountered before, without a human completing a manual registration step — but providers that support CIMD rather than DCR are still spec-compliant. Best Authentication Platforms for AI Agents and MCP Servers 1. WorkOS — Strong Choice for Enterprise Identity + MCP-Compatible Auth Best for: Enterprise engineering teams that need SSO, SCIM, fine-grained authorization, and audit logging wired directly to MCP server access control. WorkOS is one of the strongest options for teams that want MCP-compatible OAuth combined with enterprise identity primitives. WorkOS AuthKit can act as an OAuth 2.1 authorization server for MCP servers and works with the official MCP SDKs. It also offers SSO, SCIM, Admin Portal, audit logs, and Fine-Grained Authorization (FGA) — covering the access control surface that most standalone auth providers do not address. As an independent company focused solely on enterprise authentication, its roadmap is not split across a broader platform. FGA enables tool-level permission scoping, which is the right abstraction for agentic access control: rather than granting an agent access to a service, you grant it access to specific tools within that service. WorkOS lets teams add MCP OAuth without replacing an existing user database or identity provider — relevant for organizations already running Okta, Entra ID, or an internal directory. Standout feature: The combination of MCP-compatible OAuth, FGA for tool-level scoping, SSO/SCIM, and audit logs under one independent vendor covers more of the enterprise auth surface than most alternatives in this category. Limitation: Pricing is tailored and the self-serve path is primarily developer-oriented. Teams without existing enterprise identity requirements may find the feature surface more than they need. 2. Stytch (a Twilio Company) — Best for Cloudflare Workers + Developer-First MCP Auth Best for: B2B SaaS teams adding MCP authentication on top of an existing auth stack without a full migration, particularly those deploying on Cloudflare Workers. Stytch’s Connected Apps platform is purpose-built for agentic use cases. It implements OAuth 2.1 with PKCE, Dynamic Client Registration, and consent UI, and can operate as a standalone layer on top of existing CIAM providers — meaning teams locked into legacy identity infrastructure can adopt Stytch’s MCP-specific flows without migrating their entire user database. Twilio completed its acquisition of Stytch in November 2025, so current positioning reflects that ownership. The Cloudflare integration is the clearest product differentiator. Cloudflare’s Agents SDK includes a McpAgent class that handles transport and authentication automatically, and its workers-oauth-provider library implements the full OAuth server flow for Workers deployments. Stytch’s Trusted Auth Tokens integrate with this environment cleanly, making it a natural choice for teams building remote MCP servers at the edge. Role-based access control covers B2B multi-tenant scenarios, and the drop-in consent screen handles user-facing agent authorization flows — the UX piece that most lower-level auth primitives leave to the developer. Standout feature: Trusted Auth Tokens that integrate with existing CIAM providers without requiring a full migration. For teams on a legacy identity stack who need MCP-compatible auth quickly, this is a practical fast path. Limitation: As with any post-acquisition product, roadmap direction under Twilio is worth tracking for teams making long-term infrastructure commitments. 3. Auth0 by Okta — Best for Teams with Existing Auth0 Deployments Best for: Organizations that have already standardized on Auth0 or Okta and want to extend that infrastructure to MCP servers rather than introducing a new vendor. Auth0’s “Auth for MCP” became generally available on May 6, 2026, having exited early access in November 2025. It includes CIMD registration and on-behalf-of token exchange. For teams already running Auth0, the operational overhead of adding MCP OAuth is lower than switching to a new provider, and the integration path is now more straightforward than it was during the early access period. Okta has also released its own MCP server — a secure protocol abstraction layer that enables AI agents and LLMs to interact with Okta’s scoped management APIs in natural language, with least-privilege access control enforced at each tool call. This positions Okta not just as an auth provider for MCP servers but as an MCP server in its own right. The tradeoff is pricing complexity. Since Okta acquired Auth0 in 2021, some product overlap has created complexity in the enterprise feature roadmap, and FGA capabilities carry additional cost. Teams should factor this into
Best Authentication Platforms for AI Agents and MCP Servers in 2026 Read Post »
For years, authentication on the web followed one design assumption: a human sits behind a browser. Click a button. Fill out a form. Verify an email. Copy an API key and paste it somewhere else. That model does not work when the user is delegating work to an agent. Agents are already writing code, opening pull requests, triaging tickets, querying systems, and updating records. But most products still have no real way for an agent to register. The workaround — giving an agent a raw API key or session token — produces credentials that are unscoped, hard to audit per session, and impossible to revoke selectively. WorkOS is proposing a structured alternative: auth.md, an open protocol for agent registration. What is auth.md? auth.md is a small Markdown file an application publishes at a well-known location — typically https://service.com/auth.md. The file tells agents how to register with that service: which flows are supported, which scopes exist, and how credentials are issued, audited, and revoked. Because it is plain-text Markdown, the same file works as documentation for human developers and as a runtime artifact agents can read programmatically. An agent fetches the file, reads the structured sections, picks the right flow, and registers — without a human filling out a form. Discovery works in two hops. The machine-readable source of truth lives at /.well-known/oauth-protected-resource (Protected Resource Metadata, or PRM). It promotes the resource and points at the Authorization Server. The Authorization Server metadata at /.well-known/oauth-authorization-server carries the agent_auth block — the structured object that tells agents which flows are supported, and what the register_uri, claim_uri, revocation_uri, and identity_types_supported values are. The auth.md file is the prose companion that points agents toward this discovery path. On any 401 from the API, the service should return a WWW-Authenticate: Bearer resource_metadata=”…” header so agents can bootstrap discovery without reading documentation first. The Two Registration Flows auth.md defines two primary flows. An application can support either or both. Agent verified flow: The agent’s identity provider — OpenAI, Anthropic, Cursor, or any trusted platform — attests to the user’s identity at registration time. The agent requests an audience-specific ID-JAG from its provider, then POSTs it to the app’s /agent/auth endpoint. The app decodes the ID-JAG header to get kid and alg, looks up the issuer in its trusted providers list, fetches the provider’s JWKS, verifies the signature, validates claims (aud, exp, iat, jti, client_id), and returns credentials synchronously. No OTP, no email round-trip, no human interaction required. The result is a delegation record per (iss, sub, aud) that the provider can revoke at any time by POSTing a logout token to the service’s revocation_uri. Apps that already JIT-provision users from OIDC or SAML will recognize this pattern — it is the same shape with a different issuer. One important constraint: access tokens issued from ID-JAG verification must not include a refresh token. The agent must present a fresh ID-JAG to extend access. User claimed flow: This is an OTP-based path that requires no agent provider participation. The agent registers with the app, and the user binds the registration by reading a one-time code from an email back to the agent. The two claim endpoints are /agent/auth/claim (to trigger the OTP email) and /agent/auth/claim/complete (to submit the code). This flow has two starting shapes. In the anonymous start variant, the agent self-registers without identity and receives a credential immediately, scoped to pre-claim permissions the app defines. At any point before the registration expires, the agent runs the OTP ceremony to bind the credential to a real user and upgrade scopes. The API key is not rotated on claim — scopes upgrade in place. In the email required variant, the agent supplies a user email at registration. The credential is withheld entirely until the OTP ceremony completes. Use this when any pre-claim usage is unacceptable. User Matching and Audit When credentials are issued, the service needs to match the registration to an existing user or provision a new one. The recommended resolution order is: match on a prior delegation record for the same (iss, sub) pair first; then match on a verified email; then JIT-provision a new user per the app’s policy — or reject if the product requires manual onboarding. For observability and incident response, the docs recommend recording a standard set of audit events: registration.created, claim.requested, otp.generated, claim.confirmed, registration.expired, and registration.revoked. For ID-JAG flows, include iss, sub, and agent_platform so operators can correlate with provider-side logs. Marktechpost’s Visual Explainer auth.md — Implementation Guide Open Protocol 01 / 07 Overview What Is auth.md? auth.md is a small Markdown file your app publishes at its domain. It tells AI agents how to register on behalf of a user: which flows are supported, which scopes exist, and how credentials are issued, audited, and revoked. Because it is plain-text Markdown, the same file works as documentation for human developers and as a runtime artifact agents can read programmatically. Open Protocol No WorkOS Account Required OAuth-Based https://workos.com/auth-md 02 / 07 Discovery How Agents Find Your Endpoints Discovery works in two hops. Your API returns a header on every 401 that points to the Protected Resource Metadata. The PRM points to the Authorization Server, which carries the agent_auth block with all endpoint URLs. 1 Agent hits your API, receives 401 Unauthorized with a WWW-Authenticate header pointing to PRM 2 Agent fetches /.well-known/oauth-protected-resource to get the Authorization Server URL 3 Agent fetches /.well-known/oauth-authorization-server and reads the agent_auth block: register_uri, claim_uri, revocation_uri, identity_types_supported WWW-Authenticate: Bearer resource_metadata=”https://api.service.com/.well-known/oauth-protected-resource” 03 / 07 Flow 1 Agent Verified Flow The agent’s identity provider (OpenAI, Anthropic, Cursor, etc.) attests to the user’s identity using an ID-JAG. No human interaction required. Credentials are returned synchronously. 1 Agent asks user for consent to assert identity to your service 2 Agent requests an audience-specific ID-JAG from its provider 3 Agent POSTs the ID-JAG to your /agent/auth endpoint 4 Your service verifies the signature against the provider’s JWKS, validates claims (aud, exp, iat, jti), matches the user, and returns credentials 5 Revocation: provider POSTs
WorkOS Releases auth.md: An Open Agent Registration Protocol Built on OAuth Standards Read Post »
arXiv:2605.23069v1 Announce Type: new Abstract: Large language models (LLMs) are increasingly used across diverse linguistic and cultural contexts, yet their cultural knowledge remains uneven across regions and languages. We present the DFKI-MLT system for SemEval-2026 Task 7 on cultural awareness, where we apply activation steering to multilingual LLMs using language vectors extracted from parallel FLORES data. Our method performs inference-time adaptation by adding language-specific steering vectors to the residual stream at a selected transformer layer, without any parameter updates. We participated in both the short-answer (SAQ) and multiple-choice (MCQ) tracks; however, only our MCQ submission received an official score. In the official MCQ track, we achieved 86.96% accuracy, ranking 7th out of 17 teams. To better understand system behavior, we conduct post-hoc analyses on the shared-task MCQ and SAQ settings. These analyses show that activation steering yields modest and heterogeneous improvements on cultural reasoning: gains are strongly layer-sensitive, vary substantially across language-region pairs, with some configurations even degrading performance, and interact with prompt formulation, comparing generic and culturally conditioned prompts. Our findings suggest that prompt design and activation steering should be jointly optimized for culturally aware multilingual inference.
DFKI-MLT at SemEval-2026 TASK 7: Steering Multilingual Models Towards Cultural Knowledge Read Post »
arXiv:2605.20043v2 Announce Type: replace Abstract: We present an orthography-aware error analysis of Japanese past-tense morphological inflection, treating hiragana not merely as a transcriptional medium, but as a representational system encoding morphophonological distinctions that may influence model generalization. We evaluate two character-level sequence-to-sequence architectures on past-tense formation using datasets formatted according to the SIGMORPHON 2020 and 2023 shared task conventions. Despite high aggregate accuracy, models exhibit systematic, linguistically interpretable errors that cluster around specific orthographic properties of hiragana. We introduce a concise error taxonomy capturing seven primary failure modes and provide both quantitative and qualitative analyses. Gemination-related errors dominate residual failures, accounting for 75-80% of errors, particularly in verbs whose stems end in the vowel e and require gemination before the past-tense suffix. Error patterns remain highly consistent across architectures and random seeds, suggesting a robust interaction between orthographic representation, morphological structure, and data frequency effects in shaping model generalization. These results underscore the necessity of orthography-aware evaluation for understanding neural generalization in morphologically complex languages.
Implementing hybrid search strategies is a critical step in building modern RAG (Retrieval-Augmented Generation) systems , especially when shifting from prototype to production-ready solutions.
Implementing Hybrid Semantic-Lexical Search in RAG Read Post »
Implementing hybrid search strategies is a critical step in building modern RAG (Retrieval-Augmented Generation) systems , especially when shifting from prototype to production-ready solutions.
Implementing Hybrid Semantic-Lexical Search in RAG Read Post »
Tencent has released TencentDB Agent Memory, an open-source memory system for AI agents. The project ships under the MIT license. It targets a problem familiar to anyone shipping long-horizon agents: context bloat and recall failure. It is symbolic short-term memory along with layered long-term memory. It integrates with OpenClaw as a plugin and with the Hermes Agent through a Gateway adapter. The default backend is local SQLite with the sqlite-vec extension, so no external API is required. Why agent memory is hard Most current memory stacks shred data into fragments and dump them into a flat vector store. Recall then becomes a blind similarity search across disconnected fragments, with no macro-level guidance. The architecture rests on two pillars: memory layering and symbolic memory. A 4-tier semantic pyramid For long-term personalization, TencentDB Agent Memory builds a four-level pyramid instead of a flat log. The layers are L0 Conversation, L1 Atom, L2 Scenario, and L3 Persona. These correspond to raw dialogue, atomic facts, scene blocks, and a user profile. The Persona layer carries day-to-day user preferences and is queried first. The system drills down to Atoms or raw Conversations only when finer detail is needed. Lower layers preserve evidence; upper layers preserve structure. Storage is heterogeneous. Facts, logs, and traces are persisted in databases for full-text retrieval. Personas, scenes, and canvases are stored as human-readable Markdown files. Layered memory artifacts live under ~/.openclaw/memory-tdai/. Symbolic short-term memory via Mermaid Long-running agent tasks consume tokens through verbose tool logs, search results, code, and error traces. TencentDB Agent Memory addresses this through context offloading combined with symbolic memory. Full tool logs are offloaded to external files under refs/*.md. State transitions are encoded in Mermaid syntax inside a lightweight task canvas. The agent reasons over the symbol graph in its context window. When it needs the raw text, it greps for a node_id and retrieves the corresponding file. The Tencent dev team describes this as a deterministic drill-down from top-layer symbol to mid-layer index to bottom-layer raw text. Benchmark numbers Results are measured over continuous long-horizon sessions, not isolated turns. SWE-bench, for example, runs 50 consecutive tasks per session to simulate context-accumulation pressure. On WideSearch, integrating the plugin with OpenClaw raises pass rate from 33% to 50%, a 51.52% relative improvement. Token usage drops from 221.31M to 85.64M, a 61.38% reduction. On SWE-bench, success climbs from 58.4% to 64.2% while tokens fall from 3474.1M to 2375.4M, a 33.09% reduction. On AA-LCR, the success rate moves from 44.0% to 47.5%. Tokens drop from 112.0M to 77.3M, a 30.98% reduction. For long-term memory, PersonaMem accuracy rises from 48% to 76%. Note: these numbers come from Tencent’s own evaluations. Recall and retrieval Retrieval defaults to a hybrid strategy. The system combines BM25 keyword search with vector embeddings, fused using Reciprocal Rank Fusion (RRF). Developers can switch to pure keyword or embedding mode through a config field. The BM25 tokenizer supports both Chinese (jieba) and English. Default settings trigger an L1 memory extraction every five turns. A user persona is generated every 50 new memories. Recall returns five items by default with a 5-second timeout. On timeout, the system skips injection rather than blocking the conversation. Installation and developer surface The OpenClaw integration ships as a single npm package: @tencentdb-agent-memory/memory-tencentdb. The project requires Node.js 22.16 or higher. Enabling it takes one config flag. The plugin then handles conversation capture, memory extraction, scene aggregation, persona generation, and recall. For Hermes, a Docker image bundles the agent, the plugin, and the TDAI Memory Gateway. The default model is Tencent Cloud’s DeepSeek-V3.2. Any OpenAI-compatible endpoint works through the MODEL_PROVIDER=custom flag. Two tools are exposed to agents during a session: tdai_memory_search and tdai_conversation_search. Both return references with node_id and result_ref fields for traceback. A Tencent Cloud Vector Database (TCVDB) backend is also available as an alternative to local SQLite. Marktechpost’s Visual Explainer TencentDB Agent Memory — Preview Open Source / Tencent TencentDB Agent Memory A quick-start guide to fully local, 4-tier long-term memory for AI agents. 01 / OVERVIEW What is TencentDB Agent Memory? An MIT-licensed memory system for AI agents that combines symbolic short-term memory with a 4-tier long-term memory pipeline. Runs fully local with zero external API dependencies. Short-term memory Offloads verbose tool logs to files and keeps a compact Mermaid task canvas in context. Long-term memory Distills conversations into a 4-tier semantic pyramid: L0 → L1 → L2 → L3. Local backend Defaults to SQLite + sqlite-vec. Tencent Cloud Vector Database (TCVDB) is optional. Integrations Ships as an OpenClaw plugin and a Hermes Agent Docker image. 02 / ARCHITECTURE The 4-Tier Semantic Pyramid Long-term memory is layered, not flat. Upper layers carry structure; lower layers preserve evidence. L3 · PersonaUser profile (persona.md) L2 · ScenarioScene blocks (Markdown) L1 · AtomAtomic facts (JSONL) L0 · ConversationRaw dialogue Drill-down path: Persona → Scenario → Atom → Conversation. References use node_id and result_ref for deterministic traceback. 03 / SYMBOLIC SHORT-TERM Mermaid task canvas + context offloading Verbose intermediate logs are the largest token consumers in long tasks. The plugin offloads them to disk and keeps a high-density symbol graph in context. How it works Full tool logs are offloaded to refs/*.md under the data directory. State transitions are encoded in Mermaid syntax inside a lightweight task canvas. The agent reasons over the symbol graph, then greps a node_id to pull raw text. Storage path on disk: ~/.openclaw/memory-tdai/. All artifacts are human-readable for white-box debugging. 04 / INSTALL Install the OpenClaw plugin Requires Node.js 22.16 or higher and an OpenClaw installation. # Install the npm package as an OpenClaw plugin openclaw plugins install @tencentdb-agent-memory/memory-tencentdb openclaw gateway restart Zero-config enable Add the following to ~/.openclaw/openclaw.json to turn it on with default SQLite + sqlite-vec. { “memory-tencentdb”: { “enabled”: true } } 05 / CONFIGURATION Daily-tuning parameters Every field has a sensible default. The most common knobs are listed below. Field Default Description storeBackend sqlite Storage backend recall.strategy hybrid keyword / embedding / hybrid (RRF) recall.maxResults 5 Items returned per recall recall.timeoutMs 5000 Skip injection on
We use cookies to improve your experience and performance on our website. You can learn more at นโยบายความเป็นส่วนตัว and manage your privacy settings by clicking Settings.