Skip to content

Commit fe22895

Browse files
committed
#7733 more content, fine-tuning
1 parent 0640a02 commit fe22895

1 file changed

Lines changed: 45 additions & 11 deletions

File tree

learn/blog/context-engineering-revolution.md

Lines changed: 45 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# 388 Tickets in 6 Weeks: Context Engineering Done Right
22

3-
*From shell scripts to a multi-MCP-server JavaScript architecture, this article covers the journey with concepts,
4-
code deep-dives, and examples.*
3+
*From fragile shell scripts to an AI-native, multi-MCP-server JavaScript architecture powered by the official MCP SDK.*
54

65
<img width="800px" src="https://raw.githubusercontent.com/neomjs/pages/master/resources_pub/website/blog/ContextEngineering.jpg" alt="Cover Image" class="blog-image">
76

@@ -19,15 +18,32 @@ we are taking a giant leap forward.
1918

2019
- **388 resolved tickets**
2120
- **52 pull requests** from 20+ community contributors
22-
- **Zero npm security warnings** (down from 13, including 7 high-severity)
21+
- **Zero npm security warnings** (down from 19, including 13 high-severity, by removing the legacy `siesta` and `jsdoc-x` dependencies)
2322
- **`jsdoc-x` rewrite: 5.2s builds** (81% faster than the previous 28s)
2423
- **30+ testing files** migrated to enable agent self-verification
2524

25+
> **A Case Study in Speed: The `jsdoc-x` Rewrite**
26+
>
27+
> The 81% reduction in documentation build time wasn't just a minor tweak. It was a complete rewrite of our `jsdoc-x`
28+
> pipeline, executed in a fraction of the time it would have taken a human developer alone. This project was a masterclass
29+
> in human-AI collaboration, with Gemini 2.5 Pro and Claude Sonnet 4.5 acting as pair programmers.
30+
>
31+
> Under human direction, the agents analyzed the old system and proposed a new architecture. A key insight from the human
32+
> developer was to leverage a multi-worker design, a core tenet of the Neo.mjs framework itself
33+
> (**[Off the Main Thread](https://github.com/neomjs/neo/blob/dev/learn/benefits/OffTheMainThread.md)**).
34+
> By parallelizing the heavy lifting of parsing and transforming JSDoc comments across multiple CPU cores, the agents were
35+
> able to implement a solution that dramatically slashed build times.
36+
>
37+
> The result is a testament to how a human-AI partnership can tackle and optimize critical infrastructure, with the human
38+
> providing architectural vision and the agents handling the complex implementation. You can explore the full source code
39+
> of this collaboration **[here](https://github.com/neomjs/neo/tree/dev/buildScripts/docs/jsdoc-x)**.
40+
2641
For a core team that's primarily one person, this velocity should be impossible.
2742

28-
**It's not.** And it's reproducible.
43+
**It's not.** And it's reproducible. This entire AI tooling infrastructure was co-created in just a few weeks by a human developer working with AI agents—primarily Gemini 2.5 Pro and Claude Sonnet 4.5.
44+
45+
This release is a case study in **Context Engineering**, an emerging discipline focused on building systems that give AI agents the precise context they need to perform complex tasks. While many companies are exploring this hot-button topic, our approach goes beyond theory. We've built a robust, multi-MCP-server architecture that makes Context Engineering a practical reality for any developer. This is what makes our agents genuinely productive.
2946

30-
This release proves that the right infrastructure—what we call **Context Engineering**—can make AI agents genuinely productive.
3147
Here's what we built, how it works, and how you can replicate this in your own projects.
3248

3349
## The Three Dimensions of Context
@@ -128,8 +144,11 @@ By adopting the official MCP SDK for all three of our servers, we gain several k
128144

129145
## The Knowledge Base Server: OpenAPI-Driven Self-Documentation
130146

131-
The Knowledge Base server is where we've pushed the boundaries of what's possible with MCP. Rather than hardcoding tool
132-
definitions in JavaScript, we've built a system that's **entirely driven by OpenAPI 3 specifications**.
147+
The Knowledge Base server provides the AI with a deep, semantic understanding of the project's code, and it solves a critical, often-overlooked problem: **software versioning**. An agent can switch to a different version of the repository (e.g., `git checkout v10.9.0`), instruct the server to clear and rebuild its database, and within minutes have a knowledge base that is perfectly scoped to that specific snapshot in time. This gives the agent the exact context for the code, tickets, and guides relevant to that version—a challenge that remains unsolved in most development environments.
148+
149+
Powered by **ChromaDB**, the server allows agents to use semantic search to query this version-specific context. An agent can ask, "How does VDOM diffing work?" and instantly get the right source files, architectural guides, and historical tickets for the currently loaded version, without any contamination from others.
150+
151+
To build this, we pushed the boundaries of MCP by creating a system that's **entirely driven by OpenAPI 3 specifications**.
133152

134153
### The OpenAPI Innovation
135154

@@ -1498,9 +1517,8 @@ that should be impossible for a one-person core team.
14981517
14991518
## The Neo.mjs Backbone: Powering Our Servers
15001519
1501-
Like all three MCP servers, the Memory Core is built using the **official MCP SDK** for protocol compliance,
1502-
but its internal architecture is pure **Neo.mjs**. Every service—`MemoryService`, `SessionService`, `SummaryService`,
1503-
`HealthService`—is a Neo.mjs singleton that extends `Neo.core.Base`.
1520+
All three MCP servers are built using the **official MCP SDK** for protocol compliance,
1521+
but their internal architecture is pure **Neo.mjs**. This isn't just a case of "dogfooding"—using our own framework for the backend provided critical advantages in building a robust, asynchronous, and maintainable server architecture. For example, every service inside the servers—like `QueryService` in the Knowledge Base or `SessionService` in the Memory Core—is a Neo.mjs singleton that extends `Neo.core.Base`.
15041522
15051523
This demonstrates a key design principle: **Neo.mjs isn't just for browsers**. The same class system that powers complex
15061524
frontend applications also provides robust infrastructure for backend services.
@@ -1811,7 +1829,13 @@ This monumental release would not have been possible without the incredible ener
18111829
especially during **Hacktoberfest 2025**. We received over 52 pull requests from more than 20 contributors,
18121830
a new record for the project.
18131831
1814-
Our heartfelt thanks go out to:
1832+
The event was also a crucial turning point. For years, the Neo.mjs project has had a "bus factor" of one: what happens if its creator, Tobi, stops working on it? Before the new AI-native tooling, the steep learning curve meant that very few external developers could make significant contributions.
1833+
1834+
Hacktoberfest 2025 shattered that limitation. For the first time, we saw a wave of meaningful contributions from developers who were new to the framework. By pairing up with AI agents using the new MCP servers, contributors could quickly get up to speed, understand complex parts of the codebase, and submit high-quality pull requests.
1835+
1836+
This was the breakthrough. It proved that context engineering isn't just a theoretical concept—it's a practical solution to the "bus factor" problem. Developers no longer need to spend months learning the framework's intricacies on their own. With an AI partner that has deep contextual knowledge, they can start making an impact in days or even hours.
1837+
1838+
Our heartfelt thanks go out to everyone who participated, not just for their code, but for helping us prove this vision:
18151839
Aki-07, Ayush Kumar, Chisaneme Aloni, Emmanuel Ferdman, Ewelina Bierć, KURO-1125, LemonDrop847, Mahita07, MannXo,
18161840
Mariam Saeed, Nallana Hari Krishna, Nitin Mishra, PrakhyaDas, Ritik Mehta, Sanjeev Kumar, Sarthak Jain, ad1tyayadav,
18171841
cb-nabeel, kart-u, nikeshadhikari9, srikanth-s2003.
@@ -1820,6 +1844,15 @@ cb-nabeel, kart-u, nikeshadhikari9, srikanth-s2003.
18201844
18211845
## What's Next
18221846
1847+
The infrastructure we've built is a powerful foundation, but it's just the beginning.
1848+
1849+
### Future Enhancements
1850+
1851+
If there is community interest, we are considering several major enhancements:
1852+
1853+
- **Pull Request Synchronization:** While the GitHub Workflow server can already review PRs, the next logical step is to sync their conversations and diffs to local markdown files, just like issues. This would make PR history fully queryable and part of the permanent, offline knowledge base.
1854+
- **AI-Native Workspaces:** The ultimate goal is to bring this level of AI support to every Neo.mjs developer. We plan to integrate the MCP server setup directly into the `npx neo-app` command, allowing any generated workspace to become an AI-native environment out of the box.
1855+
18231856
### Standalone Server Releases?
18241857
18251858
The **Memory Core** and **GitHub Workflow** servers are framework-agnostic. They work with any software project, not just Neo.mjs.
@@ -1839,6 +1872,7 @@ Ready to explore the AI-native workflow?
18391872
- [Working with Agents](https://github.com/neomjs/neo/blob/dev/.github/WORKING_WITH_AGENTS.md) - General guidance
18401873
- [AI Quick Start](https://github.com/neomjs/neo/blob/dev/.github/AI_QUICK_START.md) - First session checklist
18411874
- [Codebase Overview](https://github.com/neomjs/neo/blob/dev/learn/guides/fundamentals/CodebaseOverview.md) - What agents read at startup
1875+
- [MCP Server Source Code](https://github.com/neomjs/neo/tree/dev/ai/mcp/server) - The full source code for all three MCP servers.
18421876
- [Agent Protocol (AGENTS.md)](https://github.com/neomjs/neo/blob/dev/AGENTS.md) - The behavioral rules (inside the context window of each session)
18431877
- [Agent Startup (AGENTS_STARTUP.md)](https://github.com/neomjs/neo/blob/dev/AGENTS_STARTUP.md) - Session initialization
18441878

0 commit comments

Comments
 (0)