pip install agenthatch==1.0.15 Copy PIP instructions
Turn any SKILL.md into a standalone, runnable AI Agent.
SKILL.md promised a lot. Write a markdown file, tell your agent what to do, and it works. In practice, anyone who has used more than three skills across Claude Code, Codex CLI, or OpenClaw knows the friction:
The core issue isn't the format. It's that SKILL.md is prompt engineering, not software engineering. You're asking an LLM to interpret human prose at runtime, every time, with no compilation, no type checking, no contract.
agenthatch treats a SKILL.md as source code — not a prompt. It compiles it through a deterministic pipeline into a standalone Python agent that you can import, ship, and run anywhere.
SKILL.md → Parse → 6-Harness LLM Pipeline → Code Generation → Runnable Agent (input) (Phase 1) (Phase 2: AI inference) (Phase 3: Jinja2) (output) The result is a self-contained Python package with its own pyproject.toml, a CLI entry point, typed tool definitions, MCP integration, and a runtime configuration. It's not a wrapper around your skill — it is the skill, compiled into code.
# Install pip install agenthatch # Initialize with your LLM provider agenthatch init # Add a SKILL.md agenthatch skills add ./my-skill/SKILL.md # Hatch it into an agent agenthatch hatch my-skill # Run it agenthatch run my-skill Three steps from markdown to running agent. The hatched agent lives in your skillhouse and can be re-run anytime.
agenthatch runs a 3-phase pipeline with 6 AI harnesses working in parallel:
The SKILL.md is parsed for frontmatter, body, and directory files. No AI involved. A pure file-system operation. The output is a ContextPack with zero semantic transformation.
Six specialized AI harnesses process the skill, each with its own persona and temperature profile:
Each harness runs an Analyze → Infer → Self-Validate → Correct loop with up to 2 internal retries. Harness E cross-validates the other five outputs and produces a unified AHSSPEC (Agent Hatch Standard Specification).
Jinja2 templates render the AHSSPEC into a complete Python agent package:
hatched-agent/ ├── pyproject.toml # pip-installable package ├── runtime.toml # LLM provider, model, API keys ├── README.md # Generated usage docs ├── agenthatch.yaml # AHSSPEC manifest └── src/{package_name}/ ├── __init__.py ├── agent.py # Agent class (extends AHCoreAgent) ├── tools.py # Type-annotated tool implementations └── references.py # AI-extracted structured data Phase 3.5: Post-generation self-review After generation, the agent inspects its own tools.py for undefined variables, None-attribute crashes, and semantic stubs. Each tool runs once with mock parameters to catch runtime errors. When bugs are found, the LLM regenerates the broken function body and re-inspects (up to 3 rounds). The verdict (READY / WARN) shows up in --report and --json. Use --no-postgen-review to skip.
Generated agents use the PlanLayer state machine — a 6-state planning engine that runs STARTING → PLANNING → EXECUTING → VERIFYING → REPLANNING → DONE. It adapts mid-task: merges completed steps, branches on failure, and degrades gracefully when tools time out.
Sets up ~/.agenthatch/ with your LLM provider configuration. Supports OpenAI, Anthropic, DeepSeek, GLM (Zhipu), Qwen (DashScope), Ollama, and any OpenAI-compatible endpoint. The config file is TOML. Readable, versionable, easy to share.
Copies the SKILL.md and its directory into the skillhouse index. The skillhouse tracks every skill you've added, its hatch status, and where its generated agent lives.
Phase 1 (deterministic): Parse SKILL.md → ContextPack Phase 2 (AI): 6 harnesses → HarnessOutput → Assembly → AHSSPEC Phase 3 (Jinja2): AHSSPEC → agent package Flags:
Launches the hatched agent in interactive TUI mode. The agent loads its runtime config, connects to its LLM provider, and starts a conversation loop with tool calling, context compaction, and PlanLayer-driven execution.
pip install agenthatch Requires Python 3.11 or later.
git clone https://github.com/agenthatch/agenthatch.git cd agenthatch pip install -e ".[dev]" Documentation Document Link Contributing Guide CONTRIBUTING.md Security Policy SECURITY.md Support SUPPORT.md Roadmap ROADMAP.md Code of Conduct CODE_OF_CONDUCT.md Changelog CHANGELOG.md Community GitHub Discussions — questions, ideas, roadmap GitHub Issues — bugs and feature requests X (Twitter) Contributing agenthatch is a solo project looking for its first contributors. Issues, pull requests, documentation, design -- every bit moves the project forward.
See CONTRIBUTING.md for dev setup, the quality gate (hatch run quality:check), and PR guidelines.
AI-assisted contributions are welcome. Run the quality gate before submitting — that's all that matters.
Anyone who maintains more than 3 SKILL.md files and feels the friction. Claude Code users, Codex CLI users, OpenClaw users — if you've ever thought "I wish this skill was a real program," this is for you.
Yes. The hatched agent is a standalone Python package. You can run it as a CLI, import it as a library, or wrap it as an MCP server. It doesn't depend on any specific agent platform.
Any MCP server that speaks the standard protocol. Harness F auto-detects MCP servers referenced in your SKILL.md and configures them in the generated agent's runtime.
No. SKILL.md is the input format. agenthatch is the compiler. You still write skills in markdown — agenthatch turns them into agents.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
The dropdown lists show the available interpreters, ABIs, and platforms.
Enable javascript to be able to filter the list of wheel files.
Copy a direct link to the current filters Copy
Details for the file agenthatch-1.0.15.tar.gz.
The following attestation bundles were made for agenthatch-1.0.15.tar.gz:
Publisher: publish.yml on agenthatch/agenthatch




