Everything as a Plugin: Reducing the Burden of AI News Feed Development While Keeping the Judgment
This article explores how a "everything is a plugin" architecture can ease the development of an AI-powered intelligence feed tool. Drawing on hands-on experience, it covers the costs of building everything from scratch, how plugin-based hosts simplify model access, storage, scheduling, and UI integration, and why scoring, deduplication, and feedback learning remain the real challenges. It also outlines the boundaries of this approach and common pitfalls such as duplicate scheduled jobs and plugin data retention.
In an age of information overload, filtering valuable technical intelligence and industry updates from a flood of content is a shared challenge for developers and business users alike. Traditional RSS readers and keyword subscriptions no longer meet the need. A useful AI intelligence feed tool requires, at minimum, intelligent filtering, semantic scoring, and dynamic ranking. The problem is that building such a system from scratch is far from easy. Drawing on the experience of developing an AI news feed tool, this article examines which burdens an “everything is a plugin” architecture can relieve—and which risks you still have to carry yourself.
1. The Cost of Full-Stack In-House Development
Many developers start by building everything themselves: writing their own crawlers, setting up databases, orchestrating LLM scoring, developing frontend pages, and driving the whole pipeline with scheduled jobs. The benefit is strong control—every component can be customized as needed.
The costs are equally clear, and they show up in three main areas.
- Upstream field changes propagate downstream: When a target website redesigns, the crawler may fail to extract a field. The cleaning script then throws errors, the LLM scoring module receives malformed input, and the frontend list may break.
- Scheduled jobs tend to run more than once: Under heavy system load, the OS’s built-in Cron or simple scripts may trigger late or trigger repeatedly. The same batch of news gets sent to the LLM for scoring multiple times, wasting token quota and leaving duplicate records in the database.
- Infrastructure requires ongoing maintenance: Database initialization, permission configuration, backup strategies, and cross-platform frontend adaptation all need someone to maintain them. A developer’s time is easily consumed by this work.
Full-stack in-house development suits scenarios with strict compliance, data residency, or customization requirements. If the team is small and requirements change quickly, you should evaluate maintenance costs and the difficulty of fault localization in advance.
2. How a Plugin Architecture Reduces the Burden
The core idea of “everything as a plugin” is that the host application provides foundational capabilities, while plugins implement only business logic. Plugins invoke host capabilities through a unified context object (Context). The examples below assume the host exposes the corresponding interfaces; actual interface names, SDK versions, and permission declarations should follow the documentation of the host you use.
2.1 Model Invocation: Credentials Managed Centrally by the Host
When integrating an LLM, developers typically handle API key storage and rotation, and adapt to SDK differences across providers. In a plugin-based host, model configuration can be managed centrally, and the plugin obtains a model instance through the context:
const llm = ctx.get('llm');const score = await llm.invoke(prompt);
A few things to note about this code. ctx.get('llm') depends on capabilities injected by the host; if the host does not expose them or the user has not configured a model, the call will fail. invoke is asynchronous, so the plugin must handle timeouts, rate limiting, and retries. Model name, output format parsing, and permission-failure branches must also be handled one by one in the plugin.
Centralized credential management lowers the barrier to integration and reduces the chance of credentials being hardcoded into plugin code. However, different models vary in context length, price, and stability, so the plugin still needs fallback strategies and cost controls.
2.2 Data Storage: Isolated Directories, but Guard Against Accidental Deletion
Many plugin hosts provide an isolated storage directory for each plugin, such as ~/.app_storages/ai-news-feed/. The plugin can read and write files or use a lightweight database there. This way, the plugin requires no changes to system-level configuration, keeping installation and usage simple.
Whether data is cleaned up on uninstall depends on host policy. Some hosts retain the data; others delete it entirely. In either case, the plugin should provide export and backup capabilities for important data and remind users before uninstalling. When migrating to a new device or host, you also need to confirm whether the data format is compatible.
2.3 Scheduled Jobs: The Host Triggers; the Plugin Ensures Idempotency
A feed usually needs periodic fetching and delivery. A plugin can register a scheduled job with the host:
ctx.get('schedule').addJob('0 8 * * *', async () => {// 1. Use task ID plus date as an idempotency key; return immediately if already executed today// 2. Acquire a lock to prevent concurrent execution// 3. Fetch news and write deduplicated data// 4. Call the LLM for scoring; retry with exponential backoff on failure, alert after exceeding the limit// 5. Deliver results to the current session});
The cron expression in the example is interpreted according to the host’s timezone, so confirm the timezone configuration before deployment.
The host can provide triggering, but whether a job runs more than once or deadlocks depends heavily on the host’s implementation and resource configuration. The plugin should use idempotency keys, distributed locks, or database transactions to guarantee unique results. Otherwise, even if the host triggers only once, network retries or manual reruns can cause duplicate writes.
2.4 UI Integration: Slots Vary, so Prepare Fallbacks
Plugin hosts generally offer UI slots, such as a toolbar area at the top of a session or below the input box. After the plugin declares its registration, buttons can be embedded into the host UI, letting developers write less styling and DOM code.
However, the slots exposed by different hosts are not consistent. Some hosts have no suitable location, and some versions change slot names. The plugin should prepare fallback options—for example, a command entry or message-based commands—so core features remain available even without a UI slot.
3. After the Infrastructure, Judgment Is What Matters
A plugin architecture reduces the workload of crawling, model invocation, and scheduling, but the application’s value does not appear automatically. If the system only does “fetch plus summarize,” the result is barely better than a regular RSS reader. The real difficulty lies in scoring, deduplication, and feedback.
| Dimension | Description | Data Source | Update Frequency |
|---|---|---|---|
| Source authority | Weights based on the historical accuracy of media outlets or authors | Manually maintained whitelist, historical correction records | Weekly |
| Timeliness | Exponential decay by publish time, e.g., a 24-hour half-life | Article publish time | Real-time |
| Interest match | Cosine similarity between article vectors and the user interest profile | Favorites, clicks, and tagging records | Daily |
| LLM scoring | Structured scoring of factual density and technical depth | JSON fields from model output | Per fetch |
Weights need to be tuned with real data. You can start with equal weights, then derive a better combination from manually labeled samples.
Deduplication and event aggregation matter just as much. A single event is often covered by dozens of outlets; pushing all of them means users see similar content repeatedly. You can use vector similarity or semantic hashing for clustering, keeping only the core facts and the most representative source per event. Clustering thresholds need sampling-based review. A threshold set too high misses duplicates; set too low, it merges unrelated articles.
Feedback learning is another hard problem. User clicks, ignores, and tags can serve as ranking signals, but these signals are biased. Users may only click clickbait headlines, or may fail to finish reading because they are short on time. Treating these behaviors directly as ground truth tends to skew rankings further over time. A more robust approach is to assign different weights to different behaviors and periodically calibrate against manually reviewed samples.
4. Applicability Boundaries and Common Issues
A plugin architecture suits tool-type applications for individual users or small teams, and scenarios where ideas need rapid validation. If data volume is large, compliance requirements are strict, or a multi-user permission system is needed, you should verify more carefully whether the host’s capabilities meet your requirements.
Common issues fall into three categories. First, whether data is retained after plugin uninstallation needs to be checked in the host’s documentation. Second, duplicate execution of scheduled jobs usually results from missing idempotency keys or locks. Third, when model invocation fails, you should degrade to rule-based filtering rather than stopping delivery altogether.
5. Conclusion
“Everything as a plugin” frees developers from maintaining some of the underlying plumbing, allowing more energy to go into business judgment. It lowers the barriers to model integration, storage isolation, and job triggering, but reliability, data security, and cost concerns remain.
For teams evaluating this approach, three things come first: confirm the capabilities and versions the host provides, design idempotency and fallback mechanisms for critical tasks, and validate scoring effectiveness with a small batch of manually labeled samples. Once this groundwork is done, investing in refining business rules and feedback mechanisms becomes much easier to justify in terms of return on effort.
