nexul

module
v0.3.25-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2026 License: AGPL-3.0

README

Nexul

One loop from docs to deploy, on servers you own.

CI Docs Go

[!WARNING] Nexul is in beta. Expect rough edges and breaking changes between releases. Proceed with caution before trusting it with production work.

Nexul is a self-hosted platform for teams that ship software with coding agents in the loop. Docs, tickets, chat, CI runners, and deploys to your own servers live in one place, and one MCP server exposes all of it, so an agent works through the same tools people do.

Alternative to

One install covers what these do, area by area:

Area Instead of
Project management Linear, Jira
Docs Notion, Confluence
Chat and calls Slack, Discord
Deploys Heroku, Vercel, Netlify, Render
CI runners GitHub Actions self-hosted runners
The agent layer One MCP server over all of the above, instead of bolting an agent onto each tool

Phew, that is a lot of tabs to close.

Where the idea comes from

Three repositories shaped Nexul.

mattpocock/skills showed how short the path from an idea to a set of scoped tickets can be: grill the idea against the docs, map it, and the tickets fall out. A developer gets from "I think we should" to a board of work in one sitting.

pingdotgg/t3code showed how natural it is to run several pieces of work in parallel once an agent does the typing, and how much that changes the way code should be written.

pstack, Lauren Tan's engineering-discipline pack, showed how far short principle skills and playbooks go when an agent checks its own work against them.

Nexul takes all three ideas and applies them to the whole software delivery loop, from the doc to the deploy, on your own servers.

The core idea

Every piece of work is linked and searchable in one place: docs, tickets, code, reviews, deploys, server topology, and run logs. One MCP server exposes all of it, so an agent can run the whole loop without leaving the system.

