Skip to content

Commit 3ba427e

Browse files
authored
Merge pull request #286 from shelltime/docs/polish-wording
docs: polish CLI documentation wording and fix stale references
2 parents 395de1a + 22eb91f commit 3ba427e

6 files changed

Lines changed: 46 additions & 47 deletions

File tree

.goreleaser.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,14 @@ release:
105105
mode: replace
106106
header: |
107107
## shelltime.xyz CLI ({{ .Date }})
108-
Welcome to this new release!
109-
please install the latest cli by run command
108+
Welcome to the latest release! Install or upgrade the CLI by running:
110109
```bash
111-
curl -sSL https://raw.githubusercontent.com/shelltime/installation/master/install.bash | bash
110+
curl -sSL https://shelltime.xyz/i | bash
112111
```
113112
footer: |
114113
## Thanks!
115114
116-
Those were the changes on {{ .Tag }}!
115+
That's everything in {{ .Tag }} — thanks for using ShellTime!
117116
name_template: "v{{.Version}}"
118117
disable: false
119118
skip_upload: false
@@ -158,12 +157,12 @@ brews:
158157
test: |
159158
system "#{bin}/shelltime", "--version"
160159
caveats: |
161-
To get started with ShellTime, run:
160+
Get started with a single command:
162161
shelltime init
163162
164-
Or set up manually:
163+
Or set things up manually:
165164
shelltime auth
166165
shelltime hooks install
167166
shelltime daemon install
168167
169-
For more info, visit https://shelltime.xyz
168+
Learn more at https://shelltime.xyz

AGENTS.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Repository Guidelines
22

33
## Project Identity
4-
This repo is the ShellTime CLI and daemon. Public-facing docs, command examples, and product references should use `ShellTime` and `shelltime.xyz`.
4+
This repo is the ShellTime CLI and daemon. Use `ShellTime` and `shelltime.xyz` in public-facing docs, command examples, and product references.
55

6-
Code and imports currently use the module path `github.com/malamtime/cli`. Do not "fix" ShellTime branding in docs just because the module path says `malamtime`; the mismatch is intentional in the current repo state.
6+
Code and imports use the module path `github.com/malamtime/cli`. This mismatch is intentional — don't "fix" the ShellTime branding in docs just because the module path says `malamtime`.
77

88
## Project Structure & Package Boundaries
99
This is a Go monorepo for the ShellTime CLI and daemon.
@@ -50,7 +50,7 @@ Use standard Go conventions and keep code `gofmt`-clean.
5050
- Ensure `go test -timeout 3m -coverprofile=coverage.txt -covermode=atomic ./...` passes before opening a PR or cutting a release
5151

5252
## Documentation Maintenance
53-
When command behavior, setup flow, config formats, or integrations change, update the docs in the same change.
53+
When command behavior, the setup flow, config formats, or integrations change, update the docs in the same commit.
5454

5555
- `README.md`: concise user-facing overview, install/setup flow, current command surface, and links
5656
- `docs/CONFIG.md`: detailed config semantics, file locations, defaults, and OTEL settings

CLAUDE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ go fmt ./...
6868

6969
### Service Interfaces (model package)
7070
Three key interfaces with dependency injection:
71-
- `ConfigService`: Reads and merges config from `config.toml` and `config.local.toml`
71+
- `ConfigService`: Reads and merges config from `config.yaml`/`config.toml` (YAML preferred) plus the matching `config.local.*` overrides
7272
- `AIService`: PromptPal integration for AI-powered command suggestions (`shelltime q`)
7373
- `CommandService`: Executable lookup with fallback paths (handles daemon's limited PATH)
7474

@@ -96,8 +96,8 @@ Services initialize in `cmd/daemon/main.go`: check enabled flag → create → s
9696
4. Batch sync to shelltime.xyz API with optional encryption
9797

9898
### Configuration
99-
- Main config: `$HOME/.shelltime/config.toml`
100-
- Local overrides: `$HOME/.shelltime/config.local.toml` (merged, gitignored)
99+
- Main config: `$HOME/.shelltime/config.yaml` (YAML preferred; `config.yml` and `config.toml` are also accepted)
100+
- Local overrides: `$HOME/.shelltime/config.local.yaml` (merged over the base, gitignored)
101101
- Daemon socket: `/tmp/shelltime.sock` (configurable via `socketPath`)
102102
- AICodeOtel gRPC port: configurable via `aiCodeOtel.grpcPort` (default: 54027)
103103

README.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
[![codecov](https://codecov.io/gh/shelltime/cli/graph/badge.svg?token=N09WIJHNI2)](https://codecov.io/gh/shelltime/cli)
44
[![shelltime](https://api.shelltime.xyz/badge/AnnatarHe/count)](https://shelltime.xyz/users/AnnatarHe)
55

6-
ShellTime is a CLI and background daemon for tracking shell activity, syncing command history, and wiring AI coding tools into a shared telemetry stream. The public product and hosted service are ShellTime at [shelltime.xyz](https://shelltime.xyz).
7-
8-
The Go module path is `github.com/malamtime/cli`. That naming mismatch is intentional in this repo today; use `ShellTime` for product-facing docs and `github.com/malamtime/cli` for imports and module references.
6+
ShellTime is a CLI and background daemon that tracks your shell activity, syncs your command history, and pipes your AI coding tools into one shared telemetry stream. The hosted service lives at [shelltime.xyz](https://shelltime.xyz).
97

108
## Install
119

@@ -23,29 +21,29 @@ curl -sSL https://shelltime.xyz/i | bash
2321

2422
### Upgrading
2523

26-
For curl-installed users, upgrade in place:
24+
If you installed with the curl script, upgrade in place:
2725

2826
```bash
2927
shelltime update
3028
```
3129

32-
Homebrew users should upgrade via brew:
30+
If you installed with Homebrew, upgrade through brew instead:
3331

3432
```bash
3533
brew upgrade shelltime/tap/shelltime
3634
```
3735

3836
## Quick Start
3937

40-
The fastest setup path is:
38+
The fastest way to get set up is a single command:
4139

4240
```bash
4341
shelltime init
4442
```
4543

46-
`shelltime init` authenticates the CLI, installs shell hooks, installs the daemon, and attempts to configure Claude Code and Codex OTEL integration.
44+
`shelltime init` authenticates the CLI, installs the shell hooks and daemon, and tries to wire up Claude Code and Codex OTEL integration for you.
4745

48-
If you prefer the manual flow:
46+
Prefer to do it step by step?
4947

5048
```bash
5149
shelltime auth
@@ -57,11 +55,11 @@ shelltime codex install
5755

5856
## What ShellTime Does
5957

60-
- Tracks shell commands locally with masking and exclusion support.
61-
- Syncs command history to ShellTime for search and analysis.
58+
- Tracks shell commands locally, with masking and exclusion rules to keep secrets out.
59+
- Syncs your command history to ShellTime so you can search and analyze it.
6260
- Runs a background daemon for low-latency, non-blocking sync.
63-
- Integrates with Claude Code and OpenAI Codex through OTEL forwarding.
64-
- Shows live Claude Code statusline data for cost, quota, time, and context.
61+
- Forwards Claude Code and OpenAI Codex telemetry through OTEL.
62+
- Shows a live Claude Code statusline with cost, quota, time, and context usage.
6563
- Syncs supported dotfiles to and from the ShellTime service.
6664

6765
## Command Overview
@@ -142,18 +140,18 @@ exclude:
142140
- "^export .*"
143141
```
144142
145-
For the full configuration surface, defaults, OTEL settings, and AI options, see [docs/CONFIG.md](docs/CONFIG.md).
143+
For every option, its default, and the OTEL and AI settings, see [docs/CONFIG.md](docs/CONFIG.md).
146144
147145
## Daemon Mode
148146
149-
The daemon keeps tracking fast by buffering and syncing in the background.
147+
The daemon keeps your shell fast by buffering commands and syncing them in the background, so a slow network never blocks your prompt.
150148
151-
| Mode | Latency | Network Blocking |
152-
|------|---------|------------------|
149+
| Mode | Latency | Blocks your shell? |
150+
|------|---------|--------------------|
153151
| Direct | ~100ms+ | Yes |
154152
| Daemon | <8ms | No |
155153
156-
Use daemon mode if you want lower shell latency, retry handling, and background processing for sync and OTEL events.
154+
Run in daemon mode for lower shell latency, automatic sync retries, and background processing of sync and OTEL events. It is optional but recommended.
157155
158156
## Claude Code Statusline
159157
@@ -180,10 +178,10 @@ For formatting details and platform notes, see [docs/CC_STATUSLINE.md](docs/CC_S
180178

181179
## Security and Privacy
182180

183-
- Data masking can redact sensitive command content before upload.
184-
- Exclusion patterns let you skip matching commands entirely.
185-
- Optional end-to-end encryption is available for supported flows.
186-
- Local config overrides can keep sensitive values out of the primary config file.
181+
- **Data masking** redacts sensitive command content before it leaves your machine.
182+
- **Exclusion patterns** skip matching commands entirely, so they are never recorded.
183+
- **End-to-end encryption** is available for supported flows (opt-in).
184+
- **Local config overrides** keep secrets like tokens out of your main config file.
187185

188186
## Development
189187

@@ -197,6 +195,8 @@ go fmt ./...
197195
go vet ./...
198196
```
199197

198+
> **Note on naming:** the product is **ShellTime** (`shelltime.xyz`), but the Go module path is `github.com/malamtime/cli`. This mismatch is intentional — use `ShellTime` in product-facing docs and `github.com/malamtime/cli` for imports.
199+
200200
## Links
201201

202202
- [Configuration Guide](docs/CONFIG.md)

docs/CC_STATUSLINE.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Claude Code Statusline Integration
22

3-
Display real-time cost and context usage in Claude Code's status bar using ShellTime.
3+
Show real-time cost and context usage right in Claude Code's status bar, powered by ShellTime.
44

55
## Overview
66

7-
The `shelltime cc statusline` command provides a custom status line for Claude Code that shows:
7+
The `shelltime cc statusline` command renders a custom status line for Claude Code that shows:
88

99
- Git branch name and dirty status
1010
- Current model name
@@ -163,21 +163,21 @@ Color is based on the **maximum** utilization across both windows:
163163

164164
### For Session Cost & Context
165165

166-
No additional setup required - data comes directly from Claude Code.
166+
No setup needed — this data comes straight from Claude Code.
167167

168168
### For Git Branch Info
169169

170170
Requires the ShellTime daemon to be running:
171171

172172
```bash
173-
# Start the daemon
174-
shelltime daemon start
173+
# Install and start the daemon as a background service
174+
shelltime daemon install
175175

176176
# Verify it's running
177177
shelltime daemon status
178178
```
179179

180-
The daemon caches git info and refreshes it periodically for optimal performance.
180+
The daemon caches git info and refreshes it in the background, so the statusline stays fast.
181181

182182
### For Today's Cost
183183

@@ -209,7 +209,7 @@ If quota data is unavailable, the section will show as `🚦 -`.
209209

210210
## Performance
211211

212-
- **Hard timeout:** 100ms for entire operation
212+
- **Hard timeout:** 100ms for the entire operation
213213
- **Daemon request timeout:** 50ms for the daemon socket request (fast path)
214214
- **Session mapping:** ~1ms fire-and-forget to daemon
215215
- **API caching:** 5-minute TTL for daily cost, 10-minute TTL for quota utilization
@@ -245,7 +245,7 @@ If quota data is unavailable, the section will show as `🚦 -`.
245245
1. Ensure you're on **macOS** - quota display is only available on macOS (omitted entirely on Linux)
246246
2. Verify you're logged into Claude Code (the OAuth token is stored in macOS Keychain)
247247
3. Ensure the daemon is running: `shelltime daemon status`
248-
4. Quota data is cached for 10 minutes - it may take a moment after daemon start
248+
4. Quota data is cached for 10 minutes it may take a moment to appear after the daemon starts
249249

250250
### Colors not displaying
251251

docs/CONFIG.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ShellTime CLI Configuration Guide
22

3-
This guide explains all configuration options available in ShellTime CLI. Configuration is straightforward yet powerful, allowing you to customize everything from data syncing to AI features.
3+
This guide covers every configuration option in ShellTime CLI. ShellTime runs fine on its defaults, so you only need to set what you want to change — from sync behavior to AI features.
44

55
## Table of Contents
66

@@ -26,7 +26,7 @@ Create a configuration file at `~/.shelltime/config.yaml`:
2626
token: "your-api-token-from-shelltime.xyz"
2727
```
2828
29-
That's it! ShellTime works with sensible defaults. Read on to customize your experience.
29+
That's it — every other setting has a sensible default. Read on to fine-tune things.
3030
3131
---
3232
@@ -298,7 +298,7 @@ codeTracking:
298298
token: "custom-heartbeat-token"
299299
```
300300

301-
When `apiEndpoint` or `token` is set under `codeTracking`, heartbeat data will use these values instead of the global configuration. This allows you to send coding activity to a different server or authenticate with a separate token.
301+
When `apiEndpoint` or `token` is set under `codeTracking`, heartbeats use those values instead of the global ones — handy for sending coding activity to a different server or authenticating with a separate token.
302302

303303
---
304304

@@ -497,9 +497,9 @@ No, but it's recommended:
497497
- **With daemon:** <8ms latency, encryption support
498498
- **Without daemon:** ~100ms+ latency, no encryption
499499

500-
Start the daemon:
500+
Install and start the daemon as a background service:
501501
```bash
502-
shelltime-daemon
502+
shelltime daemon install
503503
```
504504

505505
---

0 commit comments

Comments
 (0)