explaingit

0c33/agentic-ai

14PythonAudience · developerComplexity · 4/5ActiveSetup · hard

TLDR

Developer-alpha Python program that turns a plain-English idea into a standalone Python agent through six phases, including clarification, prompt sandboxing, code generation, sandboxed execution, and human approval.

Mindmap

mindmap
  root((Agentic-Ai))
    Inputs
      User idea
      Local LLM endpoint
      Test input
    Outputs
      Standalone Python agent
      Prompt design
      Approval log
    Use Cases
      Generate small agents
      Validate prompts
      Test code in sandbox
    Tech Stack
      Python
      LangChain
      Local LLM
      Subprocess

Things people build with this

USE CASE 1

Describe an agent idea in plain English and let the program ask follow-up questions until the scope is locked.

USE CASE 2

Validate a generated prompt by running it against the local model in a sandbox before any real code is written.

USE CASE 3

Generate a standalone Python agent file, run it in a dedicated virtual environment, and capture the output.

USE CASE 4

Approve or reject the generated code through a human-in-the-loop step before it is saved to disk.

Tech stack

PythonLangChainvenvOpenAI-compatible API

Getting it running

Difficulty · hard Time to first run · 1day+

Requires a local OpenAI-compatible LLM running on localhost port 8080 plus a separate Python virtual environment for the generated agents.

In plain English

Agentic AI Architect is a Python program that builds other small Python programs called agents. The user describes an idea in plain words, and the system runs through a series of loops to turn that idea into a working, standalone Python file. The README is clear that this is developer alpha, not consumer software, and requires manual setup. The README sets out a core philosophy and a system flow chart. The headline idea is that the program asks before it builds, tests before it trusts, and refines until a human approves. There are six numbered phases. Phase 1 sets up a connection to a local large language model running on localhost port 8080 using an OpenAI-compatible interface, through the LangChain library. Phase 2 is a clarification loop where the model keeps asking the user questions and storing the full chat history until it reports that the user's idea is fully understood. Phase 3 is a design loop. The model proposes an agent name, scope, prompt, and arguments, then a function called Sandbox runs the proposed prompt against the model itself to see if it gives a sensible answer. This is described as prompt validation rather than running real code. The loop keeps a history of prompts that were tried and what came back, plus a try-counter that stops it from finishing on the first attempt. A human must approve the design before the system moves on. Phase 4 generates actual Python code. It feeds the model a template, a copy of the main program's own source code as a reference, and the chosen prompt and arguments. Phase 5 then runs that generated code for real, in a separate Python subprocess from a dedicated virtual environment, with the test input piped to standard input and the output captured. A second model call rates the result on a numbered schema and decides whether to remake the code or to ask a human for final approval. Phase 6 writes the approved code to a file named after the agent. The README closes with an example of a generated class called SuperIdeaToAtomicTasks, a table of components and their purposes, and engineering notes that flag the two distinct testing stages, the self-referential code generation, the full state tracking across loops, and the use of a try-counter to prevent the design loop from exiting too early.

Copy-paste prompts

Prompt 1
Set up Agentic-Ai with a local OpenAI-compatible model on localhost port 8080 and walk me through the first clarification loop.
Prompt 2
Use Agentic-Ai to generate a Python agent that splits a high-level user idea into atomic tasks, similar to the SuperIdeaToAtomicTasks example.
Prompt 3
Help me wire LangChain to a llama.cpp server on port 8080 so Agentic-Ai can drive it as the design model.
Prompt 4
Walk me through phase 5 of Agentic-Ai and explain how the generated code is executed in a separate venv with stdin piped in.
Prompt 5
Add a stricter human approval gate to phase 6 of Agentic-Ai so generated code is reviewed line by line before being saved.
Open on GitHub → Explain another repo

Generated 2026-05-22 · Model: sonnet-4-6 · Verify against the repo before relying on details.