An A2A agent rooted in the Five Mindfulness Trainings — offering teachings, reflections, and mindful guidance to humans and AI agents alike.
dharma-agent is an early-stage Python project in the AI payments / x402 ecosystem, focused on a2a, a2a-protocol, agent-to-agent, ai-agent. It currently has 0 GitHub stars and 0 forks, and sits alongside related tools like agentanycast, YOAP-A2A, capiscio-sdk-python, YOAP-A2A, capiscio-python, capiscio-python.
An A2A agent rooted in the Five Mindfulness Trainings from the tradition of Thich Nhat Hanh.
Dharma Agent is a reflection-and-review layer for humans and AI systems. Its goal is not just to answer nicely, but to help turn reactive moments into wiser and more compassionate next actions.
"that helped" and "that didn't help"Responses are rendered from a shared structured result shape, so every skill can return:
| Skill | Description |
|---|---|
| teach | Explain one or more of the Five Mindfulness Trainings |
| reflect | Reflect on a situation and surface a clearer next step |
| respond | Draft a wiser reply that is honest, calm, and less likely to escalate |
| review | Review a draft action or message for likely harm, coldness, manipulation, or unnecessary escalation |
This repo is aiming at a positive feedback loop:
The current implementation keeps this memory in-process and in-memory. It records:
Clone and enter the project:
cd dharma-agent
Create a .env file with your Anthropic API key:
cp .env.example .env
# Edit .env and add your key
Install dependencies:
pip install -e .
Run the agent:
python3 -m dharma_agent.main
The agent will be available at http://localhost:9999.
Preferred agent card endpoint:
curl http://localhost:9999/.well-known/agent-card.json
Compatibility endpoint still used by tests:
curl http://localhost:9999/.well-known/agent.json
Any A2A-compatible client can discover and interact with Dharma Agent. You can also test manually with JSON-RPC.
curl -X POST http://localhost:9999/ \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "message/send",
"id": "1",
"params": {
"message": {
"role": "user",
"parts": [{"kind": "text", "text": "I feel overwhelmed by conflict at work"}],
"messageId": "msg-1"
}
}
}'
curl -X POST http://localhost:9999/ \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "message/send",
"id": "2",
"params": {
"message": {
"role": "user",
"parts": [{"kind": "text", "text": "Help me reply to this message without escalating"}],
"messageId": "msg-2"
}
}
}'
curl -X POST http://localhost:9999/ \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "message/send",
"id": "3",
"params": {
"message": {
"role": "user",
"parts": [{"kind": "text", "text": "Review this message before I send it"}],
"messageId": "msg-3"
}
}
}'
If you continue in the same A2A conversation context, you can report whether the prior guidance helped:
"That helped""That didn't help""I sent it and it went well"Those updates feed the in-memory profile and pattern stores used by later responses.
Run the test suite with:
python3 -m pytest -q
Connect AI agents across any network — zero config, encrypted, skill-based routing
YOAP - Open Agent-to-Agent Protocol for connecting people through AI Agents. Like open-source matchmaking.
Runtime security middleware for A2A (Agent-to-Agent) protocol agents. Provides always-on validation, signature verification, and rate limiting for AI agent interactions.
Connect AI agents representing humans through the A2A protocol for seamless, secure interaction across apps and tools.
The official CapiscIO CLI tool for validating A2A agents. A lightweight Python wrapper that automatically manages the capiscio-core binary.
🚀 Access and manage the CapiscIO CLI easily with this Python wrapper, ensuring optimal performance across your system and architecture.
A local-first AI agent with persistent memory, emotional intelligence, and a peer-to-peer skills economy.
The trust layer for agent-to-agent commerce — natural-language mandates, ERC-7710 delegated permissions, x402 payments, escrow, and dispute resolution as one open, catch-all Agent Skill / Claude Code plugin.
Agent behavior that compiles
The A2A x402 Extension brings cryptocurrency payments to the Agent-to-Agent (A2A) protocol, enabling agents to monetize their services through on-chain payments. This extension revives the spirit of HTTP 402 "Payment Required" for the decentralized agent ecosystem.
Aser is a lightweight, self-assembling AI Agent frame.
Golang SDK for A2A Protocol