ٹیکنیکل گائیڈ

وائجر مائن کرافٹ ایجنٹ اور اسکل لائبریری

Voyager ایک LLM سے چلنے والا Minecraft ایجنٹ ہے جو دوبارہ قابل استعمال مہارت کی لائبریری سیکھتا ہے، جو اسے ہر بار شروع سے شروع کرنے کے بجائے زندگی بھر سیکھنے کے ذریعے نئے کاموں کو حل کرنے دیتا ہے۔

اس گائیڈ کو سنیں۔اے آئی نے بیان کیا۔ · ~7 min

اس صفحہ پر8 min read
  1. اہم نکات
  2. گہرا غوطہ
  3. Tracing how Voyager learns to craft an iron pickaxe
  4. حقیقی دنیا کا نفاذ
  5. وائجر مائن کرافٹ ایجنٹ اور اسکل لائبریری کا مستقبل
  6. اسے عملی جامہ پہنانا
  7. ذرائع اور مزید پڑھنا
  8. دریافت کرتے رہیں
  9. اکثر پوچھے گئے سوالات

اہم نکات

  1. Voyager is a 2023 Minecraft agent that uses GPT-4 to write, test and store reusable JavaScript skills without fine-tuning any model.
  2. Its three parts are an automatic curriculum, an iterative prompting loop with self-verification, and an embedding-indexed skill library.
  3. Voyager found 3.3 times more unique items and unlocked tech-tree tiers up to 15.3 times faster than ReAct, Reflexion and AutoGPT baselines.
  4. Removing self-verification cut discovered items by 73 percent, and a random curriculum cut them by 93 percent, in the paper's ablations.
  5. Storing skills as code outside the model lets an agent add abilities without overwriting old ones.

گہرا غوطہ

A skill-library agent is an AI agent that saves successful behaviors as reusable units, usually small programs, and retrieves them later instead of solving every problem from scratch. Voyager is the best-known example. It was introduced in the paper 'Voyager: An Open-Ended Embodied Agent with Large Language Models' by Guanzhi Wang, Yuqi Xie, Yunfan Jiang, Ajay Mandlekar, Chaowei Xiao, Yuke Zhu, Linxi 'Jim' Fan and Anima Anandkumar, posted to arXiv on 25 May 2023, with authors from NVIDIA, Caltech, UT Austin, Stanford and other universities. The authors describe it as the first large-language-model-powered lifelong learning agent in Minecraft, meaning it keeps acquiring skills over a long session without a human setting goals.

Minecraft suits this research because it is open-ended. A player starts with nothing, gathers wood, crafts tools, mines stone and iron, and eventually reaches diamond tools, a sequence called the tech tree. There is no single score to maximize. Voyager does not see pixels or press keys. It controls the game through Mineflayer, a JavaScript library for Minecraft bots, on top of the MineDojo research framework. Its actions are programs: GPT-4 writes JavaScript functions that call Mineflayer commands such as mining a block or crafting an item.

Voyager has three components that run in a loop. The first is an automatic curriculum. GPT-4 receives the agent's inventory, equipment, nearby blocks, biome, time of day and lists of completed and failed tasks, and proposes the next task under the overall goal of discovering as many diverse things as possible. If the agent is in a desert, it might learn to harvest sand and cactus before iron. The second is the iterative prompting mechanism. GPT-4 writes a program for the task, the program runs, and three kinds of feedback come back: in-game messages, for example a note that a stone shovel cannot be crafted until two more sticks are available, JavaScript error traces, and a verdict from a second GPT-4 instance acting as a critic that checks whether the task succeeded. The code is revised with that feedback, for up to four rounds, before the curriculum moves on.

