Skip to content

Conversation

litt3
Copy link
Contributor

@litt3 litt3 commented Jun 27, 2025

  • This PR introduces a claude slash command: /preprocess-logs
  • This command generates summaries of (potentially large) log dumps, including metadata that is helpful for in-depth claude-assisted debugging

@litt3 litt3 self-assigned this Jun 27, 2025
@litt3 litt3 marked this pull request as ready for review June 27, 2025 17:39
@@ -0,0 +1,215 @@
# Preprocess Logs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Should we follow the snake-case style of other commands? Also should we prefix with eigenda so we know it comes from this repo?

image

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we follow the snake-case style of other commands?

Which commands are snake case?

I did /preprocess-logs, and the other multi-word commands follow the same - formatting, e.g /add-dir

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also should we prefix with eigenda so we know it comes from this repo?

Hmm, good question. The description of the command is suffixed with (project), which lets us know it isn't a default command. Are you suggesting that we change the actual text of the slash command, or just the title of the command definition?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which commands are snake case?

Sorry meant separating using hyphens casing. The picture I showed above is misleading, it's the behavior if we change the filename to preprocess-logs.md. This is the current behavior:
image

Hmm, good question. The description of the command is suffixed with (project), which lets us know it isn't a default command. Are you suggesting that we change the actual text of the slash command, or just the title of the command definition?

Yeah was suggesting changing the title but didn't realize it already appends (project) to the description. Seems we can also utilize namespaces once we get more of these scripts. https://docs.anthropic.com/en/docs/claude-code/slash-commands#namespacing.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gotcha! Yes I agree, we need to follow the hyphen style. I'll make the change 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -17,7 +17,6 @@ lightnode/docker/args.sh
.idea
.env
.vscode
.claude
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add a CLAUDE.md at some point?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is the proper place to put claude configuration that I don't want to commit?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add a CLAUDE.md at some point?

Yes, I think we definitely should. I've been working on a draft, I hope to put up an initial proposal today!

Where is the proper place to put claude configuration that I don't want to commit?

~/.claude/CLAUDE.md

https://docs.anthropic.com/en/docs/claude-code/memory

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here is the CLAUDE.md proposal I referenced

cody-littley
cody-littley previously approved these changes Jun 30, 2025
@litt3 litt3 requested a review from cody-littley July 1, 2025 13:31
Copy link
Collaborator

@samlaf samlaf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, although I haven't tested it myself yet.

@litt3 litt3 merged commit d6b2368 into master Jul 1, 2025
11 checks passed
@litt3 litt3 deleted the log-proprocessing branch July 1, 2025 17:31
hopeyen pushed a commit that referenced this pull request Jul 1, 2025
* Implement claude log preprocessing command

Signed-off-by: litt3 <[email protected]>

* Add ripgrep to mise.toml

Signed-off-by: litt3 <[email protected]>

* Rename file to follow proper command format

Signed-off-by: litt3 <[email protected]>

---------

Signed-off-by: litt3 <[email protected]>
hopeyen pushed a commit that referenced this pull request Jul 7, 2025
* Implement claude log preprocessing command

Signed-off-by: litt3 <[email protected]>

* Add ripgrep to mise.toml

Signed-off-by: litt3 <[email protected]>

* Rename file to follow proper command format

Signed-off-by: litt3 <[email protected]>

---------

Signed-off-by: litt3 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants