| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
the last
Like systemctl list-timers: LEFT after NEXT, PASSED after LAST, by
systemd-analyze timestamp's "From now".
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
--schedule NAME --when=TIME|CALENDAR --prompt=TEXT [--id=ID]
[--permission-mode=MODE] defines a task (see configs/claude.nix), its
time checked and normalized by systemd-analyze: a calendar event first
(so Mon 03:00 is every Monday), recurring if it elapses more than once,
else once (a past one refused); otherwise a timestamp (+2h, tomorrow),
once, if it's ahead. It makes the task's timer; --schedules [NAME]
lists them (when, next, last run, result), and --unschedule NAME
--id=ID removes one. A remote with tasks can't be renamed or removed
(they name it): unschedule them first. Help, colors and completion
(permission modes, a remote's task ids).
|
| |
|
|
|
|
|
| |
As claude-inbox's: commands (amber), options (grey) and names (blue),
in that order, and on a second TAB, listed in color, by the completion
itself (readline would show the escapes), and readline given a blank
candidate, to redraw the prompt after.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Like claude-inbox: the commands are options now (--list, --inspect,
--start, --stop, --restart, --attach, --log, --rename, --reset,
--remove), in one set with the others, without overlaps, so the only
words are the names; without a command, it's --inspect NAME, or else
--list. rename's --stop (not asking before stopping OLD) is -f, like
reset's and remove's, as --stop is the command now; OLD and NEW can come
as --from=OLD and --to=NEW, too, in any order; journalctl's options, for
--log, come after --. An option that isn't for the command is an error,
not ignored. The messages, the help, the completion (the command's
options, but those used, and as many names as it takes), and the
layer's comments, in the new syntax.
|
| |
|
|
|
|
|
| |
On claude.ai, a renamed remote's session gets the new name, but the side
panel keeps the old one, that of the environment it registered, which
it goes on with (so as to keep its session); reset gets the new one
there, with a new session. The help and rename say so.
|
| |
|
|
|
|
| |
claude-remote type NAME (for the completion) says its type, so that
completion offers --type= only with the other one, and --interactive
only for a server (or a new one, which would be a server).
|
| |
|
|
|
| |
Both are remotes: a Remote Control server's type is server, then, in
list's TYPE and inspect, and for --type (--type=server|interactive).
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
start and restart start a remote of the type it is, or with --type=TYPE
(remote, or interactive; --interactive for short), of that type: a new
one is made so (default: remote); an existing one of the other type
changes (stopped, if it runs): to an interactive session, it resumes
its latest session (its latest transcript, so it goes on with what it
had as a Remote Control server), or else starts a new one; to a Remote
Control server, its session id goes (kept, as a dot file), and it
resumes the session its link points to. On claude.ai, the session of
the other type stays (disconnected), or gets archived, as tried. Not
for a static one, whose type is the configuration's. So start
--interactive isn't for new remotes only anymore.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
start NAME --interactive makes NAME an interactive session (a session
id of its own, in /home/.var/lib/claude/interactive-sessions, which
sticks, so that start, stop, restart, attach, log and inspect find its
unit, claude-interactive@NAME, as they find a static one by
multi-user.target's wants); refused while it runs, or is meant to run,
as a Remote Control server, and for a remote that has had sessions as
one (whose project has transcripts): an interactive session wouldn't go
on with them, but start anew. list shows the TYPE (remote, interactive),
inspect the session id; rename moves it along, and remove into
.removed, with the rest; reset gives an interactive one a new one.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Deleting a remote's session on claude.ai leaves the remote a link to it
(bridge-pointer.json), which it then can't resume (404). reset NAME
forgets the session: moves the link aside (bridge-pointer.json.old), and
the remote starts with a new one, stopped and started again if it runs.
remove NAME retires a remote: stops it, and moves its directory and
Claude Code project to ~claude/remotes/.removed/NAME-DATE, worktrees in
it repaired; its branches and trust stay; not for static ones. Then
the old session and environment can go, on claude.ai. Both ask first
(y/N), but with -f, as root, not from the remote itself, all or nothing
like rename, whose take-back they share (its messages generalized).
.removed is not worth a backup: in the rsync filter.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Remote Control needs a login, and the units answer its questions in
~/.claude.json, which may come before it: so the units have
ConditionPathExists on ~/.claude/.credentials.json (skipped, not
failed, before the login), and a path unit on it starts the restore
service, which starts the static remotes now, too, and the dynamic
ones: at boot, if there's a login already, or else as soon as there
is. The restore service isn't multi-user.target's anymore, and
remains active, once done, so the path unit starts it once.
claude-remote start refuses before the login, as the unit would be
skipped, and forgotten.
|
| |
|
|
|
|
|
|
|
| |
The restore service keeps the static remotes of each boot (in
/home/.var/lib/claude/static-remotes); one that was static at the last
boot, but isn't anymore, gets a state file, i.e. becomes dynamic, and
starts again, as long as it has a directory. To retire one:
claude-remote stop NAME, as for any dynamic one. The first boot with
this only notes the static ones.
|
| |
|
|
|
|
|
|
| |
As claude-inbox's: Commands, each with its description indented below
it, and Kinds; on a terminal, the headings in bold, commands, options
and names in colors (truecolor, 256 or 8, as the terminal has them,
none with NO_COLOR), errors too; and an unknown command or option is a
one-line error now, not all of the help.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A remote, renamed: its directory, its Claude Code project (and the link
to its claude.ai session in it), its trust in ~/.claude.json, the
worktrees in it (repaired), its branches (OLD/* to NEW/*), and a
dynamic one's mark; stopped first, if it runs, and started after.
Each step is a rename, so rename NEW OLD takes it all back.
Everything gets checked first, and nothing changes unless all's well:
OLD there, and not static; nothing of NEW's there (directory, project,
unit, mark, branches; but an entry in ~/.claude.json alone, which a
remote writing back what it read before can bring back, gets
replaced); not run from OLD itself; nothing but OLD's own unit using
it (and, once stopped, nothing at all); no other rename running. Then
all or nothing: before each step, how to take it back, which looks at
what's there (so a step half done gets taken back, too), and if one
fails, those get done, last first. Only if that fails, too, a copy of
~/.claude.json as it was stays, which list shows until it's removed.
The process, in the header.
|
|
|
claude-remote list (the default) shows the remotes, static, dynamic,
with a unit loaded, or with a directory, with their kind, state, and
whether they trust their directory yet; inspect NAME shows a remote's
unit, directory, trust, claude.ai session (bridge-pointer.json), and
the last lines of its terminal; start, stop and restart NAME go through
systemctl (a remote started here is dynamic: it lasts until stopped
here), and start points to attach while the remote doesn't trust its
directory; attach [NAME] opens its terminal (it's claude-attach, which
is gone); log NAME shows its journal. Which remotes are static, it
asks systemd (multi-user.target's wants), so changing them doesn't
change it. A package (pkgs/claude-remote.nix), with bash completion of
the commands and the remotes' names.
|