惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
V2EX
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
人人都是产品经理
人人都是产品经理
博客园 - 三生石上(FineUI控件)
aimingoo的专栏
aimingoo的专栏
U
Unit 42
GbyAI
GbyAI
H
Help Net Security
A
Arctic Wolf
SecWiki News
SecWiki News
K
Kaspersky official blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
Blog — PlanetScale
Blog — PlanetScale
B
Blog
Spread Privacy
Spread Privacy
L
Lohrmann on Cybersecurity
C
Check Point Blog
O
OpenAI News
Microsoft Security Blog
Microsoft Security Blog
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
大猫的无限游戏
大猫的无限游戏
Google DeepMind News
Google DeepMind News
Webroot Blog
Webroot Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
P
Palo Alto Networks Blog
A
About on SuperTechFans
S
SegmentFault 最新的问题
Recent Announcements
Recent Announcements
S
Schneier on Security
Martin Fowler
Martin Fowler
WordPress大学
WordPress大学
Jina AI
Jina AI
The Hacker News
The Hacker News
V2EX - 技术
V2EX - 技术
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
腾讯CDC
罗磊的独立博客
G
GRAHAM CLULEY
L
LINUX DO - 热门话题
雷峰网
雷峰网
博客园 - 【当耐特】
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Google Online Security Blog
Google Online Security Blog
美团技术团队
M
MIT News - Artificial intelligence
Engineering at Meta
Engineering at Meta
Hacker News: Ask HN
Hacker News: Ask HN
S
Security Affairs
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
月光博客
月光博客

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
How I Built an AI Assistant That Grows Its Own Tools
QuoLu · 2026-05-31 · via DEV Community

Introduction

Due to changes in Anthropic's terms of service, the use of Claude subscriptions via third-party harnesses has been blocked. While there was some buzz about it, to be honest, it didn't really affect me.

I have the Claude Code CLI at my fingertips. I just need to build a bridge: send a message to Discord, pass it to the CLI, and return the reply to Discord.

So, I built it.


Built Just the Framework

I created LogBot. It's a simple bot that forwards messages from Discord to the Claude Code CLI and returns the responses to Discord.

Discord ──→ LogBot ──→ Claude Code CLI
              ↑                │
              └── Post Response ──┘

Enter fullscreen mode Exit fullscreen mode

I implemented the following features as a minimal framework:

  • Session Management — Maintains Claude Code sessions based on UUID. These are completely isolated from VSCode sessions.
  • Message Queue — If messages arrive while Claude is processing, they are queued and processed in order, so none are missed.
  • Approval Flow — If Claude attempts to edit a file, a notification is sent to Discord, where I can approve or reject it via reactions (✅ / ❌).
  • MCP Server — If you place files in the tools/ directory, they can be used as tools by Claude.

What's important here is that I started with zero MCP tools. No weather, no calendar, no train info—nothing. Just the framework.

However, this framework has one powerful characteristic:

Claude can write files. In other words, it can add JavaScript files to the tools/ directory. The MCP server automatically scans and registers tools under tools/.

Claude can create its own limbs.


Started with "I want a clock"

The first thing I asked Claude from Discord was trivial.

"What time is it?"

While the Claude Code CLI can retrieve system time, it's smarter to have it as an MCP tool. I asked Claude to "make an MCP tool that returns the time."

In a few seconds, tools/current-time.js was created.

Next was "I want to know the weather." Claude created tools/weather.js using the free Open-Meteo weather API. No API key required.

"I want to see my Google Calendar schedule." Claude created tools/gcal-auth.js and tools/gcal-list.js, complete with OAuth helpers.

"I want to read my Gmail too." Following the same pattern, a complete set of Gmail tools was created—authentication, listing, reading bodies, sending, filtering, and bulk deletion.

All I did was say "I want this" from Discord. I didn't write a single line of code myself.


It's not code that CRON hits

Once the tools were in place, the next thing I wanted was periodic execution.

"Tell me the weather, train operation info, and today's schedule every morning at 7:00 AM."

Normally, one would write a script that hits the weather API, calls the calendar API, scrapes train information, formats it, sends it, and registers it to CRON.

But since I'm using Claude, it's more interesting to pass a prompt rather than code.

{
  "cron": "0 7 * * *",
  "prompt": "Give me the morning report. Tell me the weather (Saitama City Kita-ku, today), train operation info, and today's calendar schedule. Please include a 'Good morning' greeting as well."
}

Enter fullscreen mode Exit fullscreen mode

When 7:00 AM hits, the scheduler wakes up Claude. Claude calls the weather tool, the calendar tool, and the train info tool, summarizes the results, and posts them to Discord.

Claude decides which tools to combine and how. The logic isn't written in code; it's written in the prompt.

In other words, if I want to change the format of the report, I just rewrite the prompt. Just by sending a single line to Discord saying, "Add tomorrow's weather too," it changes the next morning.


Departure Notification—The Real Topic

The morning report was just the beginning.

"Based on today's schedule, let me know when it's time to leave."

From this single request, the departure notification mechanism was born.

What I wanted

If I have an appointment, say, "Meeting in Shinjuku at 2:00 PM," I want to be notified 30 minutes before departure, including weather and train operation info, by calculating the travel time backward.

Difference from regular reminders

Google Calendar notifications trigger "30 minutes before the event." But it doesn't consider travel time. If it takes an hour to get from home to Shinjuku, a notification at 1:30 PM is too late. I want to be told "time to go" at 12:30 PM.

Furthermore, the calculation changes if I'm already out. If I have another errand in Omiya in the morning and then head to Shinjuku, the travel time is shorter.

What Claude is doing

Every hour (from 6 AM to 10 PM), a prompt like this is sent to Claude via CRON:

Check the calendar, and if a departure notification is needed for any appointment with a location, register it.

Claude receives this instruction and makes its own judgment:

  1. Look at the calendar — Get upcoming appointments. Find appointments with a set location.
  2. Estimate current location — If there's an ongoing calendar event, assume I'm there. Otherwise, assume home.
  3. Calculate travel time — Use the Google Maps API to calculate travel time from current location to destination. If within 2km, assume walking; otherwise, train. Since the Transit API isn't available in Japan, I approximate using car travel time + 15 minutes. It's crude but surprisingly practical.
  4. Calculate departure time backward — Appointment start time - travel time = departure time.
  5. Register notification job — Push a one-shot job to the scheduler for 30 minutes before departure.

Then, 30 minutes before departure, the job fires, Claude wakes up, retrieves the weather and train info, and constructs the notification.

🚨 Time to leave soon!
📅 Meeting (Starts at 14:00)
📍 Destination: Shinjuku
🚃 Train (Estimated): ~55 min → Leave at 12:35

☁️ Today (Mon) Partly Cloudy
 🌡️ 22.3℃ / 14.1℃ ☔ 10%

🟢 Currently, there are no reported issues with train lines!

Enter fullscreen mode Exit fullscreen mode

Where is the logic?

This is what I want to convey the most.

This entire decision logic is consolidated into an MCP tool called departure-check.js. But Claude made this tool too. When I said "I want a departure notification," the necessary tools (travel time, location estimation) didn't exist yet, so it created those first, and finally created departure-check.js to combine them.

And what CRON is hitting is still just a prompt: "Check the calendar, and if a departure notification is needed, register it." With this one sentence, Claude utilizes its tools to make a judgment.

Individual parts are simple. A tool to get the weather, a tool to view the calendar, a tool to calculate travel time, a tool to get train information. But when and how to combine them is up to Claude. I didn't line up 'if' statements in code. The AI is observing the situation and making decisions.


A Self-Expanding Environment

To summarize everything so far:

  • MCP Tool = Limbs. Individual capabilities (weather, calendar, travel time, email...)
  • Claude = Brain. Uses tools to combine and judge.
  • CRON = Alarm clock. Wakes Claude up periodically. Hits it with a prompt.
  • Discord = Interface. Both requests and notifications happen here.

And the biggest feature is that if Claude lacks limbs, it creates them on the spot.

If you send "I want this feature" to Discord, Claude writes the tool code and adds it to tools/. The MCP server automatically detects and registers it. It becomes usable from the next moment.

Conversely, all I did was build the framework. The bridge between Discord and CLI, the MCP auto-scan, and the CRON scheduler.


Conclusion

Now, it tells me the weather and schedule at 7 AM, notifies me before going out with travel time calculations and train information, and manages my email. Of course, there have been times when I had to tweak the behavior of the tools, but basically, they grew by me saying "I want this" from Discord.

This might be obvious for ideas from an AI beginner, but I'm releasing it on GitHub.

OpenCClaw — A bot system that operates Claude Code CLI via Discord.