Self-adapting agent — one file. Self-healing. Builds itself as it runs. 🦆
›About devduck
cagataycali/devduck — Apache-2.0, ⭐41, Python 3.10–3.13, PyPI (pipx install devduck). "🦆 Self-adapting agent - one file." Built on Strands Agents (strands-agents + tools + mcp-server + google + inspect + mlx). Deps incl bedrock-agentcore, eclipse-zenoh, websockets, textual, spotipy, qrcode, beautifulsoup4, numpy; extras rl (stable-baselines3/gymnasium), audio (whisper/webrtcvad/bidi-all). Structure: __init__.py (single-file core), tui.py, tools/ (60+ hot-reloadable), agentcore_handler.py. Ports: 10000 mesh relay, 10001 WS, 10002 TCP, 10003 MCP. Zenoh multicast 224.0.0.224:7446, 5s heartbeats. Self-heal: hot-reload + service tool (systemd/launchd Restart=always 15s, MemoryMax=8G, wrapper fixes pydantic-core + idle-loop keep-alive) + error recovery + context-overflow auto-clear + OpenAPI token auto-refresh. Identity = portable personas (SQLite identities.db, FTS, create/activate/clone/diff/talk/fan_out/sync). Model priority Bedrock→...→Ollama. Deploy AgentCore (devduck deploy --launch), GitHub Action. Skeleton behind neon/scout/reachy robot family. Author Çağatay Çalı.