notebooklab: Instructions file for Codex

AGENTS.md

notebooklab AGENTS.md is an instructions file for Codex, OpenCode from xiaojiou176-open/notebooklab. It costs 1,656 tokens per session, scanned A, original, MIT.

A repository guide that tells coding agents and contributors which project instructions and files to read, and how to search before adding rules or documentation.

In plain words
What is it for?
Use it when navigating the notebooklab codebase, choosing the right module entry point, or checking existing rules before making changes.
Why use it?
It reduces confusion about where project guidance lives and helps prevent duplicate or misplaced instructions.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions CLAUDE.md; mentions AGENTS.md; mentions Codex.

This is xiaojiou176-open/notebooklab's own configuration. It tells Codex and OpenCode how to work on notebooklab itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything notebooklab configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is cd apps/web && npm ci && cd ../...

Reuse

Borrowing it

Nothing to install: this file belongs to xiaojiou176-open/notebooklab. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/xiaojiou176-open/notebooklab/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/xiaojiou176-open/notebooklab

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for notebooklab AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/xiaojiou176-open/notebooklab/agents-md/github.svg)](https://agentmods.dev/instructions/xiaojiou176-open/notebooklab/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/xiaojiou176-open/notebooklab/agents-md"><img src="https://agentmods.dev/badge/instructions/xiaojiou176-open/notebooklab/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for notebooklab AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/xiaojiou176-open/notebooklab/agents-md"><img src="https://agentmods.dev/badge/instructions/xiaojiou176-open/notebooklab/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,656 This file is loaded in full into every session.
When invoked 1,656 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.01656 $0.01656
Opus 5.5 $0.00662 $0.00662
Sonnet 5.5 $0.00331 $0.00331
Haiku 4.5 $0.00166 $0.00166

Measured 1mo ago against content hash a2a18d79a473, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

notebooklab AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 116 lines

How it starts

The opening of the file, as written. The whole thing — 116 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md

Internal operator guidance for this fork. Not canonical public collaboration policy; use README.md, CONTRIBUTING.md, SECURITY.md, and SUPPORT.md for public-facing authority.

Repository-level operator guide.

Purpose

  • Route contributors and agents to the correct module entrypoint quickly.
  • Keep runtime, documentation, and review rules small and stable.
  • Preserve a minimal, open-source-friendly repository surface.

Kept navigation surfaces

  • Root: AGENTS.md, CLAUDE.md
  • Main modules: apps/web, services/api, packages/core, tests

Nearest-first rule

Read order is fixed:

  1. nearest CLAUDE.md
  2. nearest AGENTS.md
  3. root CLAUDE.md
  4. root AGENTS.md
  5. a targeted public doc under docs/

Search-before-write

Run these commands before adding rules, docs, or workflow policy:

rg -n "<keyword>" AGENTS.md CLAUDE.md README*.md docs config contracts tooling services packages apps tests ops evals mutants
rg --files -g 'AGENTS.md' -g 'CLAUDE.md' -g 'README*.md'

Record the commands plus at least one evidence token such as README.md:1 or services/api/main.py:1.

Non-negotiable repo rules

  • Do not track .agents/, .agent/, .codex/, .claude/, .runtime-cache/, log directories, or log files.
  • Current policy is stricter than earlier closeout phases: there are now zero tracked exceptions under .agents/.
  • If .agents/ material is needed locally for planning or handoff, keep it untracked and repo-ignored only.
  • Keep tracked docs and navigation files English-only.
  • Keep the public docs surface minimal.
  • Route Python bootstrap commands through tooling/scripts/runtime/run_uv_managed.sh or the CI container wrapper.
  • When testing Git path visibility for tracked host artifacts, distinguish tracked in the index from ignored by rules; do not use git status --untracked-files=all as a proxy for both.

Shared Workstation Hygiene

  • Treat browser instances, browser profiles, tabs, Docker containers, and cache directories as shared workstation resources, not disposable infinite capacity.
  • Treat host-process control as a hard safety boundary:
    • never add killall, pkill, or pattern-based host cleanup to worker, test, CI, or local-dev paths
    • only stop repo-owned processes through recorded positive PID files under .runtime-cache/local/pids/
    • if a port is occupied by an unknown PID, treat it as a blocker instead of killing first and asking questions later
    • desktop or browser cleanup must stay repo-owned and exact-match; broad host cleanup is out of scope
  • Start with ownership-first machine awareness:
    • identify which browser/profile/tab/container/cache surface belongs to this repo and this task
    • treat any surface owned by another repo or another active L1 lane as off-limits unless the user explicitly authorizes intervention
  • When a task needs Chrome, Chromium, Safari, Playwright, or another browser-backed surface:
    • if more than six browser instances are already active on the workstation, do not open a new one until ownership is checked and a smaller-footprint path is ruled out
    • open the minimum number of windows and tabs required
    • prefer background execution; treat detached browser/runtime launch as review-required and only acceptable inside repo-owned browser roots or directly held child handles
    • avoid stealing the current desktop focus unless foreground control is strictly required for the task
    • close every browser window or tab you created when the task is done
    • do not leave background browser processes running without a current task need
    • when this repo provides a generated browser identity tab, keep it as the human-facing anchor for that lane when practical
    • do not script Chrome private pin-tab, avatar, theme, or Dock customization as part of the normal repo bootstrap; keep those manual if desired
  • Never reuse or take over browser instances, tabs, or profiles created by another repo or another L1 lane. Only use browser state you created for the current repo, or state the user explicitly assigned to this repo.
  • If ownership is unclear, treat the browser or cache surface as off-limits and record the ambiguity instead of guessing.
  • If a task requires a cloned or temporary browser profile, keep it isolated to the current repo/task and remove the temporary clone when finished. Do not accumulate abandoned browser-profile copies under cache roots.
  • Login-state checks must stop early:
    • use at most one or two clearly-owned browser/profile attempts for the current repo
    • if those attempts show that human login or owner-owned session state is required, record an external blocker instead of opening more browser instances or profile clones
  • Keep Docker/buildx/container state governed:
    • do not leave throwaway containers, builders, or large temporary caches running after the task that created them is finished
    • do not perform broad cleanup that could disrupt another active repo or another L1 lane without explicit user approval
  • Host safety is hard policy:
    • do not use killall, pkill -f, kill -9, xargs kill, osascript, or System Events in tracked automation paths
    • do not signal negative/zero PIDs or broad port listeners that are not proven repo-owned
    • local runtime stop/restart flows must target repo-recorded PID files or repo-owned command signatures only
  • Git / GitHub closeout must be equally disciplined:
    • close or delete only those branches, worktrees, and PR tails whose unique work is already merged into main or otherwise proven superseded
    • treat dirty worktrees with unique local changes as live continuation lanes, not automatic cleanup targets
  • Current-repo Git / GitHub closeout writes are allowed only inside the user-authorized closeout scope.
  • Default to read-only behavior on external accounts and platforms outside that scope. Do not publish releases, edit off-scope repository metadata, submit listings, change domain or DNS state, post externally, mutate settings, or take any other write action against the user's external accounts unless the user explicitly asked for that exact write in the current task.
  • Repository-scoped Git and GitHub closeout writes require explicit task authorization and do not extend to release publication, homepage/metadata edits, domain/DNS actions, third-party listing submissions, social posting, or partnership/outreach writes.

Read the full file on GitHub · 116 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 116 lines · 1,656 tokens per session scan A a2a18d79a473

Subscribe to this mod's changes

notebooklab AGENTS.md is an instructions file published in the GitHub repository xiaojiou176-open/notebooklab (1 stars, last pushed 2mo ago), licensed MIT. It adds 1,656 tokens to every session, about $0.0066 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories