Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ npm install -g @supermodeltools/cli

**1. Map your codebase**
```bash
supermodel watch
supermodel
```
Uploads your repo to the Supermodel API, builds a full call graph, and writes `.graph` shard files next to every source file. Stays running to keep files updated as you code.

Expand All @@ -43,12 +43,12 @@ Your agent now has full visibility into your call graph, imports, domains, and b

| Agent | Setup |
|---|---|
| **Claude Code** | Run `supermodel watch`; install the hook for live updates (setup wizard handles this) |
| **Cursor** | Run `supermodel watch`; `.graph` files appear in context when you open any source file |
| **GitHub Copilot** | Run `supermodel watch`; open `.graph` files in the editor to include them in context |
| **Claude Code** | Run `supermodel`; install the hook for live updates (setup wizard handles this) |
| **Cursor** | Run `supermodel`; `.graph` files appear in context when you open any source file |
| **GitHub Copilot** | Run `supermodel`; open `.graph` files in the editor to include them in context |
| **Windsurf** | Same as Cursor |
| **Aider** | Run `supermodel watch`, then pass `--read '**/*.graph.*'` to include all graph files |
| **Any other agent** | Run `supermodel watch` — if it can read files, it can read `.graph` files |
| **Aider** | Run `supermodel`, then pass `--read '**/*.graph.*'` to include all graph files |
| **Any other agent** | Run `supermodel` — if it can read files, it can read `.graph` files |

For live updates in Claude Code, add this hook to `.claude/settings.json`:

Expand Down Expand Up @@ -98,7 +98,7 @@ go build -o supermodel .
```bash
supermodel setup # authenticate + configure (runs automatically after install)
cd your/repo
supermodel watch # generate graph files and keep them updated
supermodel # generate graph files and keep them updated
```

---
Expand Down
4 changes: 2 additions & 2 deletions internal/setup/wizard.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func Run(ctx context.Context, cfg *config.Config) error {
fmt.Printf(" %s}%s\n", dim, reset)
fmt.Println()
fmt.Printf(" %sOther agents (Cursor, Copilot, Windsurf, Aider) read .graph%s\n", dWhite, reset)
fmt.Printf(" %sfiles directly — no hook needed, just run `supermodel watch`.%s\n", dWhite, reset)
fmt.Printf(" %sfiles directly — no hook needed, just run `supermodel`.%s\n", dWhite, reset)
}
fmt.Println()

Expand Down Expand Up @@ -191,7 +191,7 @@ func Run(ctx context.Context, cfg *config.Config) error {
fmt.Printf(" %sgrep and cat — no extra steps needed.%s\n", dWhite, reset)
fmt.Println()
fmt.Printf(" %sPress %sCtrl+C%s%s to stop.%s\n", dWhite, bWhite, reset, dWhite, reset)
fmt.Printf(" %sRun %ssupermodel watch%s%s to restart at any time.%s\n", dWhite, bWhite, reset, dWhite, reset)
fmt.Printf(" %sRun %ssupermodel%s%s to restart at any time.%s\n", dWhite, bWhite, reset, dWhite, reset)
fmt.Println()

return shards.Watch(ctx, cfg, repoDir, shards.WatchOptions{})
Expand Down
Loading