QDNA Send a message

SAR, our agentic AI platform: architecture, tools and guardrails

A language model answers, an agent acts: SAR, short for Secure Agentic Runtime, is the platform we wrote in Rust to put agents to work on site, with tools, memory and controls. Here are its architecture, its tools, its measurements and its limits.

SAR, Secure Agentic Runtime: the SAR daemon at the centre, linked to clients, the gateway, models, memory, MCP tools and verification gates. SAR, Secure Agentic Runtime: the SAR daemon at the centre, linked to clients, the gateway, models, memory, MCP tools and verification gates.
One daemon at the centre, six building blocks around it, one set of rules for every agent. Image: QDNA.
Short answer. SAR is a daemon written in Rust that creates and drives AI agents, each of which receives a model, a closed list of tools and a memory, then acts in a loop, its commands confined by the Linux kernel. A gateway keeps sensitive content on a local model, and deterministic gates check code and prose before anything is delivered.
  • 18Rust crates in the daemon
  • 71versioned experts
  • 4verification gates
  • 89.6%on LongMemEval, 448 of 500

How was this article put together?

This article describes SAR as it runs on 18 November 2026, based on its source code, its tests and our measurement logs, all reread for the occasion. We publish its architecture, its tools, the software's measurements and its limits, but neither the inventory of our machines, nor our addresses, nor our security audit results.

We separate three kinds of information: a measurement comes from a dated test, described with its procedure and its sample; a description comes from the code, reread in the repository; and an external source is cited with its link, bearing in mind that SAR remains a personal project, whose code is not published and which is not offered to anyone.

What is agentic AI?

Agentic AI means a language model that chains actions on its own to reach a goal: it picks a tool, reads the result, corrects its course and starts again until the task is done, whereas a conversational assistant simply answers each message.

A conversational assistant, which answers then waits for the next message, set against an agent, which picks a tool, acts, reads the result and corrects course in a loop; four agent-specific risks: wrong tool, endless loop, instruction hidden in a page, unverified success. A conversational assistant, which answers then waits for the next message, set against an agent, which picks a tool, acts, reads the result and corrects course in a loop; four agent-specific risks: wrong tool, endless loop, instruction hidden in a page, unverified success.
What sets an agent apart from an assistant, and the risks that follow. Diagram: QDNA, based on the article.
In short
  • An assistant answers each message, then waits for the next.
  • An agent picks its tools and chains steps until the goal is reached.
  • Four risks follow: wrong tool, endless loop, hidden instruction, unverified success.

In its guide to building effective agents, published in December 2024, Anthropic separates workflows, where code fixes the order of calls in advance, from agents, where the model directs its own steps and its use of tools, and SAR belongs to the second family, with boundaries set in code.

That freedom comes at a price, because an agent can pick the wrong tool, go round in circles, obey an instruction hidden in a page it reads, or report a success it never checked. The whole design of SAR starts from these four risks, and every building block described below answers at least one of them.

This article describes the software, its technical choices and the measurements that support or contradict them.

What is the platform made of?

The SAR platform is made of four stacked layers, from clients to model, and two shared supports: clients send requests, the daemon creates and drives agents, and the gateway chooses and filters models, while a memory and tool servers serve every layer.

The SAR agentic platform. Inside the organisation's perimeter, Claude Code, Codex, Antigravity, OpenCode and a web interface drive the SAR daemon, written in Rust and resident on the hardware. The daemon holds bounded agents (one model, a closed list of tools, a confined folder), a memory of dated facts and an effects log with checkpoints. It calls MCP tools on demand for documents, the web, code and data. Every model call goes through the gateway, which serves the local open model Qwen3.8 Flash Next; only an allowed request, never sensitive data, leaves for models over an API: Claude, GPT, Gemini, Mistral, DeepSeek. The SAR agentic platform. Inside the organisation's perimeter, Claude Code, Codex, Antigravity, OpenCode and a web interface drive the SAR daemon, written in Rust and resident on the hardware. The daemon holds bounded agents (one model, a closed list of tools, a confined folder), a memory of dated facts and an effects log with checkpoints. It calls MCP tools on demand for documents, the web, code and data. Every model call goes through the gateway, which serves the local open model Qwen3.8 Flash Next; only an allowed request, never sensitive data, leaves for models over an API: Claude, GPT, Gemini, Mistral, DeepSeek.
SAR's layers, from clients to models. Diagram: QDNA, based on the daemon and gateway code read on 1 December 2026.
In short
  • Clients send requests: coding terminals, editors, a web interface.
  • The daemon creates agents, bounds their tools and keeps their state.
  • The gateway picks the model and keeps sensitive work on the local model.

The clients are coding terminals such as Claude Code, OpenCode, Pi or Hermes, editors that speak the ACP protocol, and a web interface. Terminals reach the daemon through an MCP bridge or its API, editors through an ACP translator, and all of them can create agents, write to them and follow their work.

The daemon, save-agent-rs, brings together eighteen Rust crates: agent execution, sessions and histories, the tool registry, confinement, metrics and interfaces, and it creates each agent with a model, a declared process and a list of tools, then keeps these settings across a restart, when a session resumes, and when it is forked to try another path.

The gateway is a version of LiteLLM extended with our plugins, which presents a single interface in front of every model, gives each client a virtual key with its own budget and filters sensitive data. For every call, it records the caller, the process, the requested model, the model actually served and the tokens, never the exchanged text.

The models fall into two groups: an open model served on site, Qwen3.8 Flash Next today, handles everything sensitive by default, while remote models, called through an API, take the public tasks that need more capability. Memory and tool servers, described further down, serve every layer at once.

How does an agent work?

An agent works in a loop: the daemon assembles its context, the model picks a tool, then the daemon checks the call before running it. It then verifies the result within the same turn and records what is worth keeping, until the task succeeds or a limit stops it.

An SAR agent's loop in six steps: assemble the context, choose a tool, filter the call through the closed list and the approval mode, run it, with shell commands confined by Landlock and seccomp, test it within the same turn, compact outputs and record lessons, under four guardrails. An SAR agent's loop in six steps: assemble the context, choose a tool, filter the call through the closed list and the approval mode, run it, with shell commands confined by Landlock and seccomp, test it within the same turn, compact outputs and record lessons, under four guardrails.
The six steps of the loop and the guardrails around it. Diagram: QDNA, based on the daemon code reread on 18 November 2026.
In short
  • Six steps: prepare, decide, control, act, verify, retain.
  • The guards live in code, not in the model's instructions.
  • An uncertain action is never replayed automatically.

The context gathers the agent's instructions, a shared profile, the lessons drawn from past tasks and the memories that memory judges close to the request. Lessons are written through a dedicated tool, never by hand, and a registry that becomes unreadable is quarantined instead of being overwritten, which has already happened.

The closed list bounds what the agent sees and calls: exact tool names, which its sub-agents inherit by intersection, and in an acceptance run on a hundred agents on 15 November 2026, all fifty calls outside the list were refused. The list also lightens every call: a one-word answer cost 17,000 input tokens with no list, 5,700 with one tool and 4,200 with an empty list.

Before execution, two more checks apply: the agent's approval mode decides whether a sensitive action waits for a person's approval, goes ahead directly or stays at the planning stage. Hooks also turn away obviously dangerous commands, such as a deletion outside a full absolute path, but this filtering of text can be bypassed, hence the kernel confinement.

Confinement of the shell commands the model writes relies on the Linux kernel: between the creation of the process and its launch, Landlock opens only the workspace for writing, and seccomp forbids the system calls that open a connection or send data. If the kernel does not enforce every rule, the command does not run.

This choice follows research on prompt injection: in the “Your AI, My Shell” study, 314 attacks hidden in development resources made agentic coding editors run malicious commands in up to 84% of cases. Filtering command strings is therefore not enough, since an injected instruction can always rewrite a path.

The egress guard targets another channel: an agent can slip a secret into a search or an address sent to a server the attacker watches, a scenario described in a 2025 study. Network tools, which run inside the daemon rather than in the shell, therefore go through this guard, which blocks any call that copies a known secret or a key in a recognisable format.

The effect journal forbids any automatic replay: every externally visible action is recorded in it by its digest and a summary, before it leaves and then at its outcome. An action left without an outcome after a crash becomes “indeterminate”, and a person or a higher-level control decides what happens next, because the journal does not promise that an action runs only once.

Verification happens within the same turn: editing tools accept a command, usually the test that checks the change, which runs only if the edit succeeds and is subject to the same guards as any other command. The agent thus sees at once whether its fix holds, instead of reporting it as done without proof.

Long tool outputs, beyond 10 KiB, are sent in full in two requests, then later requests keep only their size and their first and last lines, while the history keeps every byte, which the agent can reread in slices. An agent tasked with reading hostile content can be created with a low trust level: isolated results, no writing and no memories.

Which tools do the agents use?

The agents use tools exposed through the MCP protocol: web search and reading, document reading, code index and call graph, reverse engineering, driving an Android phone, memory, secrets and logs. A single entry point lets them search for a tool, read its schema and then call it, without loading every schema in advance.

The Model Context Protocol, introduced by Anthropic in November 2024, is an open standard in which a server exposes tools and data that a client calls through JSON-RPC messages, and its current version dates from 28 July 2026, and all our MCP servers run on site, behind the same access policy.

An SAR agent's tools: the agent goes through its closed list, then through an MCP entry point leading to eight tool families, web search, documents, code, reverse engineering, Android phone, memory and facts, OpenBao secrets, logs and traces; a one-word answer costs 17,000 input tokens with no list, 5,700 with one tool and 4,200 with an empty list. An SAR agent's tools: the agent goes through its closed list, then through an MCP entry point leading to eight tool families, web search, documents, code, reverse engineering, Android phone, memory and facts, OpenBao secrets, logs and traces; a one-word answer costs 17,000 input tokens with no list, 5,700 with one tool and 4,200 with an empty list.
Eight tool families behind a closed list and a single entry point. Diagram: QDNA, based on the tool definitions and the 15 November 2026 acceptance run.
In short
  • Eight tool families, served on site through the MCP protocol.
  • The closed list: an agent only sees and calls its own tools.
  • Fewer tools, fewer tokens: 17,000 with no list, 4,200 with an empty list.

The following table sums up the tool families our agents use most, with the guardrail specific to each. A page that has been read, an extracted document or a capture always remains untrusted data, never instructions the agent should follow.

Tool family and useGuardrail
Web search: search, read and capture a public pageNo bypassing of authentication or CAPTCHAs
Documents: read a PDF or a scan, extract a tableNative text first, local recognition next
Code: find a symbol, know who calls whatRead only
Reverse engineering: analyse a binary, a firmware image or an Android applicationIsolated folder, evidence recorded
Mobile: drive an Android phone towards a goalOne action, then a check
Memory and facts: retain, recall, date a factMethod and evidence kept
Secrets: read a secret from the OpenBao vaultNever copied into a prompt or a log
Logs and traces: query service logsNeither queries nor content recorded

Every tool has a price, though, since its description takes up context on every call: connected to thirty-six tool servers, a coding terminal sent about 123,000 tokens per call, system prompt included, and a trivial turn towards a large remote model carried 22,000 in schemas alone, hence the single entry point and the closed lists.

How does memory work?

Memory works in three layers: a wiki of durable knowledge, reviewed and dated, then a semantic memory of preferences and decisions, queried at every turn. A memory specific to each project, loaded when a session starts, finally lets the agent pick up the thread without being told everything again.

