Kick off your book project in 3 hours! Live workshop on Zoom. You’ll leave with a real book project, progress on your first chapter, and a clear plan to keep going. Saturday, May 2, 2026. Learn more…

Leanpub Header

Skip to main content

Construye tu Propio Agente de Programación (Spanish Edition)

Guía Sin-Magia para Agentes de IA en Python Puro

Olvídate de los frameworks de caja negra. Construye un agente de programación de IA de nivel profesional desde cero en Python puro — en la nube o local, probado con pytest, todo en un solo archivo.

There is a new edition of this book available:

This book is a translation into Spanish of Build Your Own Coding Agent which was originally written in English

Interested in this book? Show your support by saying what you'd like to pay for it!

$
PDF
EPUB
WEB
About

About

About the Book

Eres un ingeniero de software escéptico del hype de la IA.

Has visto las demos. Has probado los frameworks. Has visto tu aplicación de LangChain alucinar hasta el desastre. Y pensaste: "Tiene que haber una forma mejor."

La hay.

Este libro es una rebelión contra la "magia." Te enseña a construir un agente de programación de IA de nivel profesional desde cero con Python puro. Sin LangChain. Sin Pydantic. Sin bases de datos vectoriales. Solo código que puedes depurar con print().

Al final, habrás construido Nanocode, un agente de programación en terminal que:

  • Lee, escribe y edita archivos quirúrgicamente en tu código fuente
  • Ejecuta comandos de shell y se autocorrige a partir de errores
  • Mapea y busca código con Python puro
  • Recuerda contexto entre sesiones mediante un bloc de notas persistente
  • Pide permiso antes de operaciones peligrosas
  • Busca información actualizada en la web

Aprenderás que un agente es solo cuatro cosas:

  1. El Cerebro — una llamada a una API sin estado (Claude, DeepSeek u Ollama)
  2. Las Herramientas — funciones de Python (Read, Write, Edit, Run, Search)
  3. La Memoria — un archivo Markdown automodificable inyectado como prompt del sistema
  4. El Bucle — un while True que lo une todo

En el camino, lo probarás todo. Construirás un FakeBrain, un doble de prueba que te permite ejecutar suites completas de `pytest` al instante, verificando lógica compleja del agente sin gastar créditos de API. Podrás alternar entre modelos en la nube y locales con un solo comando, ejecutando el cerebro en tu propia laptop gratis con Ollama.

En el último capítulo, usarás tu agente para construir un juego de Snake completo en Pygame sin escribir una sola línea de código tú mismo. Tú dictas el plan; el agente escribe, ejecuta, depura y corrige el código hasta que el juego sea jugable.

Si sabes leer Python y quieres entender qué está pasando realmente dentro de los agentes de IA, este libro es para ti.

This book is a translation into Spanish of Build Your Own Coding Agent which was originally written in English

Author

About the Authors

J. Owen

J. Owen ha dedicado más de una década a construir herramientas para desarrolladores, utilidades CLI y plataformas backend utilizadas por millones de ingenieros a diario. Escribió este libro para desmitificar los agentes de IA para profesionales en activo, aportando ingeniería de sistemas pragmática al mundo de los LLMs. Si no puedes depurarlo con print(), no pertenece a producción.

TranslateAI

Leanpub now has a TranslateAI service which uses AI to translate their book from English into up to 31 languages, or from one of those 31 languages into English. We also have a GlobalAuthor bundle which uses TranslateAI to translate English-language books into either 8 or 31 languages.

Leanpub exists to serve our authors. We want to help you reach as many readers as possible, in their preferred language. So, just as Leanpub automates the process of publishing a PDF and EPUB ebook, we've now automated the process of translating those books!

Translations

Translations

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $15 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub