Skip to main content

Turn any SKILL.md into a runnable AI Agent

Project description

agenthatch

Turn any SKILL.md into a runnable AI Agent.

Python License Status

agenthatch is an Agent Factory that transforms declarative SKILL.md files into fully functional, standalone AI agents. Inspired by the Claude Code SKILL.md specification, agenthatch goes further: it analyzes, reasons about, and generates production-ready agents with tool calling, MCP integration, and multi-turn conversation capabilities.


Why agenthatch?

Claude Code + SKILL.md agenthatch
Agent format Inline prompt injection Standalone runnable agent
Tool calling Built-in tools only MCP + custom tools + sandbox
Multi-turn Single-shot context Full conversation loop
Deployment Requires Claude Code Self-contained Python package
Customization None Full harness pipeline
Quality control Manual Automated fidelity checks

Quick Start

1. Install

pip install agenthatch

2. Initialize

agenthatch init

3. Add a Skill

agenthatch skill add path/to/SKILL.md

4. Hatch an Agent

agenthatch hatch my-skill

This runs the full pipeline:

  • Phase 1 — Parse SKILL.md frontmatter and content
  • Phase 2 — 6-harness LLM reasoning pipeline (identity, intent, interface, base, assembly, MCP servers)
  • Phase 3 — Generate standalone agent code
  • Phase 4 — Readiness verification

5. Run the Agent

agenthatch run my-skill

How It Works

The Harness Pipeline

agenthatch uses a chain of specialized LLM agents ("harnesses") to analyze and reason about your skill:

SKILL.md
  │
  ├─ Harness A: Identity     → Who is this agent?
  ├─ Harness B: Intent       → What triggers and satisfies it?
  ├─ Harness C: Interface    → What capabilities does it provide/require?
  ├─ Harness F: MCP Servers  → What MCP connections does it need?
  ├─ Harness D: Base         → What runtime environment?
  ├─ Harness E: Assembly     → Cross-validate and produce AHSSPEC
  │
  ▼
agenthatch.yaml (AHSSPEC)
  │
  ▼
Generated Agent (standalone Python package)

Fidelity Protection

Every generated agent includes:

  • Fidelity Anchors — SHA256 hashes of constraints extracted from the original SKILL.md
  • Fidelity Manifest — Verification file in the agent directory
  • Quality Review — Harness E validates intent fidelity, capability coverage, and MCP integrity

Skill Management

# List all skills
agenthatch skill list

# Add a new skill
agenthatch skill add path/to/SKILL.md

# Delete a skill
agenthatch skill delete my-skill

# Search skills
agenthatch search "data analysis"

SKILL.md Format

agenthatch follows the Claude Code SKILL.md specification:

---
name: My Skill
description: What this skill does
---

# Skill Instructions

Detailed instructions for the agent...

## Workflow

1. Step one
2. Step two

## MCP Tools

This skill uses mcp__my-server__my-tool for data access.

MCP Support

agenthatch automatically detects MCP server references in your SKILL.md:

  • mcp__SERVER__TOOL patterns
  • mcporter call Server.Tool syntax
  • Frontmatter mcpServers declarations

Architecture

agenthatch/
├── src/agenthatch/          # CLI, skill engine, harness, generation
│   ├── cli/                 # Typer CLI commands
│   ├── skill/               # Skill parsing, harness, validation
│   ├── generate/            # Agent code generation + templates
│   ├── agent/               # Runtime, builtins, MCP
│   ├── house/               # Skillhouse index, discovery
│   └── config/              # Configuration management
├── agenthatch-core/         # Universal agent runtime
│   └── src/agenthatch_core/ # LLM client, sandbox, conversation loop
└── tests/                   # Test suite

Requirements

  • Python 3.11+
  • LLM API access (OpenAI, DeepSeek, or custom provider)
  • Optional: mcporter for MCP server support (npm install -g mcporter)

Contributing

agenthatch is in active development. Contributions are welcome!

# Development setup
git clone https://github.com/agenthatch/agenthatch
cd agenthatch
pip install -e ".[dev]"

# Run tests
pytest

# Quality checks
hatch run quality:check

License

MIT — see LICENSE for details.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

agenthatch-0.8.20.tar.gz (209.1 kB view details)

Uploaded Source

Built Distribution

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

agenthatch-0.8.20-py3-none-any.whl (251.3 kB view details)

Uploaded Python 3

File details

Details for the file agenthatch-0.8.20.tar.gz.

File metadata

  • Download URL: agenthatch-0.8.20.tar.gz
  • Upload date:
  • Size: 209.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for agenthatch-0.8.20.tar.gz
Algorithm Hash digest
SHA256 bfbd86ce8cfaee1fc7179ef7a0d6efacfb965e1d9b7c9fde5533535910ccdb4a
MD5 cfc9ba1ae4992e8659c6247bef674959
BLAKE2b-256 a833ad8a428f7278a92ce8bfe4b4cc1189c16eb9c2087f8e834be3459d501f70

See more details on using hashes here.

File details

Details for the file agenthatch-0.8.20-py3-none-any.whl.

File metadata

  • Download URL: agenthatch-0.8.20-py3-none-any.whl
  • Upload date:
  • Size: 251.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for agenthatch-0.8.20-py3-none-any.whl
Algorithm Hash digest
SHA256 a48158e36201f570d2a02ab18029ba07fea96047754f21b6a3bb84b654d0861a
MD5 98a2bba04b877f61d140f99fbf48602b
BLAKE2b-256 f7126f9f0192f88c67c69e897c5f07855d2863fbf8b3d3afd974d7d402e07284

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