agentleFS
elvisunelvisun/newsjack/AGENTS.md

newsjack

AGENTS.md1.5k starsChanged 3 months agoMITView on GitHub

Guidance for coding agents working in this repo. Keep Newsjack as stateless as practical. Durable state creates hidden baggage on users' machines, makes behavior harder to reason about, and slows iteration. Open discovery, strict surfacing. Keep the Go CLI a

Trending

Quiet since September.thin dataabout the whole repository

Jan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 1 mentionJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 5 mentionsOct 2026: 0 mentionsNov 2026: 0 mentionsDec 2026: 0 mentions
Jan 2026Jul 2026Dec 2026
Mentions a month of the elvisun/newsjack repository that our weekly crawl found: only 6 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Who's talking about elvisun/newsjack

The biggest 5 of 6 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 6

Talked about on GitHub, Hacker News and Bluesky (6 times).

On GitHub · 4

The file

Show its rules and text

We split this AGENTS.md into the rules it gives an agent

21 rules. About 0 are common, 14 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈14

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Keep Newsjack as stateless as practical.

    line 26
  2. Distinctive:

    Prefer explicit user-owned files, command inputs, and per-run artifacts over background memory.

    line 28
  3. Distinctive:

    If something can be regenerated with one prompt or one cheap deterministic command, do not save it as durable state.

    line 29
  4. Distinctive:

    If an LLM can derive something from live evidence in one prompt, prefer keeping that derivation in the skill/prompt layer instead of …

    line 30
  5. Distinctive:

    Do not persist model-inferred topics, learned assumptions, ranking preferences, or other agent guesses unless the user explicitly promotes …

    line 32
  6. Distinctive:

    When state is necessary, make it inspectable, portable, and easy to delete.

    line 33
  7. Distinctive:

    Do not add or expand CLI report rendering unless it is strictly a compatibility/debug path.

    line 67
  8. Very specific:

    Do not commit .tmp/, fixture runs/, local databases, .claude/, .next/, node_modules/, or compiled binaries.

    line 96
  9. Distinctive:

    Check git status --short before and after edits.

    line 99
  10. Very specific:

    ATOM skills: do one judgment or transformation well.

    line 104
  11. Distinctive:

    Keep atomic capability in the atom.

    line 107
  12. Distinctive:

    When adding behavior, place it at the lowest level that owns the concept.

    line 108
  13. Distinctive:

    Keep public skills runtime-agnostic and user-facing.

    line 109
  14. Distinctive:

    Avoid fixture, beta-client, or one-off evaluation details in public skills.

    line 112
  15. Very specific:

    Follow skills/ETHICS.md and skills/WHY-NOT-SPAM.md for all PR/pitch/newsjack workflows.

    line 114
  16. Distinctive:

    Prefer existing repo patterns over new abstractions.

    line 121
  17. Very specific:

    Use rg/rg --files for searches.

    line 122
  18. Distinctive:

    Keep changes scoped. Do not reformat unrelated files.

    line 124
  19. Distinctive:

    If adding or renaming fixture scripts, update the fixture README and any internal script references.

    line 125
  20. Very specific:

    If changing CLI behavior, update or add focused Go tests in apps/cli/cmd/newsjack/.

    line 126
  21. Very specific:

    If changing report format, check golden fixtures and run go test ./...

    line 127

≈ “Common” is an estimate: at least 1 in 5 of the 16,597 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

AGENTS.md

Guidance for coding agents working in this repo.

Repo Shape

  • apps/cli/ - Go CLI source for newsjack. Commands live in apps/cli/cmd/newsjack/.
  • apps/site/ - Next.js site and distribution build. proxy.ts routes curl/wget to install.sh; browser traffic gets the site.
  • bin/newsjack - source-checkout shim that runs the Go CLI with go run. Working in this repo, prefer this shim; ~/.newsjack/bin/newsjack is the end-user install path that public skills reference.
  • skills/ - public Newsjack skills. These are user-facing runtime instructions.
  • fixtures/ - local fixtures and smoke harnesses. Fixture-specific docs, scripts, prompts, and generated run folders belong here.
  • eval/ - evaluation artifacts, including reverse-newsjack methodology and dated run results.
  • harness/ - local agent/runtime harness support.
  • docs/ - planning and architecture notes.

Canonical Boundaries

  • Public skill behavior belongs in skills/*/SKILL.md and skill-local support files.
  • Fixture usage belongs in the relevant fixtures/*/README.md, scripts, or prompt files, not in public skills.
  • skills/newsjack-detector/SKILL.md is the canonical detector pipeline contract.
  • fixtures/newsjack-detector-agent/PROMPT.md should only point agents to the canonical detector skill and the fixture profile files. Do not duplicate run commands or profile lists there.
  • fixtures/newsjack-detector-agent/README.md owns fixture script usage.

Minimal Memory

Keep Newsjack as stateless as practical. Durable state creates hidden baggage on users' machines, makes behavior harder to reason about, and slows iteration.

  • Prefer explicit user-owned files, command inputs, and per-run artifacts over background memory.
  • If something can be regenerated with one prompt or one cheap deterministic command, do not save it as durable state.
  • If an LLM can derive something from live evidence in one prompt, prefer keeping that derivation in the skill/prompt layer instead of encoding a brittle approximation in Go.
  • Persist only state that has a clear product owner and lifecycle: monitor profiles, client briefs, schedules, credentials, run provenance, and recurring-run seen/suppression data.
  • Do not persist model-inferred topics, learned assumptions, ranking preferences, or other agent guesses unless the user explicitly promotes them into a profile or brief.
  • When state is necessary, make it inspectable, portable, and easy to delete. Avoid adding new local databases, caches, or hidden files unless they are clearly justified.
  • One-off commands should be as stateless as possible. Recurring monitors may use limited state for hygiene, but that state should not become the source of truth for discovery or judgment.

Discovery Doctrine

Open discovery, strict surfacing.

  • News discovery must be evidence-first, not model-prior-first. Runtime judgment should rely on collected evidence and explicit profile setup, not remembered sector trends.
  • Static profile/query terms should come from explicit user input, the client's own materials, named entities such as competitors/products/regulators, or fresh current coverage. Do not persist model-inferred "hot topics" as durable search terms.
  • Setup owns durable discovery aperture: a focused set of short broad beat topics, static search terms, competitors, and feeds belong in the monitor profile, not in per-run generated terms. Prefer 6-8 core topics, usually 2-3 words; one-word topics are fine when they name a real beat.
  • Runtime detector skills should not invent or store retrieval terms from model memory or today's headlines. If intake is too narrow or too broad, edit the profile setup file instead of adding hidden run-specific discovery state.
  • Preserve the separation between intake and judgment: widen discovery when needed, but keep freshness, story-origin, standing, brand-safety, and angle gates strict before surfacing anything as actionable.

CLI Unix Principle

Keep the Go CLI a deterministic, composable data layer. Before adding behavior to apps/cli, ask whether every Newsjack user needs the same testable operation regardless of client, voice, outlet, or prompt strategy. If the answer is no, put it in a skill, fixture, or user-provided renderer instead.

CLI-owned behavior:

  • Install/update/runtime/auth/MCP plumbing, local paths, local state, and health checks.
  • Evidence ingestion, normalization, dedupe, clustering, source diagnostics, and local seen-store behavior.
  • Mechanical scores, routing metadata, hygiene/safety flags, and deterministic thresholds used to order work.
  • JSON-to-JSON transforms such as applying decisions, validating artifact contracts, attaching provenance, and computing freshness status codes.
  • Machine-readable facts needed by skills to render honestly: URLs, timestamps, source provenance, status codes, counts, exclusions, and diagnostics.

Skill- or user-owned behavior:

  • PR judgment, client standing, newsworthiness, brand-safety judgment, angle fit, journalist shape, handoff decisions, and final labels/framing.
  • Report structure, Markdown/prose rendering, story hierarchy, "top news" wording, what to emphasize, and how to explain statuses to a human.
  • Prompt-shaped taxonomies or wording that should evolve without a CLI release. Prefer adding structured JSON fields in the CLI over hardcoding prose.
  • Fixture/eval reference renderers may live under fixtures/, but do not treat them as product CLI behavior.

Keep CLI usage details in CLI help. If agents need to know a command, flag, default, source meaning, credential recovery path, or deterministic profile behavior, expose it through newsjack help, command-specific help, --help, or doctor, with tests. Skill reference files may point agents to help and explain judgment doctrine, but should not duplicate flag lists or operational help text that can drift.

Do not add or expand CLI report rendering unless it is strictly a compatibility/debug path. Canonical human-facing reports should be rendered by skills from deterministic JSON artifacts.

Common Commands

CLI tests:

cd apps/cli
go test ./...

Site checks:

cd apps/site
pnpm lint
pnpm test
pnpm build

Fixture smoke test without live credentials:

NEWSJACK_RUN_DIR=/tmp/newsjack-fixture-smoke NEWSJACK_INCLUDE_ALL_SCORED=0 \
  fixtures/newsjack-detector-agent/scripts/run-one-profile.sh simular "computer-use agents" profile.simular.json --mock

Generated Files

  • Do not commit .tmp/, fixture runs/, local databases, .claude/, .next/, node_modules/, or compiled binaries.
  • apps/cli/newsjack is a local compiled binary and is ignored.
  • Dated eval results under eval/ may be committed when they are intentional evaluation artifacts.
  • Check git status --short before and after edits. Do not remove unrelated user changes.

Skill Editing Rules

  • Skills are compositional:
    • ATOM skills do one judgment or transformation well. Example: angle-generator, story-origin-check, relevance-coarse-filter, fact-check, journalist-fit-check, news-search.
    • MOLECULE skills combine a few atoms into a bounded workflow with one clear output. Example: newsjack-detector (engine evidence + story-origin-check + angle-generator into a single freshness-gated opportunity report).
    • COMPOUND skills orchestrate multiple molecules/atoms into an end-to-end product workflow. Example (planned): a generate-client-report skill that runs newsjack-detector plus a report-generation skill.
  • Keep atomic capability in the atom. Do not duplicate atom logic inside molecule or compound skills; call, reference, or delegate to the atom instead.
  • When adding behavior, place it at the lowest level that owns the concept. If it is reusable judgment, make or update an ATOM. If it is orchestration, keep it in a MOLECULE or COMPOUND.
  • Keep public skills runtime-agnostic and user-facing.
  • Write skills for the reader, who is usually a founder/marketer/PR person, not an engineer: plain language, short sentences, define any unavoidable jargon. Prefer prose, bullets, and markdown tables over code fences; keep a fence only when it carries a real contract (a machine handoff JSON a CLI/pipeline parses, a persisted artifact's schema, a literal command, or a copy-paste template the user sends).
  • A skill's human-facing output is readable markdown (headings, bold, short lists). Structured JSON/YAML belongs only in machine handoffs (pipeline stages the CLI parses) and persisted artifacts (voice.yaml, monitor profiles, tracker configs) that tools read back — present those as a clearly-labeled secondary block, not the headline the user reads.
  • Avoid fixture, beta-client, or one-off evaluation details in public skills.
  • Keep prompts and rubrics concise enough for runtime use. A skill's rubric and a small number of representative examples live inline in its SKILL.md — do not split them into separate rubric.md/examples.md files. Only long fixture/harness examples or evaluation notes belong under fixtures/ or other reference files.
  • Follow skills/ETHICS.md and skills/WHY-NOT-SPAM.md for all PR/pitch/newsjack workflows.
  • For detector changes, preserve the separation:
    • Go CLI owns ingestion, deterministic scoring, filtering application, and freshness gate application.
    • Skills own PR judgment, story-origin reasoning, angle fit, brand safety, and handoff.

Implementation Notes

  • Prefer existing repo patterns over new abstractions.
  • Use rg/rg --files for searches.
  • Make minimal, targeted edits; do not rewrite whole files. Use whatever patch/edit tooling your harness provides.
  • Keep changes scoped. Do not reformat unrelated files.
  • If adding or renaming fixture scripts, update the fixture README and any internal script references.
  • If changing CLI behavior, update or add focused Go tests in apps/cli/cmd/newsjack/.
  • If changing report format, check golden fixtures and run go test ./... from apps/cli.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.