SAR memory: a wiki of durable knowledge, a semantic memory and a project memory; on write, extraction by a local model, duplicates removed and a single store of vectors, text and graph; on read, a local encoder, three combined searches and context placed at the end of the message; 448 correct answers out of 500 on LongMemEval on 11 November 2026. SAR memory: a wiki of durable knowledge, a semantic memory and a project memory; on write, extraction by a local model, duplicates removed and a single store of vectors, text and graph; on read, a local encoder, three combined searches and context placed at the end of the message; 448 correct answers out of 500 on LongMemEval on 11 November 2026.
The three layers of memory and its two paths. Diagram: QDNA, based on the 11 November 2026 benchmark and the 16 November 2026 cache measurement.
In short
  • Three layers: dated wiki, semantic memory, project memory.
  • Recall without a language model, in 40 milliseconds in tests.
  • Measured: 448 correct answers out of 500 on LongMemEval.

On write, a local model extracts the facts from an exchange and compares them with those already known to avoid duplicates, then the memory daemon files them in a single store that combines vectors, a full-text index and a relation graph, and since a write can carry a delivery identifier, a retry creates no duplicate.

On read, a local encoder turns the question into a vector, then the daemon combines three searches, by closeness of meaning, by exact words and by proximity in the graph, without calling any language model. In benchmark runs, it finds its passages in 40 milliseconds at the median, against 0.33 seconds for the old stack written in Python.

Where memories go matters as much as what they say: inserted at the head of a coding terminal's prompt, they changed with every message and voided the vLLM prefix cache, which reuses the computation of an identical request opening. Placed at the end of the message, they raised the share of reused tokens from 11% to 97%.

On LongMemEval, a 500-question benchmark of long-term memory presented at ICLR 2025, the daemon version in service gave 448 correct answers on 11 November 2026, or 89.6%. Reader and judge were DeepSeek V4.1 Flash rather than GPT-4o, so this score compares our own versions, not published leaderboards.

On LoCoMo, a benchmark of very long-term conversations, the daemon scores 84.4% with our reading prompt, whereas the official prompt gave 69.8% on the previous version. We publish both figures, because the way the model is made to read memories weighs at least as much as the memory itself.

The Rust daemon replaced the old Python stack after a measurement with identical reader and judge, which gave it 455 correct answers out of 500 on LongMemEval against 432. The old components, including the Qdrant and FalkorDB databases, were retired on 8 November 2026, and every nightly backup is restored as a test before it leaves, encrypted, for off-site storage.

How can what an agent claims be verified?

To verify what an agent claims, SAR sets four gates against it: two deterministic, free gates, one for French prose and one for harness changes, a fact check by several models, and experts whose every rule cites its source, though none of them removes the need to review what is binding.

SAR's four verification gates between an agent's work and its delivery: deterministic, free French writing checks, a harness gate with an edit budget that refuses benchmark leaks, facts checked by a graph then by two agreeing models, and 71 versioned experts whose rules cite their page. SAR's four verification gates between an agent's work and its delivery: deterministic, free French writing checks, a harness gate with an edit budget that refuses benchmark leaks, facts checked by a graph then by two agreeing models, and 71 versioned experts whose rules cite their page.
The four gates between an agent's work and its delivery. Diagram: QDNA, based on the gate code and the expert registry as of 18 November 2026.
In short
  • Two free gates, writing and harness, with no model call.
  • A fact is recorded only if two models agree.
  • Every expert rule cites the page it rests on.

The writing gate checks a French text without calling any model: no em dash and no anglicism, non-breaking spaces before colons, paragraphs of 35 to 60 words, a standfirst of at most 50 words and readability within a fixed band. The French version of this article passed it before publication, like all the French prose we deliver.

Here, abridged, is the actual verdict it returns on a five-word French sentence whose two clauses are separated by an em dash, far too short to make a paragraph. The refusal names each broken rule and its location, and its details, written in French, give the measured value, so the fix needs no guesswork.

{
 "pass": false,
 "violations": [
  {"rule": "em_dash",
   "paragraph": 0},
  {"rule": "paragraph_length",
   "paragraph": 0},
  {"rule": "readability_band",
   "paragraph": null}
 ]
}

The harness gate reads the diff of any change to a prompt, a harness or a test. It bounds the size of the change and refuses benchmark leaks, such as a skipped test or a bypassed assertion, which would raise a score without improving anything, and our repositories run it before every commit.

For a fact, the daemon first consults its graph, which dates every fact twice, by the period when it was true and by the moment we learned it. Failing that, it queries several models and records the answer only if two distinct models agree, together with the method followed, the models consulted and the evidence.

A draft that makes several claims is checked claim by claim, and every flagged claim is fixed or removed before delivery. These checks consume model calls, and consensus reduces errors without eliminating them, so they complement primary sources instead of replacing them.

The experts are 71 versioned agent templates as of 18 November 2026, from French writing to agent security. Every rule in their instructions cites a page that was actually opened, and on a second reading the quoted passage must be found there, otherwise the rule is narrowed or removed, and an expert reads either files or the web, never both.

That separation closes the classic leak path, in which an agent reads a local file and then sends it out on the web. Here, abridged to three tools out of six, is the actual definition of the French writing expert: a pinned local model, a low trust level, a declared process and a closed list of read-only tools.

{
 "provider": "llm",
 "model": "qwen3.8-flash-next",
 "model_pinned": true,
 "trust_level": "low_trust_review",
 "process": "expert/redaction-fr",
 "allowed_tools": [
  "file_read",
  "mcp.codemap.search_source",
  "mcp.meta-tools.ast_grep_search"
 ]
}

How does SAR combine private and public models?

SAR runs several models behind a single gateway. Each agent is given a model when it is created, either a private one served on site or a public one called over an API. The gateway then checks three things in order: the client's key, the nature of the content and whether the model actually answers.

SAR's gateway routes each request to the right model. Four typical requests converge on it: reviewing a client's contract and reading a bank statement are served on site, summarising a public web page and fixing code in a public repository go out over an API. The gateway applies three checks in order: the virtual key (allowed models and budget), sensitive content (switched to local), a model that is down (fallback, usually local). On site, the open model Qwen3.8 Flash Next; over an API, Claude, GPT, Gemini, Mistral and DeepSeek, for public tasks when the key allows it. Four principles: one model per agent, one key per client, a declared fallback, and a log that keeps the requested model, the served model and the tokens, never the text. SAR's gateway routes each request to the right model. Four typical requests converge on it: reviewing a client's contract and reading a bank statement are served on site, summarising a public web page and fixing code in a public repository go out over an API. The gateway applies three checks in order: the virtual key (allowed models and budget), sensitive content (switched to local), a model that is down (fallback, usually local). On site, the open model Qwen3.8 Flash Next; over an API, Claude, GPT, Gemini, Mistral and DeepSeek, for public tasks when the key allows it. Four principles: one model per agent, one key per client, a declared fallback, and a log that keeps the requested model, the served model and the tokens, never the text.
Which model answers which request, from the client's key to the served model. Diagram: QDNA, based on the gateway configuration as read on 1 December 2026.
In short
  • One model per agent, named at creation and pinned if it must not change.
  • One virtual key per client sets the allowed models and the budget.
  • The local model takes sensitive work and backs up most remote models.

The gateway exposes one OpenAI-compatible interface in front of 49 model names as of 1 December 2026, aliases included. On the private side, an open model, Qwen3.8 Flash Next, runs on a GPU on site. On the public side, the same interface leads to Claude, GPT, Gemini, Mistral or DeepSeek, without the agent changing a line of code.

The choice belongs first to whoever creates the agent. They name the model and can pin it, as in the creation example above, so that a sensitive review never slides to another model. A few routes are set in the gateway: the French-writing alias, for instance, leads to Mistral Large 4, trained natively in French.

The line between private and public is drawn client by client. Each terminal or service gets its own virtual key, which lists the allowed models and caps spending. A key limited to the local model gives a fully private setup, while a wider key opens remote models to public tasks that need more capability.

A remote model can fail or reject a request, and the gateway then has a fallback. Claude, GPT and Gemini fall back directly to the local model, Mistral goes through Gemini first, and DeepSeek has no fallback declared. The log records the requested model and the served model, so a substitution is always visible afterwards.

Coding terminals add a second level. Claude Code, Codex or Antigravity keep their own model for the conversation, then hand work through SAR's MCP bridge to agents that run on the local model. A remote assistant can thus steer the work without reading a sensitive document itself, provided the result it gets back does not copy that content.

How is privacy maintained?

Privacy rests on the gateway, which inspects every request before any model call: a text bound for an internal model goes through untouched, sensitive content bound for the outside is redirected to the local model with a substitution notice, and a detected secret does not leave, so only ordinary content reaches a remote API.

Two requests cross the same gateway and take two paths. The first, "Review the contract with Transports de l'Estuaire and check the IBAN FR76 3000 6000 0112 3456 7890 189", contains a client name and an IBAN: the gateway, which combines Presidio, name recognition, French rules (IBAN, social security) and a list of private terms, redirects it to the local model with a substitution notice. The second, "Summarise the latest version of the MCP specification", is ordinary: it goes out unchanged to the requested model, Claude, GPT, Gemini, Mistral or DeepSeek, when the key allows it. The log keeps the requested model, the served model and the tokens, never the text. Fictitious client and IBAN. Two requests cross the same gateway and take two paths. The first, "Review the contract with Transports de l'Estuaire and check the IBAN FR76 3000 6000 0112 3456 7890 189", contains a client name and an IBAN: the gateway, which combines Presidio, name recognition, French rules (IBAN, social security) and a list of private terms, redirects it to the local model with a substitution notice. The second, "Summarise the latest version of the MCP specification", is ordinary: it goes out unchanged to the requested model, Claude, GPT, Gemini, Mistral or DeepSeek, when the key allows it. The log keeps the requested model, the served model and the tokens, never the text. Fictitious client and IBAN.
What leaves and what stays, depending on content. Diagram: QDNA, based on the gateway plugins; fictitious example.
In short
  • Towards an internal model, nothing is altered.
  • Sensitive content bound for the outside is redirected to the local model.
  • The log keeps the model served and the tokens, never the text.

Detection combines Presidio, an anonymisation library created at Microsoft, a name recognition model and French rules checked against their control digits, for the French social security number, the IBAN or the bank card. A list of terms specific to the organisation, such as client names, is added on top.

The filter can be seen at work in our benchmarks: in a memory benchmark in early November 2026, 15 calls out of 8,130 carried a private term or a fake key planted in the data, and the gateway served all of them with the local model, and the log shows it in the field for the model actually served.

Public web searches go out unmasked, by explicit decision, because masking a publisher's name or a technical term made any search impossible. The rule therefore moves to their content, which must never carry a secret or a confidential document, and the daemon's egress guard already blocks a known secret copied into a request.

An overzealous filter breaks work: ours read pieces of file paths as people's names, and an agent wrote into a folder renamed [PRIVATE] before declaring success. Since then, no path is masked, except for any secret it contains, and every fix is measured on real texts.

The filter only applies to what goes through the gateway, hence the rule of routing every model call through it, and a detector can always miss something. What remains is to entrust nothing to a remote model that must not leave, and to check in the log which model actually answered.

How can you tell whether an improvement is one?

An improvement is proven by a measurement against the version in service, on real tasks and with a criterion set before the test. SAR therefore counts the use of every function, traces its tool calls following OpenTelemetry's conventions for generative AI and compares every harness variant with production.

How SAR measures an improvement: a candidate and production on the same 33 real fixes, frozen criteria, a search partition then a holdout partition; in late October 2026, 7 tasks solved out of 23 against 5, no significant gain, and no candidate retained over 184 attempts. How SAR measures an improvement: a candidate and production on the same 33 real fixes, frozen criteria, a search partition then a holdout partition; in late October 2026, 7 tasks solved out of 23 against 5, no significant gain, and no candidate retained over 184 attempts.
The protocol for measuring a harness improvement, and its results. Diagram: QDNA, based on the October 2026 measurement campaigns.
In short
  • Compare with production, on the same real tasks.
  • Criteria frozen before the test, a holdout partition kept apart.
  • Results published as they are: no significant gain so far.

