helper

A command group that generates a small TypeScript helper file for agent programs to use Gnosys memory operations as ordinary code.

In plain words
What is it for?
Use it to generate gnosys-helper.ts in an agent project after starting the Gnosys sandbox. The generated file supports direct memory add and recall calls.
Why use it?
It can reduce the need for an agent to send a separate MCP tool request for every memory operation. MCP is a standard way for an IDE or agent to call external tools.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/proticom/gnosys/helper
Clone the repo
git clone --depth 1 https://github.com/proticom/gnosys
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 390 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00390
Opus 5 $0.00000 $0.00195
Sonnet 5 $0.00000 $0.00078
Haiku 4.5 $0.00000 $0.00039

Measured 2d ago against content hash 903a6f4fda7c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

helper scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

docs/commands/helper.md · 49 lines

What it actually says

gnosys helper

Parent command for generating a tiny TypeScript helper library that agents import to talk to the Gnosys sandbox directly. Pairs with gnosys sandbox start — agents call memory operations like normal code instead of issuing MCP tool calls on every operation.

Usage

gnosys helper
gnosys helper generate
gnosys helper generate --directory ./agent

Bare gnosys helper (no subcommand) prints Commander help for the available subcommands. The parent command has no runtime .action(...) — all behavior lives in the leaf subcommand below.

Subcommands

Subcommand Purpose
generate Write gnosys-helper.ts in the target directory

See the leaf command doc for options, output, and error handling:

Sandbox relationship

Typical workflow:

  1. Start the sandbox: gnosys sandbox start
  2. Generate the helper in your agent project: gnosys helper generate
  3. Import gnosys-helper.ts from agent scripts for low-latency add / recall calls

Most users do not need the sandbox or helper; MCP via gnosys serve is the default integration path.

Validation

cd gnosys-public
npm run cli -- helper --help
npx vitest run src/test/helper-command-handler.test.ts
node scripts/audit-commands.mjs --write
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 49 lines · 0 tokens per session scan A 903a6f4fda7c

Subscribe to this mod's changes

helper is a command published in the GitHub repository proticom/gnosys (4 stars, last pushed 16d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 390 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.