Skip to content
プロジェクト

概要

一緒に充実した計画を作成しましょう。

AI・機械学習

この数値の測り方

計測したスター増加

24時間
+5
7日間
+15
15日間
+53
1か月
履歴を収集中

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

Chopin

Chopin is a GitHub Next research prototype where people and a repository-aware AI agent write technical documents together. Use it for implementation plans, technical specs, RFCs, proposals, or decision records.

People guide the document and own every decision. The built-in agent, called the Planner, reads your GitHub repository, proposes document edits, and asks the team when the codebase does not settle a choice. Read the GitHub Next project post for the background behind the project.

[!IMPORTANT] Chopin is experimental research software, not a supported GitHub product or a production service. Expect incomplete workflows, operational limits, and breaking changes.

[!TIP] There is no public Chopin server for general use. Run Chopin locally with the steps below, or host your own server by following Self-hosting.

https://github.com/user-attachments/assets/9ebf0901-6255-47c3-adb3-e905e8f6cab4

What Chopin does

Each document links to one GitHub repository and brings three views together:

  • Document. People and the Planner edit one shared rich-text document saved as Markdown. You see live cursors, who is in the document, and temporary highlights on recent agent edits.
  • Chat. The team talks beside the document, and messages feed the Planner's context and keep untitled documents named. When you are alone in a document, every message goes straight to @chopin. In a group conversation, automatic participation waits for a natural opening, while mentioning @chopin calls the Planner right away.
  • Decisions. Answers to open questions and accepted comments are stored as attributed records separate from the prose. Later edits cannot quietly overwrite what the team agreed on.

https://github.com/user-attachments/assets/9f429bf0-762d-4d8b-871b-493dbb14c03c

Research. Type /research in a document to start a background research task from your brief. Chopin shows a live progress card inline in the document. When research finishes, Chopin publishes it as a child document under the current document, with its own Document and Decisions views. Child documents have no Chat of their own; the parent document's Chat and Planner read them directly. Pending, failed, and cancelled research tasks stay out of the sidebar.

https://github.com/user-attachments/assets/72a85be8-685f-4d60-9937-b3855b46cebe

Planner and coding agents. By default (HARNESS=copilot-sdk), the Planner uses GitHub Copilot with read-only repository tools and edits only the Chopin document. It cannot push to GitHub, edit local files, or run commands. Two other harnesses are available:

  • HARNESS=atomic: Runs each Planner session as an unsandboxed Atomic session under the server user. Direct shell and file-writing tools are blocked on Planner turns, while local file reads, extensions, and MCP servers act with the server user's authority. Read Self-hosting before enabling it.
  • HARNESS=remote: Runs Planner turns in an external client or paired machine connected to /api/v1/agent. See Agent connection.

External coding agents can also connect over MCP (/mcp) to create or update documents and implement approved task plans. The document format works for any repository-connected technical writing, while the built-in Planner prompts focus on planning.

Run locally

Install these prerequisites first:

  • Bun 1.4.5 (mise.toml selects it automatically if you use mise).
  • Docker Engine with Docker Compose (for the local PostgreSQL database).
  • A GitHub App registered for your local instance.
  • A GitHub account with push or admin access to a test repository, plus a GitHub Copilot seat for the default Planner.
  • An OPENAI_API_KEY or JEV_API_KEY for the helper model that decides when to reply in Chat (required when AGENT=on).

1. Register a GitHub App

Create a GitHub App with these local URLs:

Homepage:  http://127.0.0.1:8787
Callback:  http://127.0.0.1:8787/auth/github/callback
Setup URL: http://127.0.0.1:8787/auth/github/setup

Configure these settings on the App:

  1. Enable expiring user authorization tokens.
  2. Disable OAuth during installation.
  3. Disable webhooks.
  4. Grant these repository permissions (explained in Authentication):
Contents:        Read and write
Pull requests:   Read and write
Workflows:       Read and write
Actions:         Read-only
Checks:          Read-only
Commit statuses: Read-only
Issues:          Read-only
Metadata:        Read-only (automatic)

If you restrict sign-in with GITHUB_ALLOWED_ORGANIZATIONS or GITHUB_ALLOWED_TEAMS, also grant this organization permission, install the App on each organization they name, and have an owner of each accept it (see Organization admission):

Members:         Read-only

2. Install dependencies and configure .env

bun install
cp .env.example .env
openssl rand -hex 32

Open .env and fill in:

  • GITHUB_APP_SLUG, GITHUB_APP_CLIENT_ID, and GITHUB_APP_CLIENT_SECRET
  • SESSION_ENCRYPTION_KEY (paste the 64-character hex string from openssl)
  • OPENAI_API_KEY or JEV_API_KEY

To run Chopin without the Planner, background jobs, or a helper-model key, set AGENT=off. External coding agents can still use /mcp.

3. Start PostgreSQL and Chopin

bun run db:up
bun run migrate
bun run dev

compose.local.yaml exposes PostgreSQL on port 5432, so use it only on a trusted development computer. For a network-facing deployment, follow Self-hosting.

If port 5432 is already in use, run PostgreSQL on another loopback port and update DATABASE_URL in .env:

docker run -d --name chopin-db \
  -e POSTGRES_USER=chopin -e POSTGRES_PASSWORD=chopin -e POSTGRES_DB=chopin \
  -p 127.0.0.1:5439:5432 postgres:17

Keep two caveats in mind when using a custom container: bun run test:postgres hard-codes 127.0.0.1:5432 in package.json, and bun run db:down will not remove a container you started by hand.

Press Ctrl-C to stop Chopin. Run bun run db:down to stop and remove the Compose containers.

4. Sign in and create a document

  1. Open http://127.0.0.1:8787 and sign in with GitHub.
  2. Install or update the GitHub App on a test repository when prompted.
  3. Pick that repository, create a document, and start writing.

Open the same document in a second browser profile to test live collaboration. To try collaboration inside one browser, enable local collaborators to open demo accounts (Lily or Felix) in another tab using your own sign-in.

Public web search for /research calls GitHub's Copilot MCP endpoint with your GitHub App token. Self-registered Apps may not be accepted by that endpoint. If a web search fails, the research card and server log explain why, and Self-hosting troubleshooting lists what to check.

Collaborate with the Planner

Write in Chat as a team, or mention @chopin when you want the Planner to reply right away.

Message What happens
should we cover the export format? Chopin saves the message in Chat and includes it in the Planner's context. Alone in a document, @chopin replies right away; in a group, it waits its turn.
@chopin Calls the Planner immediately to respond to recent Chat messages.
@chopin draft the export section Calls the Planner immediately with that specific request.
@chopin compare #Release plan The Planner reads the referenced document at its latest revision, then replies in the current document.

Type # in Chat to link other documents in the same repository, published research child documents, headings, Decisions, or repository files. Document links stay intact if you rename a document and never change which document the Planner edits. To start research, type /research inside the document rather than in Chat.

Chat messages also update blank or auto-generated document titles without overwriting a title a person set. Under copilot-sdk, the first eligible writer to trigger a title update, Planner turn, or research task supplies the document's GitHub App token for repository tools until their session ends or the server restarts (there is no manual transfer button). Each Planner turn and background worker runs Copilot on the GitHub token—and Copilot seat—of the person who caused it. See Hosted agent for details.

Use your own machine

The chopin CLI connects a computer or VM you control to your Chopin server. Builds, local investigations, and remote Planner sessions then run on your machine for any repository you can push to.

Your machine needs Linux on x86_64 with KVM or MSHV, or Windows 11 26H2 or later. You do not need to install or sign in to a coding agent on the host because chopin isolates every agent, Planner, and build:

Install chopin and connect from any folder, pointing CHOPIN_URL at your server:

curl -fsSL https://github.com/githubnext/chopin/releases/latest/download/install.sh | sh
CHOPIN_URL=https://your-chopin-instance.example chopin connect --agent copilot

On the first run, chopin connect pairs your machine, saves the server URL, and clones repositories on demand when work arrives. Pass --checkout <path> to use an existing local folder instead. By default it runs in your terminal and stops when you close it; add --install-service on a server or VM so it keeps running after you log out.

Pick a built-in coding agent with --agent:

Agent In its microVMs Connect with Tested with Chopin
GitHub Copilot CLI @github/[email protected] --agent copilot Yes
Atomic [email protected], @bastani/[email protected] --agent atomic Yes

For any other agent that speaks the Agent Client Protocol (ACP), pass its command after --, such as chopin connect -- my-agent --acp. If you also use Atomic directly on your own machine, install it with Atomic's standalone installer (curl -fsSL https://raw.githubusercontent.com/bastani-inc/atomic/main/install.sh | sh, or install.ps1 on Windows) and update it with atomic update.

The Machines page (/machines) on your Chopin server generates a ready-to-run install-and-connect command with your server URL filled in. Local computers pair through a browser link; remote servers pair over SSH with a single-use key. See Add a machine and Use your own machine with Chopin for Windows setup, background services, and the full CLI guide.

