Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
159 commits
Select commit Hold shift + click to select a range
a9c5f41
docs: Lock sloop MVP design and align README/OVERVIEW to lightweight …
tuanngo Jun 26, 2026
a5d2be8
docs: Add Plan 1 core vertical slice implementation plan
tuanngo Jun 26, 2026
6d63236
chore: Remove daemon scaffolding and add sqlite/yaml deps
tuanngo Jun 26, 2026
8f70f7e
chore: Add sqlite and yaml direct dependencies
tuanngo Jun 26, 2026
1050cf8
feat: Add config package with paths and project config
tuanngo Jun 26, 2026
22c9a11
feat: Add SQLite session store for workspaces and history
tuanngo Jun 26, 2026
3a4f9b6
feat: Add workspace resolution by walking up to .sloop
tuanngo Jun 26, 2026
aeb134b
feat: Add declarative YAML adapter with built-in claude manifest
tuanngo Jun 26, 2026
91053d5
feat: Add profile package for launch presets
tuanngo Jun 26, 2026
a900ab9
feat: Add sync package to assemble context and write native files
tuanngo Jun 26, 2026
3c7ceb6
feat: Add exec runner with testable command builder
tuanngo Jun 26, 2026
e2b703b
feat: Add sloop init to scaffold and register a workspace
tuanngo Jun 26, 2026
2dc4630
feat: Add sloop sync to render native context files
tuanngo Jun 26, 2026
1133b78
feat: Add sloop run to sync, record session, and launch the tool
tuanngo Jun 26, 2026
e62ae40
refactor: Drop redundant test glob and emit empty profile slices
tuanngo Jun 26, 2026
37c3a44
chore: Tidy go.mod to mark sqlite and yaml as direct
tuanngo Jun 26, 2026
950817f
docs: Add Plan 2 workflow features implementation plan
tuanngo Jun 26, 2026
80336a3
feat: Add global config with interaction mode
tuanngo Jun 26, 2026
b01069d
feat: Add on-demand tool and tmux detection
tuanngo Jun 26, 2026
5657f4f
feat: Add Cursor built-in adapter and user adapter loading
tuanngo Jun 26, 2026
f65765c
feat: Add tmux runner and attach command
tuanngo Jun 26, 2026
6ce7609
feat: Add mode-aware interaction helper and global flags
tuanngo Jun 26, 2026
fff4528
feat: Add tools and doctor commands
tuanngo Jun 26, 2026
2a1942e
feat: Add sync freshness check and status and ls commands
tuanngo Jun 26, 2026
3c31aec
feat: Add skill new command
tuanngo Jun 26, 2026
1e8794a
feat: Drive init tool enablement from detection
tuanngo Jun 26, 2026
f6368bd
feat: Add workspace flag and tmux launch to run and sync
tuanngo Jun 26, 2026
6161ff9
fix: Honor user adapters in run and sync via adapter.Load
tuanngo Jun 26, 2026
53d5019
docs: List skill command in README
tuanngo Jun 26, 2026
4f757a2
feat: Add Codex, Copilot, Gemini adapters and remove vestigial new co…
tuanngo Jun 26, 2026
89690a6
add backlogs
tuanngo Jun 26, 2026
2ccc279
docs: Add Sync v2 design (AGENTS.md canonical, pointer plus symlink)
tuanngo Jun 26, 2026
0d91804
docs: Add Sync v2 implementation plan
tuanngo Jun 26, 2026
d820c0b
feat: Add v2 context and skills fields to adapter manifests
tuanngo Jun 26, 2026
f274f4d
feat: Add v2 sync delivery (pointer create-if-missing and skills syml…
tuanngo Jun 26, 2026
db04d9f
feat: Rewire init sync run status to v2 delivery
tuanngo Jun 26, 2026
02132a1
refactor: Remove v1 context-copy code and simplify profile
tuanngo Jun 26, 2026
d1354e0
ci: Configure GitHub Actions for test and release
tuanngo Jun 26, 2026
b2783c7
fix: owner
tuanngo Jun 26, 2026
4f7b7f2
feat: Make skills symlinks relative with broken-state and self-heal
tuanngo Jun 26, 2026
3254515
feat: Add sloop sync --all for every enabled tool
tuanngo Jun 26, 2026
3775832
feat: Add sloop sync --repair with non-destructive backup
tuanngo Jun 26, 2026
18eb362
docs: Mark backlog Phase 3.2 superseded by sync v2 hardening
tuanngo Jun 26, 2026
e4f1a08
docs: Add sync v2 hardening design spec and implementation plan
tuanngo Jun 26, 2026
b905ad1
feat: Pass run arguments after -- through to the launched tool
tuanngo Jun 26, 2026
4fa1255
docs: Rewrite README for the Model B sync model
tuanngo Jun 26, 2026
cd70018
docs: Add init --scan design spec and implementation plan
tuanngo Jun 26, 2026
07ec5f5
feat: Add sloop ps fleet view of running AI sessions
tuanngo Jun 26, 2026
13e7b0d
feat: Add sloop run --split for side-by-side tmux panes
tuanngo Jun 26, 2026
949821c
feat: Show each AI session's last output line in sloop ps
tuanngo Jun 26, 2026
6821d1f
docs: Add usage guide and rewrite backlog for the orchestration direc…
tuanngo Jun 26, 2026
cbb9577
docs: Reposition backlog to context portability and cross-repo fleet
tuanngo Jun 26, 2026
387ae7c
feat: Add internal/scan heuristic codebase scanner
tuanngo Jun 26, 2026
49ced73
feat: Add sloop init --scan to pre-fill AGENTS.md from the codebase
tuanngo Jun 26, 2026
74e34ca
docs: Mark init --scan shipped in usage and backlog
tuanngo Jun 26, 2026
acccd6b
feat(cli): add short aliases (a, r, s, st, sk) for frequent commands …
tuanngo Jun 27, 2026
c27b833
feat(cli): add short flags (-s for --scan, -a for --all, -r for --rep…
tuanngo Jun 27, 2026
b282ef8
docs(plans): prioritize remote messaging and precise agent status
tuanngo Jun 27, 2026
a76b302
fix: Link skills on new and rename command to skills
tuanngo Jun 27, 2026
1be172d
feat: Add skills add to import a skill from a URL or GitHub
tuanngo Jun 27, 2026
96043cf
docs: Document skills new/add and the skills registry path
tuanngo Jun 27, 2026
18ee1db
docs(plans): add zero-dependency colored Micro-TUI for ps and ls
tuanngo Jun 27, 2026
8f79fec
feat(cli): add zero-dependency colored Micro-TUI for ps and ls
tuanngo Jun 27, 2026
eb20aa5
docs(plans): mark Micro-TUI shipped and reprioritize next actions
tuanngo Jun 27, 2026
f410a06
feat(cli): classify agent status in ps and add sloop send
tuanngo Jun 27, 2026
907bd86
docs: Document ps agent status and sloop send
tuanngo Jun 27, 2026
1e59d9a
security(core): harden file and directory permissions to 0600/0700
tuanngo Jun 27, 2026
2c43ef2
docs: Note ps menu keys and NO_COLOR support
tuanngo Jun 27, 2026
20964b5
feat(ux): add visible hint for detaching tmux sessions
tuanngo Jun 27, 2026
da5aa8a
feat(ux): make tmux detach hint dynamic based on actual user prefix
tuanngo Jun 27, 2026
507f0e5
feat(cli): add ps --waiting and --watch live fleet monitor
tuanngo Jun 27, 2026
c6ace3a
docs: Document ps --waiting/--watch and update backlog
tuanngo Jun 27, 2026
8fb4096
feat(cli): add dynamic shell completion and free -w for workspace
tuanngo Jun 27, 2026
cf9a2e4
docs: Document shell completion and ps -f follow flag
tuanngo Jun 27, 2026
a67d192
feat(cli): authoritative agent status via Claude hooks and bounded pa…
tuanngo Jun 27, 2026
b948a49
docs: Document sloop hooks install and status precision
tuanngo Jun 27, 2026
feb6398
feat(cli): registry-aware ps --all and multi-provider hooks registry
tuanngo Jun 27, 2026
05d0c8b
docs: Document ps --all and multi-provider hook awareness
tuanngo Jun 27, 2026
e527a2a
refactor(adapter): make hooks manifest-driven, add Gemini auto-instal…
tuanngo Jun 27, 2026
49a84cc
docs: Document provider-aware adapter contract and config layering
tuanngo Jun 27, 2026
3515ca5
feat(cli): deliver pointers on init, --scaffold, richer status, align…
tuanngo Jun 27, 2026
899c93d
docs: Document init delivery/scaffold and annotate dogfood feedback
tuanngo Jun 27, 2026
bd7294b
refactor(tmux): extract internal/tmux package and harden DB with WAL …
tuanngo Jun 27, 2026
d4cb45f
feat(tmux): multiplexer-agnostic backend (tmux/psmux) for Windows + P…
tuanngo Jun 27, 2026
dc1029e
docs: Document psmux/Windows multiplexer support
tuanngo Jun 27, 2026
43b2d4a
feat(hints): contextual education tips, embed-first, i18n en+vi
tuanngo Jun 27, 2026
e9044eb
docs: Document hints system and lang/hints config
tuanngo Jun 27, 2026
76fca14
feat(fleet): ps control center (s/x), sloop kill, send broadcast
tuanngo Jun 27, 2026
9f85927
docs: Document ps actions, kill, and send broadcast
tuanngo Jun 27, 2026
bfa22fa
docs: Rewrite README (problem/install/usage/menu) and rename OVERVIEW…
tuanngo Jun 27, 2026
e596cc1
docs: Add Homebrew install, tmux link, and full command aliases/flags…
tuanngo Jun 27, 2026
22582e8
docs: Apply the rewritten ARCHITECTURE content
tuanngo Jun 27, 2026
2896d81
docs: Note MIT license and add stroops.tech website
tuanngo Jun 27, 2026
4cea3ed
docs: Fix sloops typo to sloop in Homebrew install
tuanngo Jun 27, 2026
f03c708
docs: Add CHANGELOG for v0.0.1
tuanngo Jun 27, 2026
42d3f01
refactor: clean up
tuanngo Jun 27, 2026
aebe33f
refactor: clean up
tuanngo Jun 27, 2026
9b49674
ci: lint
tuanngo Jun 27, 2026
7bb54e8
ci: lint
tuanngo Jun 27, 2026
d65eedb
ci: lint
tuanngo Jun 27, 2026
a5ab512
ci: lint fix
tuanngo Jun 27, 2026
56749b0
Update .golangci.yml
tuanngo Jun 27, 2026
0cb83b7
ci: lint fix
tuanngo Jun 27, 2026
cc8f657
ci: lint fix
tuanngo Jun 27, 2026
444be35
fix lint
tuanngo Jun 27, 2026
a2612e6
fix(adapter): antigravity CLI binary is agy, not antigravity
tuanngo Jun 27, 2026
c74901b
feat(ps): read agent prompts, one-key answers, and sloop approve
tuanngo Jun 27, 2026
181bfd9
docs: Document one-key answers and sloop approve
tuanngo Jun 27, 2026
69e6310
feat(fleet): surface and adopt external tmux sessions
tuanngo Jun 27, 2026
9dec730
docs: Document sloop adopt and external sessions
tuanngo Jun 27, 2026
bed3f35
feat(popup): tmux display-popup fleet HUD + gated e2e test suite
tuanngo Jun 27, 2026
84af031
docs: Document fleet HUD popup and e2e
tuanngo Jun 27, 2026
d79936b
test: consolidate adapter builtin tests (drop redundant adapter_test/…
tuanngo Jun 27, 2026
f062529
feat(init): interactive onboarding — ask scan/scaffold/hooks on a ter…
tuanngo Jun 27, 2026
f2edfa7
docs: Note interactive init onboarding
tuanngo Jun 27, 2026
4b9191b
ci: add Vulnerability scanning - e2e-tests
tuanngo Jun 27, 2026
6b14bbf
ci: add fix e2e
tuanngo Jun 27, 2026
98733a5
feat(statusline): per-session tmux status bar with live agent status
tuanngo Jun 27, 2026
816f5f3
docs: Document the per-session tmux status bar
tuanngo Jun 27, 2026
0ef7b8d
feat(log): debug logging via --debug/SLOOP_DEBUG; route all multiplex…
tuanngo Jun 27, 2026
0ec76ce
refactor: remove dead empty packages; centralize appName/fallbackTool…
tuanngo Jun 27, 2026
d95852f
docs: Document --debug / SLOOP_DEBUG
tuanngo Jun 27, 2026
7fd8469
fix(e2e): remove trailing whitespace for gofmt & add golangci config
tuanngo Jun 27, 2026
4d6a9c9
chore: enable gofmt in golangci-lint
tuanngo Jun 27, 2026
2b131e6
refactor: data-driven status heuristics via adapter manifests
tuanngo Jun 27, 2026
ad1b9a1
fix: remove gofmt from golangci-lint as it is now a formatter
tuanngo Jun 27, 2026
b831033
chore: add gofmt check to make lint and format files
tuanngo Jun 27, 2026
bf4d640
feat(skills): lockfile + `skills update` for reproducible imports
tuanngo Jun 27, 2026
6db3cd9
feat(hooks): cursor status-hook auto-installer + tips
tuanngo Jun 28, 2026
d091689
refactor(hooks): namespace the status callback as `sloop hooks emit`
tuanngo Jun 28, 2026
c415e39
docs: public roadmap + skills/hooks design docs for contributors
tuanngo Jun 28, 2026
dcb930a
chore: drop pre-namespace `sloop hook`; set first release to v0.1.0
tuanngo Jun 28, 2026
9ee6483
docs: `sloop run` design doc (CLI · model · effort resolution)
tuanngo Jun 28, 2026
e9233ee
docs: Organize docs/ by purpose (guide / reference / design)
tuanngo Jun 28, 2026
e308c65
docs: Drop the separate models.yaml from the run design
tuanngo Jun 28, 2026
c09e671
docs: Clarify model knowledge as curated aliases not SQLite
tuanngo Jun 28, 2026
8cdeabe
feat: Add model and effort selection to sloop run
tuanngo Jun 28, 2026
2747027
feat: Make sloop ls jump into work
tuanngo Jun 28, 2026
76740eb
feat: Fill cursor run.model_flag (agent --model)
tuanngo Jun 28, 2026
caca1ff
fix: Make sloop ls launching explicit, not a surprise
tuanngo Jun 28, 2026
5a6918c
feat: Add -t/--task to seed an interactive agent in sloop run
tuanngo Jun 28, 2026
7327662
fix: Report cursor hooks as auto in tools and status
tuanngo Jun 28, 2026
63f4d96
feat: Make sloop ps an interactive loop with a legend
tuanngo Jun 28, 2026
dcba35f
feat: Give sloop ls the same keyed control center as ps
tuanngo Jun 28, 2026
94fa6f8
docs: Clarify restart persistence and plan restore and tmux setup
tuanngo Jun 28, 2026
cff2bb5
feat: Add sloop restore to relaunch your recent fleet after a reboot
tuanngo Jun 28, 2026
ccbc532
feat: Alias sloop popup as hud and mark restore shipped in the roadmap
tuanngo Jun 28, 2026
b2e80d6
feat: Make ps send/kill cancellable and label the fleet columns
tuanngo Jun 28, 2026
7051580
feat: Unify ps and ls views with aligned columns and a workspace agen…
tuanngo Jun 28, 2026
7006baf
feat: Clear-and-notice control center, two-line ls, and pick-to-attach
tuanngo Jun 28, 2026
2ef6645
docs: Show the manual-tmux pain and the sloop before/after in the README
tuanngo Jun 28, 2026
eb350a0
feat: Make the attach picker match the ps fleet view
tuanngo Jun 28, 2026
66f0151
docs: Clarify hooks as status hooks and fix the emit command references
tuanngo Jun 28, 2026
e2a2c79
feat: Add a persistent detach tip, hook alias, and a daily-use README…
tuanngo Jun 28, 2026
87adb9f
feat: Let SLOOP_STATUSLINE=0 keep a custom tmux status bar intact
tuanngo Jun 28, 2026
d8db64b
fix: Print the tmux statusline to stdout so the status bar shows it
tuanngo Jun 28, 2026
b0b59ab
feat: Show a detach hint in the ps control center
tuanngo Jun 28, 2026
ae2659c
docs: Flesh out the v0.1.0 changelog with the full fleet surface
tuanngo Jun 28, 2026
8ca7bc8
chore: Merge origin/main into the release branch, keeping branch cont…
tuanngo Jun 28, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added .codex/skills/.gitkeep
Empty file.
Empty file added .cursor/rules/.gitkeep
Empty file.
1 change: 1 addition & 0 deletions .sloop/config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
version: 1
tools:
- agy
- claude
- codex
- cursor
Expand Down
4 changes: 2 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ design: **all per-provider knowledge lives in the adapter manifest** (`internal/
Detect, launch, context delivery, skills, hooks, and completion are all manifest-driven. To support a
new CLI, drop in one `<tool>.yaml` — no Go changes unless it needs a brand-new mechanism.

- Provider contract + manifest schema: `docs/ADAPTERS.md`
- Config layering (unified user config vs per-provider manifests): `docs/CONFIG.md`
- Provider contract + manifest schema: `docs/reference/ADAPTERS.md`
- Config layering (unified user config vs per-provider manifests): `docs/reference/CONFIG.md`
- Runtime capability matrix: `sloop tools`

User config is **unified** (one local `.sloop/config.yaml` + one global `~/.sloop/config.yaml` +
Expand Down
49 changes: 39 additions & 10 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
All notable changes to Sloop are documented here. This project adheres to
[Semantic Versioning](https://semver.org/).

## v0.0.1 — first release
## v0.1.0 — first release

The initial public release: the local-first control layer for your AI coding CLIs.

Expand All @@ -16,27 +16,56 @@ The initial public release: the local-first control layer for your AI coding CLI
pre-fills `AGENTS.md` from the codebase (offline, no LLM); `--scaffold` creates each
tool's standard folders.

### Launch
- `sloop run` syncs context, then launches in a managed session. The target can be a
tool (`claude`), its binary (`agent` → cursor), or a model alias (`opus` → its vendor's
home CLI). Flags: `-m/--model`, `-e/--effort` (low|medium|high), `-p/--provider`, and
`-t/--task` to hand the agent an initial task (interactive session already working on it,
visible in `sloop ps`). The model is forwarded to the CLI as-is, never validated.
`--split` runs several tools side by side; `-w` targets a registered workspace.

### Cross-repo fleet
- `sloop ps` — every running agent across all your repos; agents waiting on you float
to the top. `--watch` live-monitors and alerts (terminal bell + desktop notify);
`--waiting`, `--all`, and `ps <#>` to jump.
- Interactive control center: jump, send a reply, or kill the highlighted session in place.
- `sloop send` (`--waiting`/`--all` broadcast), `sloop kill`, `sloop attach`,
`sloop run --split`.
- `sloop ps` — every running agent across all your repos; agents waiting on you float to
the top. It reads each waiting agent's own prompt and shows the answer keys, so you can
reply in one keystroke. `--watch` live-monitors and alerts (terminal bell + desktop
notify); `--waiting`, `--all`, and `ps <#>` to jump.
- Interactive control center: arrow-key nav, `Enter` to attach, one key to answer a waiting
agent (`y`/`n`/`1`…), `s` to send a line, `x` to kill — all in place, and Esc/Ctrl-C cancel
back to the fleet (never drops you to a shell). Provider display names, status colors, and
column headers; the screen redraws cleanly with an action notice.
- `sloop approve` — send the affirmative answer to waiting agent(s) in one command
(`--waiting`/`--all`).
- `sloop ls` — registered workspaces with their live agents (colored by status, the same
language as `ps`); `Enter` attaches, `r` launches the default tool, `s` opens a shell, `c`
copies a `cd`.
- `sloop attach` (`a`) — by session name, or with no argument a fleet picker that matches
the `ps` view. `sloop adopt` brings an external tmux session into the fleet.
- `sloop restore` — relaunch the agents you were recently running after a reboot / tmux
restart, each detached; `--resume` continues each tool's prior conversation where supported.
- `sloop popup` / `sloop hud` — the fleet as a floating tmux popup (HUD); `popup setup` binds
a key (needs tmux ≥ 3.2).
- Per-session status bar (`sloop statusline`) shows live `⚓ repo tool ◆ waiting` plus a
persistent detach tip using your real tmux prefix; set only per session (never touches
`~/.tmux.conf`), and `SLOOP_STATUSLINE=0` leaves a custom bar untouched.
- `sloop send` (`--waiting`/`--all` broadcast), `sloop kill`, `sloop run --split`.

### Provider-aware
- Tools are declarative adapter manifests (detect/launch/context/skills/hooks/scaffold);
adding a CLI is adding a file. Built-ins: Claude, Cursor, Codex, Copilot, Gemini,
Antigravity. `sloop tools` shows the capability matrix.
- `sloop hooks` wires each tool's own hooks for authoritative status (Claude & Gemini
auto-install; others print-and-paste).
- `sloop skills new` / `add` — reusable skills shared across every tool.
- `sloop hooks` wires each tool's own **status** hooks for authoritative `sloop ps` state
(Claude, Gemini & Cursor auto-install; others print-and-paste). The reserved callback is
`sloop hooks emit <state>`, keeping the namespace clear for the v0.2.0 workflow-hook library.
- `sloop skills new` / `add` — reusable skills shared across every tool. `.sloop/skills.lock`
records imported skills + source so `sloop skills update` re-fetches reproducibly.

### Cross-platform & DX
- Multiplexer-agnostic: tmux on macOS/Linux, **psmux** on native Windows (`SLOOP_MUX`
to override).
- Contextual education hints (English + Vietnamese); `sloop hints on|off`.
- Dynamic shell completion; local SQLite registry + history (WAL + migrations).
- `--debug` (or `SLOOP_DEBUG=1`) logs diagnostics via `log/slog` to stderr, including every
multiplexer call sloop makes.

### Foundation
- Single CGO-free Go binary, no daemon, no cloud.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ vet:
go vet ./...

lint:
@if [ -n "$$(gofmt -l .)" ]; then \
echo "Some files are not formatted correctly. Please run 'make fmt'"; \
gofmt -l .; \
exit 1; \
fi
golangci-lint run ./...

sec:
Expand Down
76 changes: 65 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
> **The local-first control layer for your AI coding CLIs.**
> One canonical context for every tool, and one cross-repo view of every agent you're running.

[Documentation](docs/USAGE.md)
[Documentation](docs/guide/USAGE.md)

Sloop is a single, lightweight Go binary that sits **above** your AI coding tools — Claude Code,
Cursor CLI, Codex CLI, GitHub Copilot CLI, Gemini CLI, Google Antigravity, and future agents. It
Expand All @@ -23,6 +23,25 @@ Running AI coding agents is powerful but quickly gets messy:
- **Per-tool knobs everywhere** — skills, hooks, and standard folders differ per provider, so setup is
ad-hoc and hard to share with a team.

Concretely, running two AI CLIs (say Claude and Cursor's `agent`) in one project today means juggling
tmux by hand:

```
# The manual way — fiddly and easy to mix up
Terminal 1 → tmux new -s claude_api → cd ~/code/api → claude
Terminal 2 → tmux new -s cursor_api → cd ~/code/api → agent
# …now switch between them yourself, and remember which window is which,
# across every repo, while CLAUDE.md and AGENTS.md drift apart.
```

```
# With sloop — named sessions per workspace+tool, one fleet view, one context
cd ~/code/api
sloop run claude # session api__claude, sees AGENTS.md
sloop run cursor # session api__cursor, same context
sloop ps # one board: who's waiting, who's working — jump/reply/kill in place
```

Sloop fixes these with three ideas:

1. **Portable context** — write guidance once in `AGENTS.md`; every tool reads it (natively, or via a
Expand Down Expand Up @@ -94,6 +113,31 @@ In the `sloop ps` menu: `↑/↓` move · `Enter` jump in · `s` reply · `x` ki

---

## Daily use — `sloop ps` is home base

Most days you live in **one screen**:

1. **`sloop ps`** — the fleet board. Agents *waiting on you* float to the top, colored by status.
2. **`Enter`** on a row jumps you straight into that agent (attaches its tmux session).
3. Work with the agent. To step out, **detach**: press your tmux prefix then `d` — `Ctrl+b d` by
default, or `Ctrl+a d` if you remapped it. The agent **keeps running**; you land back at the fleet.
4. Back in `sloop ps`, triage without attaching: answer a waiting agent in one key (`y` / `1` …),
`s` to send a line, `x` to kill, or `Enter` into the next one.

You never lose an agent — detaching hides it, it doesn't stop it. Every sloop session's status bar
shows **`⚓ detach: <prefix> d`** so you always know how to get back, and `sloop ps` is one keystroke
away. Rebooted? **`sloop restore`** relaunches the fleet. No name to type? **`sloop a`** opens the same
picker.

> The status bar is set **per session** (`set-option -t`) — sloop never edits your `~/.tmux.conf`, and
> only touches `status-left`/`status-right` (not your colors/theme). Keep your own bar fully intact with
> `SLOOP_STATUSLINE=0`.

`sloop ls` is the companion view — your registered **workspaces** (running or not) with their live
agents — to launch (`r`), open a shell (`s`), `c` to copy a `cd`, or `Enter` to jump in.

---

## Commands (the menu)

`alias` = command shortcut · `-x` = short flag.
Expand All @@ -108,9 +152,10 @@ In the `sloop ps` menu: `↑/↓` move · `Enter` jump in · `s` reply · `x` ki
| `send <target> <msg>` | — | `--waiting`, `--all`, `--yes` | Reply to a running agent without attaching; `--waiting`/`--all` broadcast. |
| `kill <target>` | — | `--all`, `--waiting`, `--yes` | End session(s) — confirms (skip with `--yes` or global `-y`). |
| `adopt <tmux-session>` | — | `-w/--workspace`, `--as` | Bring an external tmux session (one you started yourself) into the fleet. |
| `popup` / `popup setup` | — | `--key` | Open the fleet `ps` as a floating tmux popup (HUD); `setup` binds a key. Needs tmux ≥ 3.2. |
| `restore` | — | `--resume`, `--yes` | Relaunch your recent agents (detached) after a reboot / tmux restart. `--resume` continues each tool's prior conversation. |
| `popup` / `popup setup` | `hud` | `--key` | Open the fleet `ps` as a floating tmux popup / HUD; `setup` binds a key. Needs tmux ≥ 3.2. |
| `statusline setup` | — | — | Show a session's live status (`⚓ repo tool ◆ waiting`) in its tmux status bar. |
| `attach <session>` | `a` | — | Attach to a session by full name. |
| `attach [session]` | `a` | — | Attach to a session by name, or `sloop a` (no name) to pick from the fleet. |
| `skills new\|add <…>` | `sk`, `skill` | `new`→`n`, `add`→`import` | Scaffold or import a reusable skill (shared across every tool). |
| `hooks install\|list\|print [tool]` | — | — | Wire a tool's own hooks so `ps` status is authoritative. |
| `tools` | — | — | Capability matrix (context / skills / hooks per tool). |
Expand All @@ -123,7 +168,7 @@ In the `sloop ps` menu: `↑/↓` move · `Enter` jump in · `s` reply · `x` ki
**Global flags** (any command): `-y/--auto` (assume yes), `--no-color`, `--no-input`, `--config <file>`,
`--debug` (log diagnostics to stderr; or set `SLOOP_DEBUG=1` — shows every multiplexer call sloop makes).

Full, example-driven walkthrough: **[docs/USAGE.md](docs/USAGE.md)**.
Full, example-driven walkthrough: **[docs/guide/USAGE.md](docs/guide/USAGE.md)**.

---

Expand All @@ -137,7 +182,7 @@ skills dir. Delivery is **create-if-missing** — sloop never overwrites a file
Launch happens in a tmux/psmux session named `<workspace>__<tool>`, which is what makes the fleet
view, `send`, and `attach` possible.

Architecture & internals: **[docs/ARCHITECTURE.md](docs/ARCHITECTURE.md)**.
Architecture & internals: **[docs/reference/ARCHITECTURE.md](docs/reference/ARCHITECTURE.md)**.

---

Expand All @@ -157,15 +202,20 @@ Architecture & internals: **[docs/ARCHITECTURE.md](docs/ARCHITECTURE.md)**.

Machine-local state lives under `~/.sloop/`: the workspaces registry + session history (`sloop.db`,
SQLite with WAL), hook status markers (`state/`), and any user adapter manifests (`adapters/*.yaml`).
Config layering is documented in **[docs/CONFIG.md](docs/CONFIG.md)**.
Config layering is documented in **[docs/reference/CONFIG.md](docs/reference/CONFIG.md)**.

**Across restarts.** tmux sessions live in memory, so a reboot ends them (sloop is not tmux-resurrect).
What sloop keeps is the **registry**: after a restart your workspaces and recent sessions are still
there, so `sloop ls` / `sloop ps --all` show them and `sloop run -w <name>` relaunches from anywhere.
The agent's own conversation is the provider's to resume (e.g. `claude` continues a prior session).

---

## Provider-aware adapters

Every tool is a declarative YAML manifest — adding a CLI is adding a file, never editing Go. Built-ins
are embedded; user adapters/overrides live in `~/.sloop/adapters/*.yaml`. `sloop tools` shows the
capability matrix. See **[docs/ADAPTERS.md](docs/ADAPTERS.md)** for the contract.
capability matrix. See **[docs/reference/ADAPTERS.md](docs/reference/ADAPTERS.md)** for the contract.

```yaml
name: Claude Code
Expand All @@ -192,10 +242,14 @@ hooks: # status hooks for `sloop ps`

## Docs

- [docs/USAGE.md](docs/USAGE.md) — hands-on guide, every command with examples
- [docs/CONFIG.md](docs/CONFIG.md) — the three config layers (local / global / built-in)
- [docs/ADAPTERS.md](docs/ADAPTERS.md) — the provider-aware adapter contract
- [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md) — packages, data flow, internals
- [ROADMAP.md](ROADMAP.md) — pillars, what's next (v0.2.0 workflow hooks), how to contribute
- [docs/guide/USAGE.md](docs/guide/USAGE.md) — hands-on guide, every command with examples
- [docs/reference/CONFIG.md](docs/reference/CONFIG.md) — the three config layers (local / global / built-in)
- [docs/reference/ADAPTERS.md](docs/reference/ADAPTERS.md) — the provider-aware adapter contract
- [docs/design/run.md](docs/design/run.md) — `sloop run` design: CLI · model · effort resolution
- [docs/design/skills.md](docs/design/skills.md) — skills model, lockfile, registry roadmap
- [docs/design/hooks.md](docs/design/hooks.md) — status hooks today, workflow-hook design for v0.2.0
- [docs/reference/ARCHITECTURE.md](docs/reference/ARCHITECTURE.md) — packages, data flow, internals

## License

Expand Down
70 changes: 70 additions & 0 deletions ROADMAP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# Sloop Roadmap

Sloop is the **local-first layer that makes your project context portable across AI CLIs and gives
you a cross-repo view of all your agents.** It sits *above* your AI coding tools and complements them
— one canonical context, one fleet view, every tool.

This file is the public, contributor-facing roadmap. It links out to a design doc per pillar so a
contribution starts from a clear contract. For the shipped detail of each release, see
[CHANGELOG.md](CHANGELOG.md).

## Principles (what keeps sloop sloop)

- **Provider-respecting.** Never intercept or inject into an AI tool. Use the tool's *own* hook
mechanism or non-invasive local signals only.
- **Provider-aware by construction.** All per-provider knowledge lives in one adapter manifest; no
feature hardcodes a tool name. See [docs/reference/ADAPTERS.md](docs/reference/ADAPTERS.md).
- **One lightweight binary.** CGO-free Go, no daemon, no bundled LLM. Add capability when the first
real feature needs it — never a standalone "foundation" ahead of a consumer.
- **Local-first & portable.** Author context/skills once; every tool and every repo sees them.

## Pillars

| Pillar | What it is | Design doc | Status |
|---|---|---|---|
| **Launch (`run`)** | one friendly target → the right CLI, model and effort, in a managed session | [docs/design/run.md](docs/design/run.md) | tool · model · effort shipped (Phase 1–2) |
| **Portable context** | `AGENTS.md` canonical; pointer files + skills delivered to every tool | [docs/reference/ADAPTERS.md](docs/reference/ADAPTERS.md) | shipped (v0.1.0) |
| **Skills** | reusable prompts/workflows shared across tools *and* sources | [docs/design/skills.md](docs/design/skills.md) | shipping incrementally |
| **Cross-repo fleet** | every running agent across all repos; triage who needs you | [docs/guide/USAGE.md](docs/guide/USAGE.md) | shipped (v0.1.0) |
| **Hooks** | precise agent status today; a portable workflow-hook library next | [docs/design/hooks.md](docs/design/hooks.md) | status hooks shipped; workflow hooks → v0.2.0 |

## Now (v0.1.x — validating the wedge)

- Dogfood `sloop ps` across repos: does the cross-repo view triage "which agent needs me" better than
single-project tools and raw tmux?
- **Skills:** lockfile (`.sloop/skills.lock`) + `skills update` for reproducible team skills. *(shipped)*
- **Hooks (status):** auto-installers per provider — claude, gemini, cursor done; copilot/codex need a
matcher-aware model (see the hooks doc).
- **`sloop restore`** _(shipped)_ — relaunch the recent agents that aren't currently running, each in a
detached session, so the whole fleet comes back after a reboot / tmux restart. Picks the most recent
session per (workspace, tool) from the registry, skips any already live, and with `--resume` passes
each provider's resume flag (e.g. claude `--continue`) to continue the conversation. *Auto*-restore on
boot would need a shell-init hook (no daemon), so this first cut stays a manual command.
- **`sloop tmux setup`** _(planned)_ — opt-in, append a managed/idempotent block to `~/.tmux.conf` for
the bits that need to survive a tmux restart (popup keybind, optional global status line). Default
stays per-session and non-invasive; this is **not** folded into `hooks` (which is AI-provider status).

## Next (v0.2.0 — workflow hooks)

The big one. Today's hooks only report status *to sloop*. v0.2.0 turns hooks into a **portable
workflow-automation library**: pick a hook (format-on-edit, commit-policy, shell-guard, prompt-rule),
and sloop installs it into the right tool's own hook config — author once, run across tools and repos.
This is a large, security-sensitive surface, so it is **designed before it is built**. Full proposal,
categories, project/user levels, cross-tool mapping, and the trust model are in
**[docs/design/hooks.md](docs/design/hooks.md)**.

## Later / parked

- Skills registry (`skills search`/`add <name>` from a curated index) — after the lockfile proves out.
- `init --scan` LLM enrichment — only once a minimal LLM client exists for a real consumer.
- Windows multiplexer verification (psmux); 2nd-brain / RAG bridge.

## Contributing

The lowest-barrier, highest-leverage contributions are **data, not code**:

- **Add an AI tool:** drop one `internal/adapter/builtin/<tool>.yaml` — see
[docs/reference/ADAPTERS.md](docs/reference/ADAPTERS.md). No Go changes unless the tool needs a brand-new mechanism.
- **Share a skill:** see [docs/design/skills.md](docs/design/skills.md).
- **Propose a workflow hook:** see the open questions in [docs/design/hooks.md](docs/design/hooks.md) — feedback on
the model is wanted *before* the v0.2.0 build.
29 changes: 29 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Sloop docs

Documentation is organized by **purpose**, so it stays navigable as it grows:

| Folder | Purpose | Audience |
|---|---|---|
| **[guide/](guide/)** | how-to, hands-on usage | users |
| **[reference/](reference/)** | how the system *is* — stable contracts & internals | users + contributors |
| **[design/](design/)** | how a feature *should be* — proposals, evolving | contributors |
| `local/` | private working notes (gitignored) | maintainers |

## guide/
- [USAGE.md](guide/USAGE.md) — every command, with examples

## reference/
- [ARCHITECTURE.md](reference/ARCHITECTURE.md) — packages, data flow, internals
- [ADAPTERS.md](reference/ADAPTERS.md) — the provider-aware adapter manifest contract
- [CONFIG.md](reference/CONFIG.md) — the config layers (local / global / built-in)

## design/
- [run.md](design/run.md) — `sloop run`: CLI · model · effort resolution
- [hooks.md](design/hooks.md) — status hooks today, workflow hooks (v0.2.0)
- [skills.md](design/skills.md) — skills model, lockfile, registry roadmap

> Project direction lives in [../ROADMAP.md](../ROADMAP.md); shipped changes in
> [../CHANGELOG.md](../CHANGELOG.md).

**Adding a doc:** put it in the folder matching its purpose (a new feature design → `design/`; a new
stable contract → `reference/`) and link it here.
Loading
Loading