Skip to content

Sahitya3105/RIT_CodeRock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

25 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🦞 RADAR β€” Research & Autonomous Deployment Analytics Robot

The World's First Autonomous Research-to-PR Pipeline for Enterprise Intelligence Built for the Samsung PRISM Hackathon by Team CodeRock


πŸ“‹ Important Documents

Document Description
🎬 DEMO.md Live demo video link β€” watch RADAR in action ,Kindly download the video to view in best quality
πŸ“„ RIT_CODEROCK.pdf Full project proposal, team details & technical architecture
πŸ€– OpenClaw_AI_Disclosure.docx AI tool usage disclosure as required by competition guidelines
πŸ—οΈ Architecture Diagram Visual system architecture of the full RADAR pipeline
βš™οΈ OpenClaw Setup Guide Detailed OpenClaw agent configuration reference

🚨 The Problem

Samsung and other enterprise technology companies publish research and ship products at extreme velocity. But the gap between what global academia discovers and what engineering teams implement is growing every year.

Today, a breakthrough paper on NPU quantization or on-device LLM inference is published on ArXiv. Samsung's engineers may not see it for weeks β€” or ever. Meanwhile, competitors like Google DeepMind, Qualcomm, and Apple are already acting on it.

The cost of this gap:

  • Missed optimization opportunities in production codebases
  • Delayed response to competitor moves
  • Engineering teams manually scanning hundreds of papers with no systematic process
  • No automated link between academic breakthroughs and actionable code changes

"By the time a human researcher reads, evaluates, and proposes implementation of a research paper β€” the window of competitive advantage has already closed."


πŸ’‘ Our Solution

RADAR is a fully autonomous multi-agent system that monitors the global AI research landscape and takes immediate action β€” no human intervention required. It:

  1. Harvests breakthroughs from ArXiv and Semantic Scholar across domains relevant to Samsung (NPU, Mobile AI, Security, IoT).
  2. Analyzes papers using LLMs to map research opportunities to specific Samsung repositories.
  3. Acts by autonomously generating production-quality code and opening Pull Requests.
  4. Broadcasts real-time strategic alerts and competitor threat intelligence via Telegram.
  5. Schedules itself to repeat this pipeline every 24 hours β€” forever β€” without any human trigger.

πŸ—οΈ System Architecture

                        β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                        β”‚         RADAR HEARTBEAT             β”‚
                        β”‚         (python main.py)            β”‚
                        β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                       β”‚
          β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
          β”‚                            β”‚                             β”‚
    β”Œβ”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”            β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”            β”Œβ”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”
    β”‚  MEMBER 1  β”‚            β”‚   MEMBER 2     β”‚            β”‚  MEMBER 3    β”‚
    β”‚  Strategy  β”‚            β”‚  The Harvester β”‚            β”‚  The Brain   β”‚
    β”‚            β”‚            β”‚                β”‚            β”‚              β”‚
    β”‚org_scanner β”‚            β”‚ paper_fetcher  β”‚            β”‚process_papersβ”‚
    β”‚            β”‚            β”‚ fetch_threats  β”‚            β”‚trend_analyzerβ”‚
    β””β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜            β”‚ fetch_trends   β”‚            β””β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜
          β”‚                   β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜                    β”‚
          β”‚   org_profile.json         β”‚   incoming_papers.json     β”‚   pending_actions.json
          β”‚                            β”‚   threat_papers.json       β”‚   live_trends.json
          β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                       β”‚
                              β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”
                              β”‚   MEMBER 4     β”‚
                              β”‚ The Communicatorβ”‚
                              β”‚                β”‚
                              β”‚  auto_pr.py    │──────► GitHub Pull Requests
                              β”‚  send_alert.py │──────► Telegram Alerts
                              β”‚  trend_broadcast│─────► Telegram Trend Cards
                              β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ› οΈ Tech Stack

Layer Technology
Core Language Python 3.10+
Orchestration OpenClaw (Agentic Gateway & Scheduler)
Primary LLM Google Gemini 2.5 Flash
Fallback LLM Groq (Llama 3.3 / 3.1)
Tertiary LLM OpenRouter (Nemotron, Gemma β€” Free Tier)
ML Clustering Sentence-Transformers + Scikit-Learn KMeans
Research APIs ArXiv API, Semantic Scholar API
Integrations GitHub API (PyGithub), Telegram Bot API
Scheduling OpenClaw Cron + Windows Task Scheduler

πŸš€ Quick Start β€” Run the Pipeline

Step 1: Clone the Repository

git clone https://github.com/Sahitya3105/RIT_CodeRock.git
cd RIT_CodeRock
git checkout demo-recording

Step 2: Install Python Dependencies

pip install -r requirements.txt

Step 3: Configure Environment Variables

# Copy the example file
cp .env.example .env

Open .env and fill in your credentials:

# AI Providers (at least one required)
GOOGLE_API_KEY=your_google_api_key_here
GROQ_API_KEY=your_groq_api_key_here
OPENROUTER_API_KEY=your_openrouter_api_key_here

# GitHub Integration
GITHUB_TOKEN=your_github_personal_access_token_here
GITHUB_ORG=Samsung-PRISM-EdgeAI
GITHUB_REPO=Samsung-PRISM-EdgeAI/core-inference-engine

# Telegram Notifications
TELEGRAM_BOT_TOKEN=your_telegram_bot_token_here
TELEGRAM_CHAT_ID=your_telegram_chat_id_here

Step 4: Run the Full Pipeline

python main.py

Watch the contracts/ folder populate in real time:

  • org_profile.json β€” Samsung repo intelligence
  • incoming_papers.json β€” 60+ harvested research papers
  • threat_papers.json β€” Competitor intelligence from ArXiv
  • pending_actions.json β€” AI-mapped optimization opportunities
  • live_trends.json β€” ML-clustered research trend report

πŸ”‘ How to Get API Keys

Google Gemini (Primary LLM)

  1. Go to Google AI Studio
  2. Click Get API Key β†’ Create API key
  3. Copy the key into GOOGLE_API_KEY

Groq (Fast Fallback LLM)

  1. Go to Groq Console
  2. Create a new API Key (free tier available)
  3. Copy the key into GROQ_API_KEY

OpenRouter (Free Tertiary Fallback)

  1. Go to OpenRouter
  2. Create an account and generate a key
  3. Copy the key into OPENROUTER_API_KEY

GitHub Personal Access Token

  1. Go to GitHub Settings β†’ Tokens
  2. Generate a new Classic Token
  3. Select scopes: repo, read:org, workflow
  4. Copy into GITHUB_TOKEN

Telegram Bot

  1. Message @BotFather on Telegram β†’ /newbot
  2. Copy the token into TELEGRAM_BOT_TOKEN
  3. Add your bot to a group/channel and make it Admin
  4. Message @userinfobot to get your TELEGRAM_CHAT_ID

🦞 OpenClaw Setup Guide (Autonomous Scheduling)

OpenClaw transforms RADAR from a script into a fully autonomous, always-on research agent.

Step 1: Install OpenClaw

npm install -g openclaw

Step 2: Initialize in the Project Directory

cd RIT_CodeRock
npx openclaw init

Step 3: Configure the AI Model

Open ~/.openclaw/openclaw.json and set your model:

"model": {
  "primary": "groq/llama-3.1-8b-instant"
}

Note: Ensure GROQ_API_KEY is set as a system environment variable (not just in .env) so the gateway can access it.

Step 4: Start the Gateway

npx openclaw gateway start

Step 5: Open the Control Dashboard

npx openclaw dashboard

Navigate to http://127.0.0.1:18789 in your browser.

  • Chat Tab: Talk to RADAR (/radar-run, /radar-status, /radar-pr)
  • Cron Tab: View and manually trigger scheduled jobs
  • Logs Tab: Watch the agent's real-time reasoning

Step 6: Add Autonomous Cron Jobs

In the OpenClaw Dashboard β†’ Cron Jobs β†’ New Job:

Job Name Agent Schedule Description
RADAR Daily Pipeline radar 0 9 * * * Full pipeline at 9AM daily

Available Agent Skills

