Agent-contracts, contract-based LangGraph agents
Details
- External ID
- 46555781
- Source
- HN
- Company
- —
- Product
- Agent-contracts, contract-based LangGraph agents
- Website domain
- github.com
- Launched
- Jan. 9, 2026
- Cohort
- —
- Upvotes
- 8
- Upvotes percentile
- 0.41699604743083
- Tags
- —
- Fetched at
- Sept. 7, 2026, 9:25 p.m.
- Updated at
- Sept. 7, 2026, 9:25 p.m.
Description
Hi HN,I’m the author of agent-contracts, a Python library that explores a contract-based approach to structuring LangGraph agents.When building larger LangGraph-based systems, I kept running into the same issues: - node responsibilities becoming implicit - state dependencies spreading across the graph - routing logic getting harder to reason about - refactoring feeling increasingly riskyagent-contracts is an attempt to make these boundaries explicit. Each node declares a contract that describes: - which parts of the state it reads and writes - what external services it depends on - when it should run, using rule-based conditions with optional LLM hintsFrom these contracts, the LangGraph structure can be assembled in a more predictable and inspectable way.This is still early-stage and experimental. I’m mainly interested in feedback on the design trade-offs and whether this mental model resonates with others building complex agent systems.
Enrichment
- Theme
- AI agent frameworks and developer tools
- Vertical
- Horizontal
- Function
- Agent / copilot
- Audience
- Developer
- AI stance
- AI-native
- Project type
- Hobby / open-source project
- Normalized one-liner
- contract-based agents with langgraph
- Manually corrected
- False
Could you build this?
Yes This is a lightweight Python framework/abstraction layer defining schema contracts (e.g., via Pydantic) on top of LangGraph nodes and state graphs.
Discussion
No comments on this launch.
Competitors
Other products that read as similar to this one — 385 launches clear the similarity bar, closest 8 shown.
Attention rank: #225 of 386 (itself plus its competitors, highest first — normalized so YC and Product Hunt are compared fairly).
Launched 67 days after the earliest competitor.
- HyperFlow · hn · 2026-04-11 · 8 upvotes · similarity 0.50
- Langchain_DG · github · 2026-09-13 · 32 upvotes · similarity 0.47
- ai-agent-langgraph-main · github · 2026-09-11 · 21 upvotes · similarity 0.46
- AgentLog · hn · 2026-03-13 · 9 upvotes · similarity 0.46
- Agent Forge, an agent framework, heuristic routing and graph execution · hn · 2026-03-27 · 5 upvotes · similarity 0.45
- Teaching AI agents to write better GraphQL · hn · 2026-02-04 · 6 upvotes · similarity 0.45
- Agent-watchdog · ph · 2026-09-21 · 2 upvotes · similarity 0.44
- LangGraph architecture that scales (hexagonal pattern, 110 tests) · hn · 2026-01-20 · 12 upvotes · similarity 0.44
Other launches for this product
- No other launches for this product.
Same idea, different domain
Nobody's really built a agent / copilot tool for Agriculture yet.