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

推荐订阅源

Apple Machine Learning Research
Apple Machine Learning Research
M
MIT News - Artificial intelligence
罗磊的独立博客
博客园 - 【当耐特】
A
About on SuperTechFans
Last Week in AI
Last Week in AI
雷峰网
雷峰网
IT之家
IT之家
aimingoo的专栏
aimingoo的专栏
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园_首页
博客园 - 叶小钗
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - Franky
J
Java Code Geeks
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
D
Docker
Engineering at Meta
Engineering at Meta
B
Blog RSS Feed
The Cloudflare Blog
大猫的无限游戏
大猫的无限游戏
阮一峰的网络日志
阮一峰的网络日志
S
SegmentFault 最新的问题
Recent Announcements
Recent Announcements

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
AST blueprint generator for better AI understanding
Hrudul Krishna K V · 2026-06-22 · via DEV Community
Cover image for AST blueprint generator for better AI understanding

Hrudul Krishna K V

I Built Crespo: Turning Repositories into AI-Ready Codebase Blueprints

Over the last few months, I've been using AI coding assistants extensively for learning, debugging, and understanding unfamiliar codebases.

One problem kept showing up:

Before an AI can help effectively, it needs context about the project.

For small projects, this isn't a big issue. But for larger repositories, I often found myself spending multiple prompts explaining project structure, key modules, dependencies, and architecture.

So I started building Crespo.

What is Crespo?

Crespo is a Python CLI that analyzes a repository and generates a compact XML blueprint containing:

  • Project structure
  • Files and folders
  • Classes
  • Functions
  • Imports and dependencies
  • Optional AI-generated summaries

The goal is to provide AI tools with a high-level understanding of a codebase without requiring the entire repository to be pasted into the context window.

Installation

pip install crespo

Usage

crespo .

This generates a structured representation of the repository.

Example:

<file path="src/auth.py">
  <class name="AuthService">
    <function name="login"/>
    <function name="logout"/>
  </class>
</file>

Why Build This?

While experimenting with ChatGPT, Claude, Gemini, and other coding assistants, I noticed that much of the conversation was spent describing the repository itself.

I wanted a reusable blueprint that could act as a map of the project.

Instead of saying:

Here are 50 files. Please understand this codebase.

I wanted something closer to:

Here is the structure, architecture, and relationships. Now let's discuss implementation.

Technical Details

Crespo uses Tree-sitter to analyze source code and extract structural information from repositories.

The project currently supports generating repository maps and structured XML outputs that can be shared with AI assistants.

Lessons Learned

Building Crespo taught me a lot about:

  • Python packaging
  • PyPI publishing
  • Tree-sitter integration
  • CLI development
  • Open-source maintenance

As a student developer, one of the most rewarding experiences has been seeing people I don't know install and use something I built.

Feedback Welcome

I'm still actively improving Crespo and would love feedback from developers who work with AI-assisted coding workflows.

What information would you want included in an AI-ready codebase blueprint?

GitHub: https://github.com/hrudulmmn/crespo
PyPI: https://pypi.org/project/crespo