The third component is the skill library. When the critic confirms success, the program is stored. Its key is an embedding, a numeric vector capturing meaning, of a short description of the program written by GPT-3.5 and embedded with OpenAI's text-embedding-ada-002. When a new task arrives, Voyager embeds the task plus a GPT-3.5 suggestion for solving it, and retrieves the five most similar stored skills to place in GPT-4's prompt. New programs can call old ones, so a function like crafting an iron pickaxe can reuse smelting and stick-crafting skills. Because skills are saved code rather than changed model weights, learning a new skill cannot overwrite an old one, which the authors present as a way around catastrophic forgetting.

The paper's results are large relative to its baselines, which were prompting agents adapted to the same setup: ReAct, which interleaves reasoning and actions; Reflexion, which adds self-reflection; and AutoGPT, a popular autonomous task loop. Voyager obtained 3.3 times more unique items, traveled 2.3 times longer distances, and unlocked the wooden, stone and iron tool tiers 15.3, 8.5 and 6.4 times faster in prompting iterations. ReAct and Reflexion unlocked no tier within 160 iterations. In a new world with an empty inventory, Voyager solved all four unseen tasks (diamond pickaxe, golden sword, lava bucket, compass) in three of three trials each, while the baselines solved none within 50 iterations. Ablations showed that replacing the automatic curriculum with a random one cut discovered items by 93 percent, removing self-verification cut them by 73 percent, and using GPT-3.5 instead of GPT-4 for code produced 5.7 times fewer unique items.

The comparison with other agent designs clarifies what is new. Reinforcement learning agents for Minecraft learn low-level control from rewards or videos and adjust neural network weights; Voyager uses a frozen model through an API and learns only by accumulating text and code. Pure prompting agents such as ReAct reason and act step by step but keep no durable library, so each episode starts fresh. Later Minecraft agents took other routes: JARVIS-1, posted in November 2023, uses a multimodal memory of past experience with pixel-level perception and reports completing over 200 tasks. The common thread is that memory outside the model weights lets an agent improve with experience.

The limitations are spelled out in the paper. GPT-4 was 15 times more expensive than GPT-3.5 at the time, yet weaker models could not write good enough code. The agent sometimes gets stuck, and the critic occasionally misjudges success, for example failing to treat spider string as proof of beating a spider. The curriculum can hallucinate impossible goals such as a 'copper sword', and the code writer sometimes uses invalid game logic, such as burning cobblestone as fuel, or calls functions that do not exist. Voyager also depends on Mineflayer's high-level text interface, so it sidesteps the hard perception and motor-control problems that physical robots face.

Running Voyager yourself requires Python 3.9 or later, Node.js 16.13 or later, a Minecraft Java installation with specific Fabric mods (tested on version 1.19), and an OpenAI API key with GPT-4 access, according to the GitHub repository. Saved skill libraries can be reloaded to run new tasks without relearning.

03کام کی مثال

Tracing how Voyager learns to craft an iron pickaxe

  1. Start with an inventory holding a stone pickaxe, a furnace, sticks and four raw iron, as in an example from the paper.

  2. The curriculum reads this state and proposes 'Smelt 4 raw iron' as the next task, then later 'Craft 1 iron pickaxe'.

  3. For the pickaxe, Voyager asks GPT-3.5 how to craft one, embeds the task and answer, and retrieves the top five skills such as smelting iron ingots and crafting sticks.

  4. GPT-4 writes a craftIronPickaxe function that calls those skills and Mineflayer's crafting primitive.

  5. The program runs; if the game reports missing sticks or the code throws an error, that message goes back into the prompt for a revised program.

  6. A separate GPT-4 critic checks the new inventory, confirms an iron pickaxe is present and returns success.

  7. The function is stored under an embedding of its description, ready to be called by later skills such as mining diamonds.

جو یہ دکھاتا ہے۔

The library now contains a verified, readable craftIronPickaxe program that composes earlier skills. A learner can check the trace by confirming each step's input and output: the state fed to the curriculum, the five retrieved skills, the error feedback, and the critic's success flag.

حقیقی دنیا کا نفاذ

In the original experiments, Voyager discovered 63 unique Minecraft items within 160 prompting iterations, 3.3 times as many as the ReAct, Reflexion and AutoGPT baselines it was compared against.

Voyager was the only tested method to reach diamond tools on the Minecraft tech tree, succeeding in one of three runs at about 102 prompting iterations.

Researchers reuse the open-source MineDojo/Voyager code, MIT licensed, to load a saved skill library into a fresh world and solve a new task such as crafting a compass.

Plugging Voyager's learned skill library into AutoGPT let AutoGPT solve unseen tasks such as a golden sword and a compass that it failed without the library.

Anthropic's Agent Skills, announced in October 2025, package instructions and scripts as folders that Claude loads on demand, a human-authored relative of Voyager's code-based skill library.

وائجر مائن کرافٹ ایجنٹ اور اسکل لائبریری کا مستقبل

The Voyager paper itself names cost, stuck runs, critic mistakes and hallucinated tasks or functions as open issues, and it frames its method as compatible with gradient-based controllers such as video-pretrained models, provided they expose a code interface. Work since then has extended the memory idea in different directions, for example JARVIS-1's multimodal memory in late 2023. Outside games, the skill-library pattern has moved into commercial agent tooling. Anthropic's October 2025 post on Agent Skills describes folders of instructions and scripts that an agent loads only when relevant, and says the company hopes to let agents create, edit and evaluate such skills themselves, which would close the loop Voyager demonstrated. Open questions include how to verify that a self-written skill is safe before reuse, how to prune or repair a library as it grows, and how well retrieval holds up with thousands of skills. The same post warns that malicious or untrusted skills could cause data exfiltration, so auditing reusable skills is an active practical concern.

اسے عملی جامہ پہنانا

یہ کیوں اہمیت رکھتا ہے۔

  • لاگت اور بجٹ. فن تعمیر کے فیصلے سالوں تک کارکردگی اور آپریٹنگ لاگت کو آگے بڑھاتے ہیں۔
  • واضح فیصلے. تکنیکی تعلیم ٹیموں کو صحیح اسٹیک منتخب کرنے میں مدد کرتی ہے، نہ صرف جدید ترین۔
  • کوالٹی کنٹرول. انجینئرنگ کے بہتر انتخاب پیداوار میں قابل اعتماد واقعات کو کم کرتے ہیں۔

پر نگاہ رکھیں

  • ایک بینچ مارک کو بہتر بنانا نظام کی وسیع تر کمزوریوں کو چھپا سکتا ہے۔
  • بنیادی ڈھانچے اور دیکھ بھال کے اخراجات کو اکثر کم سمجھا جاتا ہے۔
  • سیکورٹی اور مشاہداتی فرق بڑھ سکتا ہے کیونکہ نظام زیادہ پیچیدہ ہو جاتا ہے۔

اگلے اقدامات

  1. نفاذ سے پہلے تاخیر، معیار اور لاگت کے اہداف کی وضاحت کریں۔
  2. حقیقت پسندانہ بوجھ اور ڈیٹا کی شرائط کے تحت بینچ مارک۔
  3. غلطیوں، بڑھے ہوئے، اور صارف کے اثرات کے لیے آلے کی نگرانی۔
  4. اسکیلنگ سے پہلے رول بیک اور واقعہ کے ردعمل کے راستے تیار کریں۔

ذرائع اور مزید پڑھنا

  1. arXivVoyager: An Open-Ended Embodied Agent with Large Language Models
  2. MineDojoVoyager project page
  3. GitHubMineDojo/Voyager
  4. arXiv (ICLR 2023)ReAct: Synergizing Reasoning and Acting in Language Models
  5. arXivJARVIS-1: Open-World Multi-task Agents with Memory-Augmented Multimodal Language Models
  6. AnthropicEquipping agents for the real world with Agent Skills

دریافت کرتے رہیں

مفت نیوز لیٹر

روزانہ AI بریفنگ حاصل کریں

ہر ہفتے کے دن صبح تین تصدیق شدہ AI کہانیاں، سادہ انگریزی میں لکھی گئیں۔ ہمیشہ کے لیے مفت، کوئی اشتہار نہیں۔

ہر ہفتے کے دن ایک ای میل۔ ایک کلک میں ان سبسکرائب کریں۔ ہم کبھی بھی آپ کا پتہ فروخت یا شیئر نہیں کرتے۔

اپنے آپ کو جانچیں۔

Take the Voyager Minecraft Agent and Skill Library quiz

ہر جواب پر فوری فیڈبیک، اور کورس پاس کرنے کے بعد قابلِ تصدیق ID کے ساتھ شیئر کرنے کے قابل سرٹیفکیٹ۔

کوئز شروع کریں۔

مفت AI تعلیم کی حمایت کریں۔ AI Understanding ایک 501(c)(3) غیر منافع بخش ادارہ ہے — کوئی اشتہار نہیں، کوئی پے وال نہیں، کبھی نہیں۔ عطیہ کریں۔

اکثر پوچھے گئے سوالات

What is Voyager Minecraft Agent and Skill Library?

Voyager ایک LLM سے چلنے والا Minecraft ایجنٹ ہے جو دوبارہ قابل استعمال مہارت کی لائبریری سیکھتا ہے، جو اسے ہر بار شروع سے شروع کرنے کے بجائے زندگی بھر سیکھنے کے ذریعے نئے کاموں کو حل کرنے دیتا ہے۔

وائجر وقت کے ساتھ اپنی صلاحیتوں کو کیسے بہتر بناتا ہے؟

وائجر بغیر کسی تدریجی اپ ڈیٹس کے سیکھتا ہے: یہ تصدیق شدہ مہارتوں کو کوڈ کے طور پر محفوظ کرتا ہے اور پرانی مہارتوں سے نئی مہارتیں بناتا ہے، اس لیے قابلیت سیاق و سباق میں شامل ہوتی ہے۔

وائجر کی مہارت کو کس شکل میں پیش کیا جاتا ہے؟

ہر مہارت ایک قابل عمل کوڈ کا ٹکڑا ہے جو مائن کرافٹ بوٹ کو ایکشن جاری کرتا ہے، جس سے مہارتوں کو چلانے کے قابل اور کمپوز ایبل بنتا ہے۔

Voyager کے خودکار نصاب کا کیا کردار ہے؟

خودکار نصاب ایجنٹ کی موجودہ حالت کے مطابق بڑھتے ہوئے چیلنجنگ کاموں کی تجویز کرتا ہے، جو کھلے عام ایکسپلوریشن کو آگے بڑھاتا ہے۔

جب کسی نئے کام کا سامنا کرنا پڑتا ہے تو Voyager متعلقہ مہارت کو کیسے حاصل کرتا ہے؟

مہارتوں کو ان کی فطری زبان کی تفصیل کے سرایت کے ذریعے ترتیب دیا جاتا ہے، لہذا نئے کاموں کے لیے تعمیراتی بلاکس کے طور پر معنوی طور پر متعلقہ مہارتوں کو بازیافت کیا جاتا ہے۔

جب تیار کردہ کوڈ ناکام ہوجاتا ہے تو وائجر کا تکراری پرامپٹنگ لوپ کیا کرتا ہے؟

Voyager اپنے کوڈ پر عمل درآمد کرتا ہے، عملدرآمد کی غلطیوں اور گیم اسٹیٹ فیڈ بیک کا مشاہدہ کرتا ہے، اور ماڈل کو کوڈ کو ٹھیک کرنے کا اشارہ کرتا ہے، جب تک کہ مہارت کام نہ کرے دہراتی ہے۔

سیکھتے رہیں

متعلقہ گائیڈز

اس موضوع کے لیے مزید گائیڈز چنے گئے ہیں۔

مفت AI سرٹیفکیٹ حاصل کریں۔ایک مختصر مفت کورس اور امتحان۔ کوئی قیمت نہیں، کوئی کارڈ نہیں۔ تقریباً 2.5 گھنٹے۔مفت شروع کریں →