phase-hive โ Team research layer¶
Hive is the team-level counterpart to flowie. Where flowie is the personal research OS (private, per-researcher), Hive is the shared lab OS (visible to all team members).
Privacy rule (enforced absolutely): Nothing from a personal .neuroflow/ project is ever automatically sent to Hive. Every share is an explicit, intentional action. The Hive is a shared workspace, not a surveillance layer.
Hive repo structure (GitHub org private repo)¶
{org}/{hive-repo}/
โโโ hive.md โ team identity, norms, and active research directions
โโโ members.md โ team roster: name, email, github, role
โโโ ideas.md โ cross-project team hypotheses and open questions
โโโ sync.json โ sync metadata: last pull per member, last push timestamps
โโโ projects/ โ lab project registry (same structure as flowie/projects/)
โ โโโ projects.json
โ โโโ {id}.md
โโโ tasks/ โ team Kanban board (same structure as project tasks)
โ โโโ inbox/
โ โโโ ready/
โ โโโ active/
โ โโโ review/
โ โโโ meeting/
โ โโโ done/
โ โโโ archive/
โโโ meetings/ โ team meeting files (created by /meeting --level hive)
โ โโโ config.json
โโโ wiki/ โ team knowledge base (same structure as flowie wiki)
โโโ index.md
โโโ log.md
โโโ schema.md
โโโ raw/
โโโ pages/
File formats¶
hive.md โ team identity, norms, and directions (replaces old hive.md + directions.md):
# {Team name}
{Team description โ what the lab studies, approach, values}
## Norms
{collaboration norms, code standards, data policies}
## Active research directions
{Directions as bullet list or ## subsections โ maintained by PI/leads}
members.md โ team roster with contacts for meeting invitations:
# Team Members
| name | email | github | role |
|------|-------|--------|------|
| {name} | {email} | {handle} | {PI/researcher/student} |
ideas.md โ lab-wide cross-project hypotheses (analogous to flowie/ideas.md but team-level):
# Team Ideas
Open hypotheses, cross-project questions, and speculative directions the lab is exploring.
---
projects/projects.json โ machine index of all lab projects (same schema as flowie projects):
Local hive cache (global, per-user)¶
Hive data is cached at the user level โ not inside any project repo.
~/.neuroflow/hives/{org-repo}/
โโโ hive.md โ local copy of team identity + directions
โโโ members.md โ local copy of team roster
โโโ ideas.md โ local copy of team ideas
โโโ sync.json โ hive_repo URL, last_pull, last_push, member_handle
One cache folder per hive the user belongs to. Created by /hive --init. Never committed to any project repo.
Command modes¶
--init¶
Connect the current neuroflow project to a Hive repo for the first time.
-
Check flowie profile first: if
If the user picks one, pre-fill the org/repo. Otherwise ask freeform.~/.neuroflow/flowie/profile.mdexists and contains ahives:list, show it as a picker before asking freeform: -
Ask for the GitHub org and repo name:
{org}/{hive-repo} - Ask for the researcher's GitHub handle (used as
member_handlein sync.json) - Check if the hive repo already exists (via
ghCLI or GitHub API)
If joining an existing hive repo:
- Clone or fetch to read hive.md, members.md, and sync.json
- Create ~/.neuroflow/hives/{org-repo}/ with local copies + initial sync.json
- Update .neuroflow/flow.md + project_config.md
- Show team identity from hive.md and members from members.md
If creating a new hive repo:
- Scaffold full structure (all folders and files from the structure above)
- Ask: "Team name and description?"
- Ask: "Active research directions? (one per line)" โ write to ## Active research directions in hive.md
- Ask: "Add team members? (name, email, GitHub handle, role โ one per line, Enter to skip)" โ write to members.md
- Push to GitHub: gh repo create {org}/{hive-repo} --private
--sync¶
Pull latest state and show a digest of what changed since last pull.
- Record current state:
git -C (local hive cache) log --onelineor note last_pull timestamp - Fetch
hive.md,members.md,ideas.md, andsync.jsonfrom hive repo - Update local
~/.neuroflow/hives/{org-repo}/copies - Update
sync.jsonwithlast_pull: [timestamp] - Digest: compare old and new versions and print a structured change summary:
Hive sync โ 2026-04-20 10:00 โโโโโโโโโโโโโโโโโโโโโโโโโโโโโ directions: 1 new (Alpha modulation โ fMRI feasibility) members: no changes ideas: 2 new entries wiki: 3 pages updated, 1 new (method: ICA pipeline) tasks: 2 new in inbox, 1 moved โ done โโโโโโโโโโโโโโโโโโโโโโโโโโโโโ - If any new directions overlap with the current project's modality or research question, highlight them: "New team direction may be relevant: {direction}"
--view¶
Display current local Hive state without syncing.
- Read
~/.neuroflow/hives/{org-repo}/hive.mdandmembers.md - Read
sync.jsonfor last sync timestamp - Print team identity, directions, member count, last sync
- Print:
"Run /hive --sync to fetch the latest updates."
--members¶
View and edit the team roster.
- Read
members.mdfrom hive repo (pull first) - Display the members table
- Options: add member, remove member, update role/email
- Write updated
members.md, push to hive repo
--projects¶
View and manage the lab project registry (analogous to /flowie --projects).
- Pull
projects/projects.jsonfrom hive repo - Display all lab projects as ASCII phase timeline (same format as flowie projects)
- Sub-flags:
--projects --addto register a new lab project (asks id, description, repos, current phase, status) - Push changes to hive repo
--ideas¶
View and append to lab-wide cross-project ideas.
- Pull
ideas.mdfrom hive repo - Display current ideas
- Ask: "Add a new idea?" โ if yes, append to
ideas.md, push - Also triggered from wiki ingest when synthesis spans multiple projects
--tasks¶
Read and manage the team Kanban board at {hive-repo}/tasks/. Same ASCII box rendering rules as /flowie --tasks --level hive. Tasks get level: hive and responsible: @name in frontmatter. Pull first, push after writes. Supports --tasks, --tasks --list, --tasks --add, --tasks --move, --tasks --done.
--recommend¶
Get team-aware recommendations for the current project phase.
- Read local
hive.md(directions section) andmembers.md - Read current project's
project_config.md - Check
wiki/for relevant methods and synthesis pages (search index.md) - Surface:
- Team directions overlapping this project's modality or research question
- Methods from hive wiki relevant to the current phase
- Ideas from
ideas.mdthat connect to this project - Present as compact digest: "Your team has N relevant items for your current phase"
--wiki, --wiki-ingest, --wiki-query, --wiki-lint, --wiki-add, --wiki-schema¶
Operate on the hive-level team wiki at {hive-repo}/wiki/. Load neuroflow:wiki skill with level: hive. Same modes as /flowie --wiki-* but all git operations target the hive repo. This replaces the old shared/ folder โ use --wiki-ingest to contribute findings, methods, and literature to the team knowledge base.
Collaborator join flow¶
When a new team member joins a project that already has neuroflow set up, they follow this sequence:
- Clone the project repo โ
.neuroflow/is present (tasks/, notes/, project_config.md are all git-tracked) - Run
/neuroflowโ detects existing.neuroflow/project_config.md, shows current state, prompts for their own name and flowie setup - Run
/flowieโ set up or link their own private flowie profile; clones to~/.neuroflow/flowie/(each collaborator has a separate privateflowierepo, never inside the project) - Run
/hive --syncโ pull team directions, member list, and shared content; cached to~/.neuroflow/hives/{org-repo}/
What is shared vs. private:
| Path | Shared in project repo? |
|---|---|
.neuroflow/project_config.md |
Yes โ shared context for all |
.neuroflow/tasks/ |
Yes โ shared project Kanban |
.neuroflow/notes/ |
Yes โ shared meeting notes |
.neuroflow/sessions/ |
No โ gitignored (personal logs) |
~/.neuroflow/flowie/ |
No โ global per-user, never in project |
~/.neuroflow/hives/{org-repo}/ |
No โ global per-user cache, never in project |
Privacy and data governance¶
| What | Shared to Hive? |
|---|---|
| Research question | Never automatically โ only if user explicitly runs --share |
| Session logs | Never |
| Raw data paths or outputs | Never |
| Analysis results | Never automatically โ only with --share |
| Personal project_config.md fields | Never |
Something the user explicitly approves via --share |
Yes, after confirmation |
The Hive is pull-first: the researcher benefits from team knowledge without being required to share anything back.
Authentication¶
Hive uses the same GitHub credentials as the user's local git config. The gh CLI (GitHub CLI) is preferred for push operations โ check with gh auth status. If not available, fall back to constructing GitHub API calls with a PAT (personal access token) that the user provides.
Authentication instructions:
Relevant skills¶
neuroflow:neuroflow-coreโ read first; defines the command lifecycle and.neuroflow/write rulesneuroflow:phase-flowieโ the personal-project counterpart to Hive; understand flowie before implementing Hive to avoid overlap