Skip to content

rasilab/bipartite

 
 

Repository files navigation

bipartite

A platform for orchestrating Claude Code agents across research projects. Bipartite provides a bip CLI and a library of Claude Code skills that coordinate multi-agent workflows: spawning workers on GitHub issues, tracking manuscript progress across repositories, managing paper libraries, and keeping a research team informed via Slack digests.

What Bipartite Does

Agent Orchestration (EPIC workflow)

The core of bipartite is the EPIC orchestration system — a conductor/worker pattern for managing multiple Claude Code sessions across clones and worktrees. The conductor session stays on main, scans GitHub for open issues, and spawns workers in dedicated tmux windows. Workers implement, test, and create PRs autonomously; an issue-lead subagent evaluates progress and escalates only when human judgment is needed.

Key skills: /bip.epic, /bip.epic.spawn, /bip.epic.poll, /bip.epic.handoff, /bip.epic.tuckin

Manuscript Coordination

Manuscript sessions (/bip.ms) monitor tracked EPIC issues in remote code repositories and react when new results arrive — pulling data, importing figures, and drafting text. This separates the "writing the paper" concern from the "running experiments" concern.

Key skills: /bip.ms, /bip.ms.poll, /bip.ms.tuckin

Reference Management

An agent-first reference manager: JSON output, CLI interface, git-backed JSONL storage, Semantic Scholar and Asta search. Your library is mergeable across collaborators with standard git workflows.

Guide: Reference Management

Workflow Coordination

Themed narrative digests, cross-repo check-ins (spawn dedicated tmux windows), Slack integration, and server resource scouting via SSH.

Key skills: /bip.checkin, /bip.digest, /bip.narrative, /bip.spawn, /bip.scout

Installation

Full Installation (recommended)

This installs the bip CLI plus Claude Code agents and skills:

git clone https://github.com/matsen/bipartite
cd bipartite
make install

Prerequisites:

Verify with bip --help.

CLI Only

If you just want the bip CLI without agents/skills:

go install github.com/matsen/bipartite/cmd/bip@latest

Note: This installs to $GOBIN if set, otherwise $HOME/go/bin. Ensure the appropriate directory is in your PATH.

Quick Start

  1. Create your private nexus — the repository that stores your paper library, workflow config, and project context. Click "Use this template" on nexus-template, then clone:
git clone https://github.com/YOUR_USERNAME/nexus ~/re/nexus
  1. Point bip to your nexus (minimal config to get started):
mkdir -p ~/.config/bip
echo 'nexus_path: ~/re/nexus' > ~/.config/bip/config.yml
  1. Build the index and try it out:
bip rebuild
bip search "phylogenetics" --human
bip s2 add DOI:10.1038/s41586-021-03819-2

See the Getting Started guide for full setup instructions.

Configuration

For full functionality, add API keys (Semantic Scholar, Asta, GitHub, Slack) to your config:

nexus_path: ~/re/nexus
s2_api_key: your-key
asta_api_key: your-key
github_token: ghp_...
slack_bot_token: xoxb-...

See the Configuration Guide for all options.

License

MIT

About

Connecting research programs and the outside world

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Go 95.7%
  • Shell 3.9%
  • Other 0.4%