# Tangled

> Open-source, federated code forge built on AT Protocol with stacked pull requests, self-hostable repository hosting and CI.

Tangled is a social code-collaboration platform from Tangled Labs Oy, built on the AT Protocol and designed to be self-hostable, hackable and extensible. It combines Git repository hosting, pull requests, issues and CI, and lets users sign in with a hosted account or bring their own AT Protocol account.

## What It Is

Tangled is a code forge: a place to host Git repositories, open issues and submit pull requests. Because it is built on AT Protocol, collaboration is federated, so pull requests or bug reports can be submitted to any repository hosted on any server. The project is open source and its monorepo is public.

## Collaboration and Review

Pull requests support stacking, so large features can be broken into small reviewable chunks that sit on top of each other, with interdiff code reviews. Stacking is natively supported using Jujutsu. A vouching feature lets users signal trust in contributors, showing a shield icon on their profile to their circle. The homepage also states that agents work on Tangled like people do, from their own accounts over plain Git, with each issue, pull request and comment stored as a signed JSON record.

## Self-Hosting and CI

Repository hosting runs on knots and CI runs on spindles, and either can be self-hosted using an official NixOS module or Docker images. Spindle CI runs in NixOS-powered microVMs, can build containers with Docker, can set up services such as Postgres and Redis, and caches inputs. CI logs can be tailed over SSH. Custom storage backends, CI services and clients can be built against the Tangled lexicon specification.

## Documentation

The docs cover a quick start (sign in, add an SSH key, push a repository), a comparison with GitHub, migration from GitHub with an importer, self-hosting, XRPC methods, record types, identifiers and Git URLs, and local development.

## Features
- Stacked pull requests with interdiff code review
- Jujutsu-native stacking
- Self-hostable knots for repository hosting
- Self-hostable spindles for CI
- NixOS microVM-based CI
- Docker container builds and services like Postgres and Redis in CI
- CI log tailing over SSH
- Vouching web of trust
- Agents work from their own accounts over plain Git with signed JSON records
- Federated collaboration on AT Protocol
- Extensible via Tangled lexicon specification
- GitHub repository importer
- Official NixOS module and Docker images

## Integrations
AT Protocol, Jujutsu, NixOS, Docker, Git, GitHub, Postgres, Redis

## Platforms
WINDOWS, WEB, API, CLI

## Pricing
Free

## Links
- Website: https://tangled.org
- Documentation: https://tangled.org/docs
- Repository: https://tangled.org/@tangled.org/core
- EveryDev.ai: https://www.everydev.ai/tools/tangled
