mrmd-agent
v0.1.0
Published
CLI client for the local MRMD agent bridge — control live MRMD Electron notebooks from the terminal
Maintainers
Readme
mrmd-agent
CLI for controlling a live MRMD Electron notebook through the local agent bridge.
Install locally for development
From this package directory:
npm linkThis installs these commands globally from your local checkout:
mrmd— short everyday commandmrmd-agent— explicit alias
To remove the linked command later:
npm unlink -g mrmd-agentRequirements
mrmd-electronmust be running- an MRMD window should be open
- for runtime commands, the target runtime should be attached in the notebook
The bridge writes its connection info to:
~/.config/mrmd/agent-bridge.jsonExamples
mrmd status
mrmd document
mrmd cells list
mrmd cells insert --lang python --code "x = 42\nx" --run
mrmd cells run --match "x = 42"
mrmd exec --lang python "scratch = 99\nscratch"
mrmd vars --lang python
mrmd historyJSON output
Append --json to any command to get raw structured output:
mrmd cells list --json