
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Markdown Agent is a simple way to create and run AI agents using plain Markdown files. You write your agent’s behavior in everyday English (with some optional configuration in YAML), run it from the command line, and the results are saved as an HTML file.
It comes with a set of built-in tools for fetching URLs, reading RSS feeds, and loading local files. You can also extend it with your own tools in Node.js.
AI calls are handled by Ollama. Models and settings are controlled via YAML blocks in your Markdown agent.
npm install -g mdagent
Create a file called my-agent.md:
# System
```yaml
model: gpt-oss:20b
tools:
- fetchRss
\``` <-- remove the backslash
You are an editor that finds interesting articles to read. Today is {{CURRENT_DATE}}.
# Find topics
Load yesterday's RSS articles from `https://feeds.arstechnica.com/arstechnica/index` and pick two quirky, unique articles. Print their titles and URLs.
Run the agent:
mdagent my-agent.md
This will create a new HTML file in the output directory containing the full conversation and results.
💡 See examples for more complete samples.
A Markdown agent is just a Markdown file with sections. The two main sections are:
# System) – sets the agent’s role, model, and configuration.# Something) – instructions for the agent, written in plain English.Each additional # Header is run in order, with the output of one section passed into the next. When finished, the full run is saved as an HTML file in the output directory.
Configuration is written inside YAML blocks at the top of a section. For example:
model: gpt-oss:20b
think: medium
# Advanced Ollama options (example: requires 16GB free memory)
seed: 42
num_ctx: 65536
num_predict: 16384
top_k: 40
top_p: 0.9
# Pass arguments to your agent from the CLI
# Example: mdagent my-agent.md --date 2025-09-15 --section tech
input:
- date
- section
# Tools available to this agent
tools:
- fetchRss
- fetchUrls
- loadFile
You can extend Markdown Agent with your own tools in Node.js. A custom tool has:
execute function – the code that actually runs when the tool is called.This makes it possible to add custom logic, fetch data from APIs, or even call other models.
FAQs
Define AI agents for Ollama using only a single markdown file
The npm package mdagent receives a total of 3 weekly downloads. As such, mdagent popularity was classified as not popular.
We found that mdagent demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.