simonw / simonw/llm

Add option to list the nth log? eg: second last log

Open
#822 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
12.5k
Forks
998
Avg merge
3d 13h
Merged PRs (30d)
10

Description

Using llm logs -n (or llm logs -r) I'm able to lists the last log. Similarly, accessing the second or third last log - or even the nth log - is a natural use case.

Hope I've not missed an obvious way to achieve this. The contributors have probably already thought of implementing this, but I wanted to ask if this is something that'd be added in the short-term?

Contributor guide

Open the contributing guide

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.

Research direction

Start at the llm logs command entry point and inspect how the existing -n or -r option selects the last log. Determine how an nth or second-last position should be expressed, then verify that the command returns the requested log consistently. No file or test path is named in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.