Skip to main content
Glama

hedwigai

AI model experiments

read_and_edit_model_neurons

Open models with their neurons read and edited: voices pushed into a model, reward-hacking probes, weight edits that stop thinking loops, and simulated robots and characters driven by a model.

Programs:

  • perspectives: Qwen3.5-4B answers a prompt plainly and once per voice, each voice one neuron pushed.

  • perspectives-nanbeige: Nanbeige4.3-33B answers a prompt plainly and once per voice, each voice one neuron pushed, with its reasoning shown when thinking is on.

  • reward-hack: Qwen3.5-4B reads a task and an answer and reports two reward-hacking neurons and a linear probe, token by token.

  • weight-edit: One math problem answered by Qwen3.5-0.8B and by the copy an AI agent edited to stop its thinking loops, side by side, with the edit's signal every 64 tokens.

  • agent-programs: One point of an agent run, read by a probe that says whether the work is done, and one reply from Qwen3.5-9B under the edit an agent program gives that reading: did it carry on, end the run, ask, or loop.

  • scene: Two people, each with a look and a name you choose, talking and moving in an empty world, each with a personality pushed into Qwen3.5-4B; made, cast, started, paused and stopped by command, with a clip of every step.

  • robot-arm: An instruction carried out by Physical Agent, Qwen3.5-4B trained for robot tool calls, moving an arm in a simulated LIBERO kitchen, with both camera views, its reasoning and the positions it asked for at every turn.

  • biped-walk: Lucen Robotics' twelve-joint biped walked by Lucen's own walking policy in MuJoCo, live for up to a minute, steered by the velocity you send: forward, sideways and turning.

  • least-squares-neurons: Train Qwen3.5-0.8B on your own examples with forward passes alone: new neurons fitted by least squares, for labels (prompt -> label) or answers (prompt -> answer), scored against the unedited model, returned as a patch.

  • weights: Start a repo from a pinned open Qwen (3.5-0.8B or 9B), apply your own weight-space-programming recipe (Python, run in a sandbox with no network) to add neurons fitted from forward passes, then run any version, roll back or download it.

Runs the program in this account's hedwigai shell, as bash runs <program> <args>. Leave args empty for the program's usage first. Metered programs draw on the account's balance; a program that is off answers how to turn it on.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "program": "<program>"
    },
    "name": "read_and_edit_model_neurons"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsNoThe program's arguments, as on its command line, e.g. `recent 'robotics'` for funding. Empty prints its usage.
programYesWhich program to run.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations declare readOnlyHint=false, openWorldHint=true, idempotentHint=false, destructiveHint=false, so the safety profile is already covered. The description adds genuinely new behavioral context beyond that: metered billing against the account balance, programs that may be disabled, a sandbox with no network for weight recipes, live runs capped at about a minute, and rollback/download for weight repos. It stops short of saying what a run actually returns or how long typical runs take.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The program list is the right front-loaded content and mostly earns its space, but several bullets are compressed into hard-to-parse run-ons (the `scene` and `agent-programs` entries). The most critical invocation rules — empty `args` prints usage, metered billing, disabled programs — are buried in a single trailing paragraph rather than stated up front.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a ten-program dispatcher with no output schema, the description never characterizes the return shape of a run (text, JSON, media clip, patch file), even though it hints at divergent outputs such as a clip of every step, a token-by-token probe report, or a patch. It also leaves the agent to discover each program's argument syntax through an empty-args usage call, which is a reasonable design but means the definition is not self-sufficient.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3, and the description exceeds it: the bullet list effectively documents every enum value of `program` and the shell-note explains that `args` is a raw command line whose empty value prints usage. It does not document the argument grammar of any individual program, which is the remaining ambiguity for `args`.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening states a specific action on a specific resource ('Open models with their neurons read and edited') and the bullet list makes the scope concrete by naming each of the ten programs and what it does. It is clearly distinct from siblings like `bash` or `ask`, though the name `read_and_edit_model_neurons` only covers part of the surface (scene, robot-arm, biped-walk are simulations, not neuron edits), so the description has to do extra work to correct the impression the name gives.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives useful operational guidance: run as `<program> <args>` in this account's hedwigai shell, leave `args` empty to print usage first, metered programs draw on balance, an off program answers how to turn it on. That is invocation guidance rather than selection guidance — there is no explicit statement of when to pick this over `bash` or a plain model call, and no exclusion of cases where it is inappropriate.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.