Arquivo do dia
A Claude Code command that sifts your notes into a knowledge base every night
Slava Sazhin 27 de setembro de 2026 3 min de leitura 1 visualização
A Claude Code command reads the notes of the last day at night and adds to your knowledge base what will still matter in three months. It deletes nothing.
Today's file is a Claude Code command for what you learn while working: where a service lives, the command that really builds the report, the trap you fell into on Tuesday. It goes into a note, newer notes bury it, and three months later a new session falls into the same trap. Prosev runs at night, reads the notes changed in the last day and moves what will still matter into a knowledge base.
How it works
The filter is one question: will this entry save a new session, three months from now, doing a different task in the same place, at least one step. The progress of a task, one-off measurements and dates, what one query to the code would show, secrets and anything personal stay out. Of a password it keeps only the name of the environment variable that holds it.
Before writing, it searches $HOME/knowledge by the distinctive words of each entry (a path, a command, a service name) and reads the whole section it finds. Already there: skipped. Written differently: fixed in place, with the date it was seen. Missing: added to the file that fits the topic, and a new file only when none does. Then it reads back every place it changed and puts the file back if something does not match.
It deletes and shortens nothing, neither notes nor entries. The reply is one line, "All good, all done.", also on a night with nothing to add. Errors, if there are any, come instead, one per line.
What to change
The folders are $HOME/notes and $HOME/knowledge. If your notes live elsewhere, change the paths in the file and in the run command. The run uses --permission-mode acceptEdits: edits inside the folder it starts in and the two --add-dir folders go through without asking, so deleting nothing is a rule in its prompt, not a lock. Start it from $HOME/knowledge rather than your home folder, where cron starts it, and keep that folder in git.
Install
One file goes into ~/.claude/commands/. The note below then asks Claude for three things: the two folders, a short note at the end of every work task, and a daily run at 3:00 with claude -p '/prosev'. The computer stays on and awake at night. The check puts one line into a note, runs /prosev and expects that line in the knowledge base once, still once after a second run.
Os arquivos
Os arquivos do dia são para assinantes pagos: qualquer plano libera todos. Já é assinante? Então entre.
Ver os planosEste artigo valeu o seu tempo?
Leia também
Arquivo do dia
A Claude Code subagent that reads your text as the person it is for
A Claude Code subagent reads a letter, post or offer as the person it is addressed to before it goes out and splits its remarks into blocking and optional.
Arquivo do dia
A Claude Code subagent that collects data and leaves the conclusions to you
A Claude Code subagent that runs queries, appends each result with its source to a shared file and answers in a line or two. Conclusions stay with you.
Arquivo do dia
A Claude Code hook that lets read-only commands run without asking
A PreToolUse hook that lets Claude Code run grep, cat, ls and git log without a permission prompt and leaves every other command to you. One script.
Dê ao Claude um computador só dele
Sua própria máquina Linux com o Claude Code, trabalhando 24 horas por dia enquanto seu notebook está fechado. A partir de $3.49 por mês.