Command Description
/radar-run Execute the full autonomous pipeline
/radar-fetch Harvest new research papers only
/radar-analyze Analyze papers and map to repos
/radar-pr Generate and submit code PRs
/radar-alert Send Telegram intelligence report
/radar-status Check pipeline health and pending actions

πŸ“ Repository Structure

RIT_CodeRock/
β”‚
β”œβ”€β”€ main.py                    # Master pipeline orchestrator
β”œβ”€β”€ requirements.txt           # Python dependencies
β”œβ”€β”€ .env.example               # Environment variable template
β”‚
β”œβ”€β”€ brain/                     # Member 3: The Brain
β”‚   β”œβ”€β”€ llm_client.py          # Multi-provider LLM failover engine
β”‚   β”œβ”€β”€ org_scanner.py         # GitHub organization intelligence
β”‚   β”œβ”€β”€ process_papers.py      # Semantic paper β†’ action mapping
β”‚   └── trend_analyzer.py      # ML clustering & velocity analysis
β”‚
β”œβ”€β”€ fetchers/                  # Member 2: The Harvester
β”‚   β”œβ”€β”€ paper_fetcher.py       # ArXiv + Semantic Scholar harvesting
β”‚   β”œβ”€β”€ fetch_threats.py       # Competitor intelligence (ArXiv)
β”‚   β”œβ”€β”€ fetch_historical_trends.py  # Trend data fetching
β”‚   └── config.py              # Harvester configuration
β”‚
β”œβ”€β”€ outputs/                   # Member 4: The Communicator
β”‚   β”œβ”€β”€ auto_pr.py             # Autonomous code generation + PR submission
β”‚   β”œβ”€β”€ send_alert.py          # Telegram opportunity alerts
β”‚   β”œβ”€β”€ trend_broadcaster.py   # Telegram trend intelligence cards
β”‚   β”œβ”€β”€ github_dispatcher.py   # GitHub Issue creation
β”‚   └── issue_manager.py       # Issue lifecycle management
β”‚
β”œβ”€β”€ contracts/                 # Live data exchange (git-ignored)
β”‚   β”œβ”€β”€ org_profile.json       # Samsung repo context
β”‚   β”œβ”€β”€ incoming_papers.json   # Harvested research papers
β”‚   β”œβ”€β”€ threat_papers.json     # Competitor intelligence
β”‚   β”œβ”€β”€ pending_actions.json   # AI-mapped action queue
β”‚   └── live_trends.json       # ML trend analysis output
β”‚
β”œβ”€β”€ skills/                    # OpenClaw agent skill definitions
β”œβ”€β”€ openclaw/                  # OpenClaw agent configuration
β”‚
β”œβ”€β”€ RIT_CODEROCK.pdf           # Project proposal & team details
β”œβ”€β”€ OpenClaw_AI_Disclosure.docx # AI tool usage disclosure
└── radar_architecture_diagram_1777053872297.png  # System architecture

⚠️ Is the Code Ready to Pull and Run?

Yes, with these prerequisites:

Requirement Status Notes
Python 3.10+ Required pip install -r requirements.txt
.env file Required Copy from .env.example, add your keys
Node.js 18+ Optional Only for OpenClaw dashboard
GPU/CUDA Not required CPU-only inference supported

The pipeline runs end-to-end without OpenClaw. Judges can simply run python main.py after configuring .env.


🎬 Demo Sequence

  1. Show Dashboard: Open http://127.0.0.1:18789 with RADAR agent
  2. Trigger Pipeline: Type /radar-run or click Run on a Cron Job
  3. Show Live Data: Watch contracts/ folder fill in VS Code
  4. Show GitHub: Open github.com/Samsung-PRISM-EdgeAI for new PRs
  5. Show Telegram: Live intelligence alert on mobile
  6. Show Scheduling: Cron jobs tab proving autonomous operation

πŸ‘₯ Team CodeRock - M S Ramaiah Institute of Technology

Built with ❀️ for the Samsung PRISM Hackathon


βš–οΈ License

MIT License β€” See AI Disclosure for AI tool usage details.

About

🦞 Autonomous Research-to-PR pipeline for Samsung PRISM β€” monitors ArXiv, maps breakthroughs to Samsung repos, auto-generates code and opens Pull Requests via AI, 24/7.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages