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
414 changes: 248 additions & 166 deletions README.md

Large diffs are not rendered by default.

Binary file added assets/docs/autter-blame.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/docs/brand/autter-harbour.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/docs/brand/autter-logo-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/docs/brand/autter-logo-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions assets/docs/buttons/get-early-access.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions assets/docs/buttons/meet-the-maintainers.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions scripts/demo/autter-blame.tape
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Records assets/docs/autter-blame.gif. Run scripts/demo/setup-blame-demo.sh first,
# then from the repo root: vhs scripts/demo/autter-blame.tape
Output assets/docs/autter-blame.gif

Set Shell "bash"
Set FontFamily "Menlo"
Set FontSize 15
Set Width 1140
Set Height 720
Set Padding 24
Set Theme "Catppuccin Mocha"
Set WindowBar Colorful
Set BorderRadius 10
Set TypingSpeed 45ms
Set Framerate 20
Set CursorBlink false

Hide
Type "source /tmp/autter-demo/env.sh && cd /tmp/autter-demo/repo && clear" Enter
Sleep 800ms
Show

Sleep 500ms
Type "autter blame --date short ratelimit.py" Sleep 400ms Enter
Sleep 7500ms

Hide
Type "clear" Enter
Sleep 300ms
Show

Type "autter blame --why ratelimit.py:12" Sleep 400ms Enter
Sleep 7500ms
115 changes: 115 additions & 0 deletions scripts/demo/setup-blame-demo.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
#!/usr/bin/env bash
# Builds a throwaway repo with human, Claude Code and Cursor lines for the
# `autter blame` README GIF. Uses an isolated HOME and a private daemon, so it
# never touches your real autter install or git config.
#
# cargo build --bin autter
# scripts/demo/setup-blame-demo.sh
# vhs scripts/demo/autter-blame.tape
#
# Clean up:
# HOME=/tmp/autter-demo/home AUTTER_DAEMON_HOME=/tmp/autter-demo/home target/debug/autter bg shutdown
# rm -rf /tmp/autter-demo
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/../.." && pwd)"
AUTTER_BIN="${AUTTER_BIN:-$ROOT/target/debug/autter}"
# Short path on purpose: the daemon's unix sockets must stay under ~100 chars.
DEMO="${AUTTER_DEMO_DIR:-/tmp/autter-demo}"

if [ -S "$DEMO/home/.autter/internal/daemon/control.sock" ]; then
HOME="$DEMO/home" AUTTER_DAEMON_HOME="$DEMO/home" "$AUTTER_BIN" bg shutdown >/dev/null 2>&1 || true
fi
rm -rf "$DEMO"
mkdir -p "$DEMO/bin" "$DEMO/home/.autter" "$DEMO/repo"
ln -s "$AUTTER_BIN" "$DEMO/bin/autter"
printf '{"onboarding_completed": true, "telemetry_oss": "off"}\n' >"$DEMO/home/.autter/config.json"

cat >"$DEMO/env.sh" <<EOF
export HOME="$DEMO/home" XDG_CONFIG_HOME="$DEMO/home/.config"
export GIT_CONFIG_GLOBAL="$DEMO/home/.gitconfig" GIT_CONFIG_NOSYSTEM=1
export AUTTER_DAEMON_HOME="$DEMO/home" AUTTER_DEBUG=0
export PATH="$DEMO/bin:\$PATH" GIT_PAGER=cat PAGER=cat
export TZ=UTC
export PS1='\$ '
EOF
# shellcheck disable=SC1091
source "$DEMO/env.sh"
git config --global user.name "Maya Chen"
git config --global user.email [email protected]
git config --global init.defaultBranch main

autter bg run >"$DEMO/daemon.log" 2>&1 &
SOCK="$DEMO/home/.autter/internal/daemon/trace2.sock"
for _ in $(seq 50); do [ -S "$SOCK" ] && break; sleep 0.2; done
export GIT_TRACE2_EVENT="af_unix:stream:$SOCK" GIT_TRACE2_EVENT_NESTING=10
export AUTTER_DAEMON_CHECKPOINT_DELEGATE=true

