← Back to Plugins
Tools

Ai News Agent

Augustrains By Augustrains 👁 104 views ▲ 0 votes

A multi-agent AI news summarization system built with OpenClaw. Fetches RSS news via plugins and generates summaries using LLM agents.

GitHub

Install

npm install
```

README

# OpenClaw Multi-Agent News System

An open-source OpenClaw project for routing news tasks across multiple agents and local tools.

## Overview

This repository combines:

- A main orchestration agent that delegates news tasks
- A specialized news agent that must use tools instead of inventing news
- A local RSS news plugin powered by Python
- A local Codex CLI plugin for writing report files into a workspace

## Features

- Multi-agent routing for news-related requests
- RSS-based news collection from multiple sources
- Tool-first news workflow for summaries and report generation
- Local file generation through a controlled workspace
- Configurable OpenClaw plugin loading

## Repository Structure

```text
.
|-- agent/
|   |-- Assistant.md
|   `-- AI News Reporter.md
|-- plugins/
|   |-- codexcli/
|   `-- news-agent-plugin/
|-- workspace/
|-- openclaw.example.json
|-- openclaw.json
|-- requirements.txt
`-- README.md
```

## Architecture

- `Assistant` is the top-level orchestration agent.
- `AI News Reporter` is the specialist agent for news tasks.
- `get_latest_news` fetches RSS news through the Python plugin.
- `codex_write_code` writes report files into the local workspace.

Typical flow:

1. A user asks for news or a news report.
2. `Assistant` delegates the task to `AI News Reporter`.
3. `AI News Reporter` calls `get_latest_news`.
4. If a file/report is requested, it also calls `codex_write_code`.

## Requirements

- OpenClaw
- Node.js 18+
- Python 3.10+
- Local `codex` CLI if you want file generation through the Codex plugin

## Installation

Install Python dependencies from the repository root:

```bash
pip install -r requirements.txt
```

Install the news plugin's Node dependency:

```bash
cd plugins/news-agent-plugin
npm install
```

The `codexcli` plugin currently has no external npm dependencies.

## Configuration

Use the provided example config as a starting point:

```bash
cp openclaw.example.json openclaw.json
```

Then update values as needed:

- Gateway token
- Model choices
- OpenRouter authentication
- Plugin settings for your local environment

Important defaults:

- `pythonBin` uses `python3`
- `scriptPath` can be omitted for the news plugin because it defaults to the bundled `news_agent.py`
- `allowedRoots` is limited to `./workspace`

## Running

Load this project with OpenClaw using your local `openclaw.json`.

Example use cases:

- Ask for the latest AI news
- Ask for a basketball news summary
- Ask for a Markdown news report saved locally

## Notes

- Do not commit secrets or real gateway tokens
- `openclaw.example.json` is safe to publish
- `openclaw.json` should be treated as your local runtime config
- Generated report files should go under `workspace/`

## License

This project is released under the MIT License. See [`LICENSE`](/home/yang/openclaw-ai-news-system/LICENSE).
tools

Comments

Sign in to leave a comment

Loading comments...