Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Upgrade: Anthropic.ts report exists only on stdout while state is saved, and --help runs a full scan

Open Beginner friendly
#2,290 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 6 days

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
84/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript
Domain
cli, tooling

Research direction

Start at Tools/Anthropic.ts:94-97, where argv parsing reads only the day count and --force, and at line 1011 where saveState runs after printing to stdout. Add a usage/exit path for --help (and rejection of unknown flags) before any scan begins, plus writing the report to a file under Logs/ and echoing its path, using Logs/run-history.jsonl as the convention reference. Done means: --help prints usage without fetching or saving state, every run leaves a report file on disk, and the existing behavior for day count and --force still passes any Upgrade skill tests.

Written by the indexing model from the issue text.

Description

Version

LifeOS 7.40.4. Same code on main today (Tools/Anthropic.ts, 1021 lines).

What is broken

Anthropic.ts prints its report only to stdout and saves State/last-check.json at the end of every successful run. So the report exists exactly once. If the output gets cut (an agent piping it through tail, a terminal scrollback limit, a tool-output size cap), the delta is gone, and a second run reports nothing because the state has already moved on.

The argument parser makes this easy to hit. It reads the first non--- argument as the day count and checks only for --force. Any other flag, --help included, is ignored and a full scan runs, which saves the state.

We lost the delta this way on two runs in a row and had to rebuild it from the previous state file in git.

Where (file:line)
  • LifeOS/install/skills/Upgrade/Tools/Anthropic.ts:94-97 (argv: day count and --force only)
  • LifeOS/install/skills/Upgrade/Tools/Anthropic.ts:1011 (saveState after the report is printed to stdout)
Suggested fix
  1. Write every report to a file as well, for example Logs/report-<timestamp>.md, and print its path at the end. The run history in Logs/run-history.jsonl already records counts, so the report next to it fits.
  2. Make --help print usage and exit without fetching or saving state. Reject unknown flags the same way.

Optional: a --no-save flag for a dry run that leaves the state untouched.

This overlaps with the rewrite announced in #2227 (pagination and the import.meta.main guard), so it may be easiest to fold in there.

Dominant language
TypeScript
Stars
19.3k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from danielmiessler/LifeOS

All issues in danielmiessler/LifeOS

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.