-> Docs to land ideas; not clear? run /wayfinder play or /grill-with-docs to clear it
-> Tickets derived from docs (isolated, scoped)
-> Work on tickets (human or LLM agent, owner's choice)
-> Code + Pull Requests (linked back to ticket + doc)
-> Code review (linked, indexed)
-> Deploy (runner executes, topology updates live)
-> Index everything -> the next loop starts with full context

Every step is a use case. The web app reaches the use-case layer through an HTTP gateway, and MCP exposes its registered tools through the same layer. A personal access token carries the user's permissions, and calls made through it are attributed to that user. The adapters are separate surfaces over one source of behavior.

Who it's for

  • Solo developers and small teams who self-host and want one install command and native services on one port, with no managed services.
  • Teams that run coding agents and need a tracker, docs, and deploys that a machine can query and act on.
  • Operators who deploy to a mix of ordinary servers and want a live topology view without running Kubernetes.

Functions

Everything below is in the AGPL edition and runs on your own servers. The guide covers each area.

Domain Done Summary
Workspaces and projects ✅ One instance hosts several workspaces, each with its own projects, members, and settings. A project owns its docs, its board, and its repositories.
Docs ✅ Rich text with version history, named versions, @ mentions of tickets and docs, attachments, and markdown import and export. Docs are the source of truth tickets derive from, and each doc has one thread where its work is discussed.
Live collaboration ✅ Several people edit one doc at once with live cursors and merged edits, and the UI updates over WebSockets without a refresh.
Tickets and the board ✅ A Kanban board per project with configurable statuses in five fixed stages, ticket types, labels, and swimlanes. A ticket links to branches and pull requests and counts as finished once a linked PR is merged and none are still open.
Chat ✅ Channels, direct messages, and one thread per ticket and per doc, laid out as sidebar, list, and thread. Mention a person or @Agent, and the events you care about land in an inbox.
Voice ✅ Voice rooms with screen share and camera on a LiveKit server you run. Each channel carries its own text chat and shows who is in the call.
Plays ✅ One-button agent runs fired from a ticket or a doc ("Fix with AI", "To tickets via AI"). A run executes on the user's own paired coding harness with that user's permissions, and its transcript lands in the thread as a trail you can read, stop, or answer.
Memories ✅ Notes written for agents, per project, with an index sent on every agent turn in it. Versioned, revertible, and writable by agents too.
Code review ✅ A mirror of each linked PR's review state, listed on the ticket. Nexul does not host review threads.
Git providers ✅ GitHub through a GitHub App: repositories, branches, pull requests, and webhooks, behind a provider interface.
Stacks and deploys ✅ A repository becomes a stack (a compose file, or a Dockerfile as a stack of one) that a runner deploys with docker compose up. History, cancel, one-click rollback, branch deploy rules with a preview deployment per branch, and import of containers already running on a machine.
Runners and machines ✅ A small service on each machine connects out over a WebSocket, so the server holds no SSH keys. A one-line command installs a named runner, several can share a machine and pool on it, each has its own credential, and Remove uninstalls it. Work queues until a runner is connected.
Topology ✅ A canvas of every service, its docker network, gateways, and hostnames, with each node's status as the runner last observed it.
DNS and exposure ✅ Cloudflare zones and records, Cloudflare tunnels for hosting with no open ports, and gateways that expose one hostname to one container.
Automations ✅ Event-driven TypeScript against @nexul/sdk, placed on the bundled automations host or a named one on any machine, or run anywhere that can dial in. Each automation acts through its own scoped token and reads a shared secrets pool.
Connectors and integrations ✅ Instance-wide credentials for GitHub, Cloudflare, and LiveKit. Third-party integrations get scoped tokens, signed outgoing webhooks, and an OpenAPI 3 spec at /openapi.json.
Access ✅ Private invitation links, owner-configured OAuth sign-in, custom roles per workspace, per-user permission overwrites, and personal access tokens, all checked against one <domain>:<action> vocabulary.
Search ✅ Full-text search over doc and ticket titles and bodies and the notes on a ticket, from the docs page, the API, and MCP.
MCP server ✅ 98 task-shaped tools on the official MCP Go SDK, plus doc, ticket, and topology resources and workflow prompts, over stateless Streamable HTTP at /mcp. Every tool is annotated for read-only or destructive, lists are paginated, and failures come back as errors the agent can act on.
Logs ✅ Every server log line goes to the OpenObserve that nexul install sets up, served at /openobserve/ on the same port, or to any OTLP/HTTP backend, and the browser's console errors are forwarded into the same stream.
Desktop app ✅ An Electron shell that imports a connection token, keeps a list of instances, and loads the web app from the one you pick.
Instance upgrade ✅ Settings shows the running version and the newest release, and one click (or the instance_upgrade tool) moves every Nexul service on the server to it.
Call notes ⬜ A speech-to-text model listens to a voice call, takes notes, summarizes it, and writes the summary into the doc, so the loop runs from a conversation to a deploy without anyone typing the notes.

Contributing

Go (version pinned in go.mod) and Bun are the only prerequisites. CONTRIBUTING.md is the short version, and the contributor docs have the rest. Coding agents are contributors too: AGENTS.md is written for them, and it is a good read for people as well. ROADMAP.md says where the product is going, .scratch/ holds the open specs and tickets, and CONTEXT.md is the vocabulary.

License

Nexul is open core: one repository, two licenses.

  • Everything outside ee/ is AGPL-3.0-or-later. Anyone can run it, modify it, and self-host it at any company size, as long as they follow the AGPL and publish their changes if they offer a modified copy over a network.
  • Everything inside ee/ is under a commercial license, see ee/LICENSE. The code is public so you can read and patch it, but running it in production needs a Nexul subscription. Today that directory holds only the license.

Outside contributions need a Contributor License Agreement so the project can keep licensing both parts. The text is in CLA.md; you agree to it by ticking the box in the pull request template.

Enterprise Edition (EE)

What the subscription is meant to include.

Feature Done Summary
Cloud hosting ⬜ A managed Nexul control plane that we run for you. Your runners and servers stay yours.
SSO ⬜ OIDC and SAML sign-in (Google, Microsoft Entra, Okta) with just-in-time user provisioning.
External secrets ⬜ Read secrets from Vault, 1Password, or a cloud secrets manager instead of storing them in Nexul.
Priority support ⬜ A response-time SLA and a direct channel.

Directories

Path Synopsis
cmd
nexul command
Command nexul installs, upgrades and removes Nexul's services on this machine: the server, OpenObserve, runners and automations hosts.
Command nexul installs, upgrades and removes Nexul's services on this machine: the server, OpenObserve, runners and automations hosts.
internal
access
Package access implements permission overwrites, the HasPermission check, and doc-permission use-cases.
Package access implements permission overwrites, the HasPermission check, and doc-permission use-cases.
auth
Package auth implements the identity and session use-cases (ADR 0019).
Package auth implements the identity and session use-cases (ADR 0019).
automations
Package automations implements first-party event-driven code, not a no-code rule engine.
Package automations implements first-party event-driven code, not a no-code rule engine.
chat
Package chat implements the chat domain core: conversations, messages, and per-user unread state.
Package chat implements the chat domain core: conversations, messages, and per-user unread state.
connectors
Package connectors holds credentials the instance uses to call out to third-party tools on its own behalf.
Package connectors holds credentials the instance uses to call out to third-party tools on its own behalf.
connectors/cloudflare
Package cloudflare implements connectors.OAuthClient against Cloudflare's OAuth app, reading credentials live.
Package cloudflare implements connectors.OAuthClient against Cloudflare's OAuth app, reading credentials live.
connectors/github
Package github implements connectors.OAuthClient against a GitHub App, reading AppConfig fresh on every call.
Package github implements connectors.OAuthClient against a GitHub App, reading AppConfig fresh on every call.
dns
dns/cloudflare
Package cloudflare implements dns.DNSProvider against Cloudflare's v4 API.
Package cloudflare implements dns.DNSProvider against Cloudflare's v4 API.
docs/richtext
Package richtext converts between the docs domain's canonical structured rich text (Tiptap JSON, ADR 0026) and CommonMark.
Package richtext converts between the docs domain's canonical structured rich text (Tiptap JSON, ADR 0026) and CommonMark.
eventcatalog
Package eventcatalog aggregates every domain's published topics into one enumerable set (AM11).
Package eventcatalog aggregates every domain's published topics into one enumerable set (AM11).
gitprovider/github
Package github implements gitprovider.GitProvider against GitHub via go-github.
Package github implements gitprovider.GitProvider against GitHub via go-github.
harness
Package harness is the seam between Nexul and an agent harness (T3 Code today, others later): one Client per kind, registered by Kind, and only harness-neutral types cross it (ADR 0054).
Package harness is the seam between Nexul and an agent harness (T3 Code today, others later): one Client per kind, registered by Kind, and only harness-neutral types cross it (ADR 0054).
harness/harnesstest
Package harnesstest is the one in-memory harness.Client every domain test uses instead of its own fake.
Package harnesstest is the one in-memory harness.Client every domain test uses instead of its own fake.
install
Package install puts Nexul on a Linux server, a Mac or a Windows PC as native services and keeps it current: the nexul command's install, upgrade, status and uninstall commands.
Package install puts Nexul on a Linux server, a Mac or a Windows PC as native services and keeps it current: the nexul command's install, upgrade, status and uninstall commands.
integrations
Package integrations implements scoped API tokens, signed webhooks-out, the schema catalog, and audit log (ADR 0043).
Package integrations implements scoped API tokens, signed webhooks-out, the schema catalog, and audit log (ADR 0043).
livekit
Package livekit is a minimal, stdlib-only LiveKit client; deliberately skips the server-sdk-go dependency.
Package livekit is a minimal, stdlib-only LiveKit client; deliberately skips the server-sdk-go dependency.
mcp
Package mcp is the Model Context Protocol adapter: the official SDK's stateless Streamable HTTP handler over the tools, resources, and prompts the domains declare (ADR 0067).
Package mcp is the Model Context Protocol adapter: the official SDK's stateless Streamable HTTP handler over the tools, resources, and prompts the domains declare (ADR 0067).
mcp/composite
Package composite holds the MCP tools that compose more than one domain; it imports only the domains it composes.
Package composite holds the MCP tools that compose more than one domain; it imports only the domains it composes.
mentions
Package mentions implements the @-mention/chip resolution seam.
Package mentions implements the @-mention/chip resolution seam.
pairing
Package pairing implements the user-level half of @Agent: paired computers, their harness sessions, and defaults.
Package pairing implements the user-level half of @Agent: paired computers, their harness sessions, and defaults.
platform/colors
Package colors defines the fixed suggested color palette shared by every owner-configurable color field.
Package colors defines the fixed suggested color palette shared by every owner-configurable color field.
platform/crypto
Package crypto provides authenticated-encryption helpers for secrets at rest.
Package crypto provides authenticated-encryption helpers for secrets at rest.
platform/errors
Package apperrors defines the cross-cutting sentinel errors; named so callers can also import "errors".
Package apperrors defines the cross-cutting sentinel errors; named so callers can also import "errors".
platform/eventbus/deadletter
Package deadletter persists events that exhausted retries or failed permanently, and replays them back onto the bus.
Package deadletter persists events that exhausted retries or failed permanently, and replays them back onto the bus.
platform/eventbus/inprocess
Package inprocess implements the Day-1 EventBus over in-process channels.
Package inprocess implements the Day-1 EventBus over in-process channels.
platform/eventbus/outbox
Package outbox implements the transactional outbox.
Package outbox implements the transactional outbox.
platform/eventbus/processed
Package processed holds the consumer-side idempotency store.
Package processed holds the consumer-side idempotency store.
platform/eventbus/testutil
Package testutil provides shared test helpers for the eventbus packages.
Package testutil provides shared test helpers for the eventbus packages.
platform/freshdns
Package freshdns resolves names through a public resolver before the host's, so a record created seconds ago is not hidden behind the negative answer the host's resolver cached while it did not exist yet (Cloudflare zones cache "no such name" for 30 minutes).
Package freshdns resolves names through a public resolver before the host's, so a record created seconds ago is not hidden behind the negative answer the host's resolver cached while it did not exist yet (Cloudflare zones cache "no such name" for 30 minutes).
platform/githubapp
Package githubapp checks a GitHub App registration live, so a typo never gets stored as this instance's login app.
Package githubapp checks a GitHub App registration live, so a typo never gets stored as this instance's login app.
platform/hostcred
Package hostcred mints and checks the one-time enrollment codes and long-lived credentials hosts (runners, automations hosts) authenticate with; only hashes are ever stored.
Package hostcred mints and checks the one-time enrollment codes and long-lived credentials hosts (runners, automations hosts) authenticate with; only hashes are ever stored.
platform/httpx
Package httpx provides the JSON/error adapter helpers shared by the domain HTTP gateways (ADR 0019).
Package httpx provides the JSON/error adapter helpers shared by the domain HTTP gateways (ADR 0019).
platform/identity
Package identity carries the acting user through a request context, so use-cases enforce access without auth.
Package identity carries the acting user through a request context, so use-cases enforce access without auth.
platform/ids
Package ids generates the time-sortable UUIDv7 identifiers domain use-cases mint for new rows.
Package ids generates the time-sortable UUIDv7 identifiers domain use-cases mint for new rows.
platform/live
Package live fans bus events out to connected browser WebSockets; callers decide which topics to bridge.
Package live fans bus events out to connected browser WebSockets; callers decide which topics to bridge.
platform/mcptool
Package mcptool is the MCP tool contract every domain declares its tools with; only internal/mcp speaks the protocol.
Package mcptool is the MCP tool contract every domain declares its tools with; only internal/mcp speaks the protocol.
platform/oauthx
Package oauthx is the shared form-encoded OAuth token-exchange POST used by every provider client.
Package oauthx is the shared form-encoded OAuth token-exchange POST used by every provider client.
platform/openapi
Package openapi builds an OpenAPI 3.0.x document from gateway route registrations (ADR 0045).
Package openapi builds an OpenAPI 3.0.x document from gateway route registrations (ADR 0045).
platform/permissions
Package permissions defines the one domain x action vocabulary shared by roles, tokens, and the agent: read, write, and delete on every domain, plus a further verb a domain may declare (ADR 0057).
Package permissions defines the one domain x action vocabulary shared by roles, tokens, and the agent: read, write, and delete on every domain, plus a further verb a domain may declare (ADR 0057).
platform/redact
Package redact hides credentials in text that is saved, such as an agent turn's transcript.
Package redact hides credentials in text that is saved, such as an agent turn's transcript.
platform/release
Package release is a small GitHub Releases client for the Nexul repo, shared by the runner download proxy and the /api/version handler so both hit the same 5-minute cache.
Package release is a small GitHub Releases client for the Nexul repo, shared by the runner download proxy and the /api/version handler so both hit the same 5-minute cache.
platform/skills
Package skills holds the agent skills Nexul writes to paired computers, each versioned by its own content.
Package skills holds the agent skills Nexul writes to paired computers, each versioned by its own content.
platform/storage/testutil
Package testutil holds storage fixtures for tests in any package that migrates a real database.
Package testutil holds storage fixtures for tests in any package that migrates a real database.
platform/version
Package version holds the single build-stamped version both binaries read (server and runner).
Package version holds the single build-stamped version both binaries read (server and runner).
plays
Package plays implements the Play entity: a workspace-scoped, user-fired Agent turn definition (ADR 0055).
Package plays implements the Play entity: a workspace-scoped, user-fired Agent turn definition (ADR 0055).
presence
Package presence holds one harness connection per paired computer while its owner has a live browser WS.
Package presence holds one harness connection per paired computer while its owner has a live browser WS.
push
Package push sends one Expo push message per phone session for every notification written to an inbox.
Package push sends one Expo push message per phone session for every notification written to an inbox.
repository
Package repository reads a git repository's tree and proposes deployable candidates: compose stacks and standalone Dockerfiles, with their services, ports and env keys.
Package repository reads a git repository's tree and proposes deployable candidates: compose stacks and standalone Dockerfiles, with their services, ports and env keys.
roles
Package roles implements the Role entity: a permission catalog with a protected singleton Owner role.
Package roles implements the Role entity: a permission catalog with a protected singleton Owner role.
t3client
Package t3client is the harness.Client for T3 Code on orchestration protocol 1; a T3 past it answers harness.MovedError.
Package t3client is the harness.Client for T3 Code on orchestration protocol 1; a T3 past it answers harness.MovedError.
t3clientv2
Package t3clientv2 is the harness.Client for T3 Code servers on orchestration protocol 2, over the t3rpc transport.
Package t3clientv2 is the harness.Client for T3 Code servers on orchestration protocol 2, over the t3rpc transport.
t3rpc
Package t3rpc speaks T3 Code's Effect RPC protocol over one WebSocket: the transport both orchestration protocols share.
Package t3rpc speaks T3 Code's Effect RPC protocol over one WebSocket: the transport both orchestration protocols share.
t3rpc/t3rpctest
Package t3rpctest is a fake T3 Code server every T3 client's tests share: the pairing exchange, the wsTicket mint, the /ws Effect RPC socket, and the environment descriptor.
Package t3rpctest is a fake T3 Code server every T3 client's tests share: the pairing exchange, the wsTicket mint, the /ws Effect RPC socket, and the environment descriptor.
templates
Package templates implements the instance layer every template resolves through (ADR 0103): the code default, then the instance template, then the workspace or project that holds its own text.
Package templates implements the instance layer every template resolves through (ADR 0103): the code default, then the instance template, then the workspace or project that holds its own text.
tenancy
Package tenancy implements Workspace; named "tenancy" since internal/workspace already claimed that name.
Package tenancy implements Workspace; named "tenancy" since internal/workspace already claimed that name.
voice
Package voice owns LiveKit interaction for voice channels: join tokens, webhooks, and room occupancy (ADR 0030).
Package voice owns LiveKit interaction for voice channels: join tokens, webhooks, and room occupancy (ADR 0030).
workspace
Package workspace implements projects, repositories, ticket moves, and the notifications inbox (ADR 0019).
Package workspace implements projects, repositories, ticket moves, and the notifications inbox (ADR 0019).
runner
cmd command
server
cmd command
webui
Package webui serves the built web frontend from the server binary in single-binary mode.
Package webui serves the built web frontend from the server binary in single-binary mode.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL