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

ledger: write an AGENTS.md at the root of a new ledger

Open Beginner friendly
#63 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
markdown, typescript
Domain
backend

Research direction

Start in packages/ledger/ledger.ts, where openOrCreate creates a new ledger and createMarker writes the LEDGER marker; the new AGENTS.md should be written at the same point. Also read inspect() to confirm it accepts an AGENTS.md file without refusing the folder. Done when a freshly created ledger contains an AGENTS.md with the three points in the issue, an existing one is never overwritten (use an exclusive create), and inspect still accepts the folder.

Written by the indexing model from the issue text.

Description

An agent (Claude Code, Codex, etc.) dropped into a pbnotes project folder has no idea what it's looking at: a `LEDGER` marker and a pile of writer directories with segment files. It may try to "tidy" them, edit segments in place, or guess at the format.

Proposal

When `openOrCreate` creates a new ledger (alongside the `LEDGER` marker in `createMarker`, packages/ledger/ledger.ts), also write an `AGENTS.md` at the ledger root that:

  • says this folder is a pbnotes ledger, written by the Pb Notes app;
  • points to https://github.com/shovon/pbnotes for how to interpret the folder (format, multi-writer layout);
  • warns not to modify, rename, or delete files here by hand: the content is append-only and shared with other writers.

Keep it short; the repo is the source of truth, the file is just a signpost.

Open questions

  • Only on creation, or also when opening an existing ledger that lacks one? (Suggest: create-if-missing with `wx`, never overwrite, so a user's edits survive.)
  • `inspect()` must keep treating an `AGENTS.md` as a non-ledger file it tolerates, not as a reason to refuse the folder.
Dominant language
TypeScript
Stars
0
Forks
1
Avg merge
7h 50m
Merged PRs (30d)
1

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 shovon/pbnotes

All issues in shovon/pbnotes

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.