About HAI-Co²
HAI-Co² (Human-AI Co-Construction) is a small, faithful reference implementation of the framework introduced by Dutta et al. (2025): an interaction paradigm in which a user and a language-model agent share a single, structured workspace.
What the paper proposes
Traditional chat collapses every artifact onto a single message stream. HAI-Co² separates the conversation from the construction space — preferences, todos and a co-edited document — so both parties can act on it explicitly. The agent reads and writes that space via tools; the human edits it directly.
What this repository contains
- FastAPI backend with JWT + Google OAuth
- LangGraph React agent + Postgres checkpoints
- Pluggable LLM provider factory (OpenAI / Mistral / Google / Anthropic)
- Workspace-bound tools (document / todos / preferences)
- Next.js 14 frontend with the four-panel co-construction UI
- One-command local Docker deployment
Reference
Dutta, S. et al. (2025). Human-AI Co-Construction. Position paper.