Current boundaries

  • GitHub.com only. GitHub Enterprise Server is not supported.
  • Repository reads. Under copilot-sdk, the Planner reads the repository's default branch as it stood when the session started, unless a local investigation supplies a specific commit. Code search stays inside that one repository. The Planner sees local files or uncommitted edits only under HARNESS=atomic or a remote Planner on a paired machine.
  • Authentication and access. Every browser user signs in with GitHub, must pass any server allowlist, and needs repository access through the GitHub App installation. Public repositories do not make Chopin documents public. Read access lets you view documents; push or admin access lets you create, edit, and call the Planner. External MCP callers must pass the server allowlist and authorize repositories with their own bearer token without needing an App installation. See Authentication and Repository channels.
  • Data sent to model providers. Document text, Chat messages, and repository excerpts selected by the Planner are sent to the active model provider (GitHub Copilot under copilot-sdk, the HARNESS_AUTH provider under HARNESS=atomic, or the connected client under HARNESS=remote). Background jobs send only the data needed for that job. Public web research sends only your submitted brief, though the search worker may refine queries.
  • Credentials and storage. Hosted GitHub tokens are stored encrypted in PostgreSQL using SESSION_ENCRYPTION_KEY, which stays outside the database. Local device mode stores credentials in your OS keychain or a local file you approve. Documents, Chat history, Decisions, research data, background jobs, and sessions live in PostgreSQL. See Storage and Hosted agent.
  • Helper model and optional features. When AGENT=on, Chopin needs a helper model (OPENAI_API_KEY, JEV_API_KEY, or DECISIONS_MODEL) for Chat turn-taking and Planner reply checks. Automatic Decision cards from Chat and research offers are off by default; set CONVERSATION_PLAN=on to enable them (even if AGENT=off). See Self-hosting.
  • Single active writer. Only one Chopin server process can write to a database at a time, so horizontal scaling is not supported. During a deployment, you can overlap an incoming process with the current one using HANDOVER=wait. See Deploys nobody can see.

Documentation

Using Chopin

Topic Document
Connect your own machine (chopin CLI) Use your own machine with Chopin
CLI file layout, service, and JSON output chopin CLI reference
Capture and settle open decisions Decisions
Automatic participation in Chat Automatic participation
Research offers from Chat Research offers from Chat
Run local codebase investigations & spikes Local investigations
Connect an external coding agent over MCP Connect a local coding agent
Turn plans into tracked builds Implementation lifecycle

Operating and deploying

Topic Document
Deploy and operate a Chopin server Self-hosting
Overlap restarts with zero downtime Deploys nobody can see
Configure GitHub sign-in and access Authentication
Let paired machines push as Chopin's App GitHub App identity

Architecture and reference

Topic Document
System overview and trust boundaries Architecture
Channel identity, HTTP routes, and inbox Repository channels
PostgreSQL persistence and migrations Storage and persistence
Hosted Planner harnesses and AI credentials Hosted agent (Planner)
Remote Planner WebSocket protocol Agent connection
Isolated agent sessions (Linux vs. Windows) Isolated agent sessions
Linux microVM sandboxes and resources Agents in Linux microVMs
Windows isolation sessions and setup Agents in Windows sessions
Planned machine runner roadmap Machine runner design
Durable background jobs and workers Background jobs and workers

Contributing

Topic Document
Repository layout, conventions, and testing Maintainer guide
Design tokens, contrast, and exceptions Working with the design contract
Reusing standalone assistant-ui components Adding an assistant-ui element
Develop on a remote exe.dev VM exe.dev remote development
Test authenticated PR previews PR preview testing
Release the chopin CLI Releasing the chopin CLI

Development

Follow Run locally above to install prerequisites, register a local GitHub App, configure .env, and start PostgreSQL. Then use these verification commands:

bun test                 # unit and in-memory adapter tests
bun run test:postgres    # PostgreSQL storage contract and lifecycle tests
bun run e2e              # browser and system integration suite
bun run design:behavior  # Playwright design behavior and contrast suite
bun run types            # TypeScript checks across the workspace
bun run build            # build web client and chopin connector
bun run ci               # formatting, lint, token, and design-contract checks

Run bun run e2e:browsers once to install Chromium. The browser suite builds the web app and starts temporary PostgreSQL databases and Chopin servers automatically. See AGENTS.md for the full command reference, repository map, testing strategy, and engineering invariants.

Report security issues through SECURITY.md. Participation follows the Code of Conduct, and the source is under the MIT License.

関連プロジェクトを探す

読み込み中…