Skip to main content

A scaffolding tool for Generative AI projects

Project description

๐Ÿง  Mindframe

PyPI version Python versions License: MIT

"Structure first. Intelligence second."

Mindframe is a powerful Python CLI-based project scaffolding tool designed specifically for Generative AI and Agentic AI developers. It enforces professional software architecture patterns from Day 1, ensuring your AI systems are scalable, maintainable, and swap-ready.


๐Ÿš€ Why Mindframe?

Most GenAI projects start as "spaghetti code." Mindframe solves this by providing a standardized, industrial-grade project structure that separates concerns across 5 critical layers.

โœจ Key Features

  • ๐Ÿ—๏ธ Industrial Scaffolding: Initialize a full, professional project structure in seconds.
  • โœจ Interactive CLI: Use mindframe init for a guided setup experience with questionary.
  • ๐Ÿš€ Instant Playground: Every project comes with a built-in Streamlit UI (playground.py) to test your AI logic immediately.
  • ๐Ÿงฑ Layered Architecture: Dedicated boundaries for Domain Logic, LLM Abstractions, Knowledge/RAG, Orchestration, and Evaluation.
  • ๐Ÿค– Agentic Native: Seamlessly transition from simple RAG to autonomous agent systems with built-in memory and tool patterns.
  • ๐Ÿ”Œ Model Agnostic: Effortlessly switch between OpenAI, Anthropic, or Local models (Ollama/Llama) with production-ready base classes.
  • ๐Ÿ“ˆ Scalability First: Enforces best practices that make your AI systems maintainable and ready for production.

๐Ÿ“ฆ Installation

Mindframe is available on PyPI. You can install it globally via pip:

pip install mindframe-ai

๐Ÿ› ๏ธ Local Development

To contribute to Mindframe or use the latest developmental version:

git clone https://github.com/Ahmedmalik414/mindframe.git
cd mindframe
pip install -e .

๐Ÿ›  Usage

1. Standard GenAI (RAG) Project

Perfect for knowledge-based chatbots and standard LLM applications.

mindframe init my_project

2. Agentic AI Project

Adds specialized layers for planning, tool execution, and memory management.

mindframe init my_agent --type agentic

๐Ÿ“‚ The "Authoritative" Structure

When you run mindframe init, it generates a clean, scalable skeleton designed for high-performance AI applications:

my_project/
โ”œโ”€โ”€ config/             # Configuration for LLMs, prompts, and system settings
โ”œโ”€โ”€ data/               # Vector database storage, local cache, and embeddings
โ”œโ”€โ”€ src/                
โ”‚   โ”œโ”€โ”€ core/           # LLM Base classes & Provider abstractions
โ”‚   โ”œโ”€โ”€ prompts/        # Version-controlled prompt templates & chains
โ”‚   โ”œโ”€โ”€ rag/            # Retrieval-Augmented Generation & Search logic
โ”‚   โ”œโ”€โ”€ processing/     # Data ingestion, chunking, and normalization
โ”‚   โ””โ”€โ”€ inference/      # Model execution and throughput management
โ”œโ”€โ”€ tests/              # Unit, integration, and evaluation tests
โ”œโ”€โ”€ scripts/            # Deployment and data ingestion scripts
โ”œโ”€โ”€ Dockerfile          # Production-ready containerization
โ””โ”€โ”€ requirements.txt    # Managed project dependencies

Note: The agentic type adds the src/orchestration/ layer containing agents/ and memory/ modules for autonomous logic.


๐Ÿค Contributing

Mindframe is built for the community. If you have ideas for better AI architectural patterns, feel free to open a PR!


Built by Ahmed Malik
Architecture is the frame that supports the mind.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mindframe_ai-0.2.1.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mindframe_ai-0.2.1-py3-none-any.whl (18.4 kB view details)

Uploaded Python 3

File details

Details for the file mindframe_ai-0.2.1.tar.gz.

File metadata

  • Download URL: mindframe_ai-0.2.1.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for mindframe_ai-0.2.1.tar.gz
Algorithm Hash digest
SHA256 20456d4a199f68e7ce70d40111a4adce59fd3c3ac03276cd22cc6d1d34c9ab7f
MD5 d3beb17553dea87e988f355e275ffa64
BLAKE2b-256 af21c0e4f15011c90070a188b7493d18d91d0cbd2c7aadf865e04d2475305354

See more details on using hashes here.

File details

Details for the file mindframe_ai-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: mindframe_ai-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 18.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for mindframe_ai-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 350bcd4b5664c172707f61188d5395e0e70c651dfb88c77b7716b945b5644bf8
MD5 6db0f2ec370d0e4b0f587fd19b3f5db4
BLAKE2b-256 2d47fc7e5f1cafafa4852a31410f23bcb149b2a3359eb720f67fae2db396db79

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page