This harness search builds on the idea of the Harness² paper, published in October 2026, that an agent's capability depends on its harness and not only on its model. Our tool measures each candidate against the production daemon on 33 real fixes drawn from our repositories, with frozen criteria and a holdout partition kept apart.

The results remain modest, and we publish them as they are: in late October 2026, two loop mechanisms solved 7 tasks out of 23 against 5 without them, a difference that is not significant, then a full run of 184 attempts on 27 October retained none of the candidates compared with production.

A nightly improvement loop also proposes fixes for the whole platform: it keeps a test only if it fails on the old code and passes on the new code, has every change judged by two models, watches the deployed version and rolls back on its own if the tests are inconclusive.

A measurement should be read with suspicion, because a check based on the return code or on the announced cost does not prove which model answered: a call counted as an answer from a large remote model had in fact been served by our local model, and only the field for the model served, in the log, is authoritative.

What are the limits?

The limits lie mainly in the models and the cost: a local model remains less reliable than a large remote model on long tasks, every cross-check consumes calls, and no gate eliminates error, so SAR prepares and verifies while a person decides on what is binding.

In late October 2026, on our benchmark of real fixes, the previous local model solved only about one task in six within the thirty-minute limit, and the same task could succeed and then fail from one repetition to the next, so a useful measurement needs easier tasks, a stronger model or many more repetitions.

Confinement, the egress guard and the filter remain layers among others: each has blind spots, described at the top of the files concerned so that every change keeps them in view, and none is authoritative on its own. We do not publish the details, which belong in an audit rather than an article.

Finally, SAR remains a personal project, built for our own use and not for sale: its code is not published and we offer neither a licence nor a service. The principles described here can nevertheless be reproduced with open building blocks, such as LiteLLM, vLLM, Presidio, OpenBao or the kernel's Landlock and seccomp mechanisms.

Frequently asked questions

What is an agentic AI platform?

It is the software that turns language models into agents able to act. It gives them tools, memory and an execution framework, chooses the model for each call and bounds what each agent is allowed to do. SAR is one example, written in Rust and run on site.

What is the difference between an agent and a conversational assistant?

A conversational assistant answers each message, then waits for the next one. An agent pursues a goal: it picks its tools, reads their results and chains steps without waiting for an instruction at every turn. That autonomy calls for guardrails an assistant can do without, such as confinement and a closed list of tools.

Why write SAR in Rust?

For memory safety without a garbage collector, a single binary with no runtime to install and direct access to the Linux kernel mechanisms that confine agents' commands. Memory followed the same path: its Rust version beat the old Python stack on LongMemEval, 455 correct answers against 432 out of 500, with the same model.

What is the MCP protocol?

The Model Context Protocol is an open standard, introduced by Anthropic in November 2024, that links an agent to tools and data through JSON-RPC messages. An MCP server exposes its tools, then a client discovers and calls them. The same tool thus serves several agents and several terminals.

How do you stop an agent from doing anything it likes?

With boundaries set in code rather than in instructions. A closed list limits the tools, the kernel confines commands and cuts them off from the network, and an approval mode holds back sensitive actions. A guard also blocks a known secret copied into a request, and a journal never replays an uncertain action on its own.

Does data leave the site?

Not the data the gateway recognises as sensitive: it stays on the local model, and a detected secret does not leave. Ordinary content can reach a remote API. Since a detector can always miss something, the rule remains to entrust nothing to a remote model that must not leave.

Can SAR be used?

No. SAR is a personal project: its code is not published, and we offer neither a licence nor a service. This article describes its architecture so that anyone can reuse its principles with open building blocks, such as LiteLLM, vLLM, Presidio, OpenBao or the Linux kernel's confinement mechanisms.

Official sources

Further reading