
Research
/Security News
Mini Shai-Hulud Campaign Hits Red Hat Cloud Services npm Packages
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.
LLM-MAR is a compact CLI that creates LLM agents, lets them debate, answers questions, and builds workflows.
LLM-MAR (Multi Agent Reasoning) is a compact CLI that creates LLM agents, lets them debate, answers questions, and builds workflows.
npm install -g llm-mar
Clone the repository:
git clone https://github.com/llm-mar/llm-mar.git
cd llm-mar
Install dependencies:
npm install
Set up your OpenAI API key:
export OPENAI_API_KEY=your_api_key_here
Get started with LLM-MAR in minutes! Create intelligent agents, form teams, and orchestrate debates—all through simple YAML configurations.
Let's create an AI assistant specialized in creative writing:
llm-mar create agent writer --model gpt-4 --goal "To write engaging stories" --role "Creative Writer" --system-prompt "You are a talented fiction writer with a vivid imagination." --instructions "Use descriptive language,Build suspense,End with a twist" --output text
This generates a YAML configuration file that defines your agent's personality and capabilities.
The command above creates default/writer.yaml with this structure:
version: '1.0'
kind: Agent
metadata:
name: writer
description: An agent named writer
spec:
id: writer
model: gpt-4
goal: To write engaging stories
role: Creative Writer
system_prompt: You are a talented fiction writer with a vivid imagination.
instructions:
- Use descriptive language
- Build suspense
- End with a twist
output: text
Key Components:
Now let's use the agent to generate a story:
llm-mar run default/writer.yaml --input "Write a short story about a mysterious old clock in an antique shop."
The agent will respond with a creative story based on its configuration!
Combine multiple agents for collaborative tasks:
llm-mar create team story_team --agents "default/writer.yaml,default/editor.yaml" --output text
Create engaging debates between agents:
llm-mar create debate tech_debate --agents "default/optimist.yaml,default/pessimist.yaml" --judges "default/judge.yaml" --input "Will AI replace human jobs?" --output text
After installation, use the llm-mar command (or npx llm-mar if installed locally).
Create a new agent YAML file:
llm-mar create agent myagent --model gpt-4 --goal "To answer questions" --role "Assistant" --system-prompt "You are a helpful assistant." --instructions "Think step by step,Answer clearly" --output text
This creates default/myagent.yaml.
Create a team of agents:
llm-mar create team myteam --agents "default/agent1.yaml,default/agent2.yaml" --output text
Run an agent with input:
llm-mar run default/myagent.yaml --input "What is the capital of France?"
Run a team with a specific agent:
llm-mar run default/myteam.yaml --agent agent1 --input "Discuss this topic"
Run a debate (assuming you have a debate YAML):
llm-mar run default/debate1.yaml
LLM-MAR uses YAML files to define agents, teams, and debates. Here's a quick overview of the structure:
version: '1.0'
kind: Agent
metadata:
name: Scientist
description: A scientific analysis agent
spec:
id: scientist
model: gpt-4
goal: To provide scientific explanations
role: Research Scientist
system_prompt: You are an expert scientist...
instructions:
- Use evidence-based reasoning
- Explain complex concepts simply
output: text
version: '1.0'
kind: Team
metadata:
name: Research Team
description: Collaborative research team
spec:
agents:
- default/scientist.yaml
- default/analyst.yaml
output: text
version: '1.0'
kind: Debate
metadata:
name: Ethics Debate
description: Debate on AI ethics
spec:
method: majority_vote
input: Should AI have rights?
judges:
- default/judge.yaml
agents:
- default/pro.yaml
- default/con.yaml
output: text
For detailed configuration options and advanced features, see docs/yaml-structure-guide.md.
FAQs
LLM-MAR is a compact CLI that creates LLM agents, lets them debate, answers questions, and builds workflows.
We found that llm-mar 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.

Research
/Security News
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.

Research
/Security News
The North Korean malware loader hides in a Packagist-listed package and its GitHub branch to fetch and execute remote code in a likely Contagious Interview-style lure.

Security News
The Rust project is moving toward formal rules on LLM use in contributions after months of internal debate over maintainer burden, code quality, and contributor experience.