commit() { # $1 date, $2 message; waits for the async authorship note
GIT_AUTHOR_DATE="$1" GIT_COMMITTER_DATE="$1" git commit -qam "$2"
for _ in $(seq 75); do git notes --ref=ai show HEAD >/dev/null 2>&1 && return; sleep 0.2; done
echo "no authorship note for: $2 (see $DEMO/daemon.log)" >&2
exit 1
}

cd "$DEMO/repo"
git init -q
echo "# ratelimit" >README.md
git add .
GIT_AUTHOR_DATE="2026-11-02T10:00:00" GIT_COMMITTER_DATE="2026-11-02T10:00:00" git commit -qm "init"
sleep 1

# 1) Lines a human typed
cat >ratelimit.py <<'PY'
import time

class RateLimiter:
def __init__(self, rate, burst):
self.rate = rate
self.burst = burst
self.tokens = burst
self.last = time.monotonic()
PY
git add ratelimit.py
autter checkpoint mock_known_human ratelimit.py
commit "2026-11-03T09:14:00" "Add RateLimiter skeleton"

# 2) Lines Claude Code wrote, with a transcript
T="$DEMO/claude-session.jsonl"
SID="5b1c7e0a-3d42-4f6e-9a57-2c8e1f0b6d11"
cat >"$T" <<JSONL
{"parentUuid":null,"isSidechain":false,"type":"user","sessionId":"$SID","cwd":"$DEMO/repo","message":{"role":"user","content":"Add a token-bucket allow(cost) to RateLimiter. Refill from elapsed time, never exceed burst."},"uuid":"u1","timestamp":"2026-11-10T14:02:05.000Z"}
{"parentUuid":"u1","isSidechain":false,"type":"assistant","sessionId":"$SID","cwd":"$DEMO/repo","message":{"id":"msg_demo","type":"message","role":"assistant","model":"claude-sonnet-4-5","content":[{"type":"text","text":"Added allow(): refills from elapsed time, caps at burst, spends cost if available."}]},"uuid":"a1","timestamp":"2026-11-10T14:02:19.000Z"}
JSONL
autter checkpoint human ratelimit.py
cat >>ratelimit.py <<'PY'

def allow(self, cost=1):
now = time.monotonic()
elapsed = now - self.last
t = self.tokens + elapsed * self.rate
self.tokens = min(self.burst, t)
self.last = now
if self.tokens < cost:
return False
self.tokens -= cost
return True
PY
autter checkpoint claude --hook-input "$(printf '{"session_id":"%s","cwd":"%s","hook_event_name":"PostToolUse","transcript_path":"%s","tool_input":{"file_path":"%s/ratelimit.py"}}' "$SID" "$PWD" "$T" "$PWD")"
commit "2026-11-10T14:03:00" "Add token-bucket allow()"

# 3) Lines a second agent wrote (agent and model set explicitly, no transcript)
autter checkpoint human ratelimit.py
cat >>ratelimit.py <<'PY'

def wait_time(self, cost=1):
need = cost - self.tokens
return max(0.0, need) / self.rate
PY
autter checkpoint agent-v1 --hook-input "$(printf '{"type":"ai_agent","repo_working_dir":"%s","edited_filepaths":["ratelimit.py"],"agent_name":"cursor","model":"gpt-5-codex","conversation_id":"c0ffee12-demo"}' "$PWD")"
commit "2026-11-18T16:41:00" "Add wait_time()"

# One-off "agent installed but not hooked" notices for agents on this machine
# are shown once per agent; use them up here so the recording stays clean.
script -q /dev/null autter blame --date short ratelimit.py >/dev/null 2>&1 || true

echo "ready: source $DEMO/env.sh && cd $DEMO/repo"
Loading