agentleFS
alookaialookai/alook/AGENTS.md

alook

AGENTS.md1.2k starsChanged 3 months agoApache-2.0View on GitHub

This updates every src/*/package.json and commits release: vX.Y.Z. Add --min-cli when the release contains breaking changes that require users to update their CLI. Add --desktop when the release includes desktop app changes that need a new build. Mobile store releases are not configured; add current signing accounts and rebuild the release workflow before exposing a mobile release flag. After reviewing the commit: This triggers: - CI — typecheck, lint, tests, coverage (uploaded to Codecov) - Auto-Tag & Release — CI…

  • Commits and pushes

Trending

Quiet since August.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 1 mentionAug 2026: 1 mentionSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the alookai/alook repository that our weekly crawl found: only 2 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Who's talking about alookai/alook

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

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repositoryOne other file it gives its agents.

The file

Show its rules and text

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

15 rules. About 0 are common, 7 are distinctive, and 8 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 8

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Don't write comment: comment may be outdated, code never.

    line 14
  2. Very specific:

    run pnpm typecheck, pnpm test as the final check when you think the code is ready.

    line 15
  3. Distinctive:

    don't stash others' works, you can wait, but stash others' work will cause many problems.

    line 19
  4. Very specific:

    All workspace packages share one version.

    line 22
  5. Very specific:

    Add --min-cli when the release contains breaking changes that require users to update their CLI.

    line 30
  6. Very specific:

    Add --desktop when the release includes desktop app changes that need a new build.

    line 31
  7. Distinctive:

    After reviewing the commit:

    line 34
  8. Distinctive:

    When every task is completed, make sure you check the task checkbox in the corresponding plan.

    line 55
  9. Distinctive:

    always use the features/show case to present what you're going to build.

    line 57
  10. Very specific:

    use checklist in TODOS section, for each checkbox, you must have a clear description of what to do and list all the files that will be …

    line 59
  11. Distinctive:

    never report to me about your code changes without running tests first.

    line 70
  12. Distinctive:

    always write tests for your code changes, only when your code changes are already covered by the current tests.

    line 71
  13. Very specific:

    Use Drizzle ORM operators for all queries.

    line 80
  14. Very specific:

    Use export const metadata = { ...

    line 112
  15. Very specific:

    Always use the thin-scrollbar class alongside overflow-y-auto or overflow-x-auto.

    line 125

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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

Alook

Alook's main purpose is to make the cli agent always on, and give it a email address.

Navigation

  • plans/: place your dev plans (gitignored, local only)
  • src/shared: shared types, schema, queries, validators
  • src/web: main Next.js app on Cloudflare Workers (D1 + R2); the independently built Blog app lives at src/web/blog
  • src/app: local app CLI
  • src/daemon: agent runtime and daemon CLI
  • src/email-worker: inbound email Cloudflare Worker
  • src/ws-do: WebSocket Durable Object worker

MUST

  • Don't write comment: comment may be outdated, code never. Unless the comment are specs and rules.
  • run pnpm typecheck, pnpm test as the final check when you think the code is ready.
  • service must be STATELESS! All the state must be in DB or local, never put important states in memory.
  • scope the queries before, not check the ownership after. don't query data then check if the data belongs to a workspace, use workspace id ahead to query the data.
  • respect others' works, don't reset any other git changes just because it's not done by you, others may working at the same time, never revert anything without asking the user.
    • don't stash others' works, you can wait, but stash others' work will cause many problems.

Release — Unified Version Bump

All workspace packages share one version. Use pnpm bump to release:

pnpm bump 0.0.11      # explicit version (v prefix optional)
pnpm bump patch        # auto-increment patch/minor/major
pnpm bump patch --min-cli  # also update MIN_CLI_VERSION in src/web/wrangler.toml
pnpm bump patch --desktop  # trigger desktop build

This updates every src/*/package.json and commits release: vX.Y.Z. Add --min-cli when the release contains breaking changes that require users to update their CLI. Add --desktop when the release includes desktop app changes that need a new build. Mobile store releases are not configured; add current signing accounts and rebuild the release workflow before exposing a mobile release flag.

After reviewing the commit:

git push origin main

This triggers:

  • CI — typecheck, lint, tests, coverage (uploaded to Codecov)
  • Auto-Tag & Release — CI detects the release: vX.Y.Z commit message, creates the git tag, and creates a GitHub Release with generated changelog (auto-tag-release.yml)
  • @alook/app → auto-published to npm via publish-app.yml (watches src/app/package.json)
  • @alook/daemon → auto-published to npm via publish-daemon.yml (watches src/daemon/package.json)
  • CF Workers → each module redeploys when its own package.json changes

E2E UI (browser tests)

Playwright browser E2E for the web UI lives in src/web/src/test/e2e-ui/. The e2e-ui.yml workflow starts for every PR and merge-queue check, then runs the browser matrix only when the diff touches src/web/src/shared/src/ws-do; blog-only and unrelated changes finish through the lightweight scope and gate jobs. The workflow also supports manual full runs, but does not run after pushes to main. It is deliberately NOT tied to the release chain: a release: bump only changes version numbers, so gating there would test nothing, and the production web app deploys via Cloudflare's own Git integration (outside GitHub Actions) which a workflow gate can't block anyway. Run locally with pnpm test:e2e-ui (backs up and restores your local .wrangler/state).

Branch protection may require the stable UI E2E Gate check. Do not require the individual UI Playwright E2E (n/N) matrix jobs, because skipped shards are expected for changes outside the UI scope.

Plan-driven Development

  • You must make a markdown plan at plans/ before you implement any my request, otherwise I will reject your implementation.
  • The plans/ directory is gitignored — plans are kept locally and do not need to be committed or included in PRs.
  • Remember to update the dev plan after you finish coding.
  • When every task is completed, make sure you check the task checkbox in the corresponding plan.
  • A plan should at least contain features/show case, designs overview, new deps, TODOS, QA tests sections.
    • always use the features/show case to present what you're going to build.
    • in new deps section, you must list all the new external dependencies that will be added.
    • use checklist in TODOS section, for each checkbox, you must have a clear description of what to do and list all the files that will be modified.
      • at the end of TODOS, you must include test cases sub section, use checklist format to list all the test cases that should be covered.
    • QA tests section is REQUIRED. It must be a checklist of end-to-end user journeys the alook-c-qa agent will drive after implementation lands. For each journey: name it, list the routes/testids it exercises, and state the backend signal (D1 row, WS frame, worker log) that proves it worked. This section is the QA agent's brief — it will fail if the section is missing or vague.

QA after every new /c feature

  • After any change that touches src/web (especially the /c surface), src/ws-do, or src/shared community queries/schema, you MUST launch the alook-c-qa subagent to verify the feature end-to-end before reporting the task complete. Typecheck + unit tests are necessary but not sufficient — a green build with a broken user journey is still a broken feature.
  • The QA agent lives at .claude/agents/alook-c-qa.md. Invoke it via the Agent tool with subagent_type: alook-c-qa and hand it the QA tests checklist from the plan. It boots (or reuses) the local dev stack, drives the browser, correlates against D1 + WS + worker logs, and reports PASS/FAIL/BLOCKED with evidence.
  • If the QA agent returns FAIL or BLOCKED, treat that as an unfinished task — fix the defect and re-run the QA agent. Do not mark the plan checkbox complete on a failing journey. If a journey is genuinely out of scope for a change, say so in the report and skip it explicitly, don't silently drop it.
  • The QA agent is scoped to /c (community). For changes elsewhere in src/web (blog, marketing, calendar, etc.) it is not the right tool — run the relevant unit/E2E tests directly.

Always WRITE/RUN TESTS!

  • never report to me about your code changes without running tests first.
  • always write tests for your code changes, only when your code changes are already covered by the current tests.

Don't use plan MODE, try to write the plan md directly

Database — Cloudflare D1 (SQLite) + Drizzle ORM

Schema lives in src/shared/src/schema.ts using sqliteTable from drizzle-orm/sqlite-core. Queries use the shared query modules in src/shared/src/queries/.

Use Drizzle ORM operators for all queries. Never use sql template literals unless there is no ORM equivalent (atomic increment, upsert excluded.* references).

Why: Drizzle aliases tables internally. Raw SQL with hardcoded table/column names breaks silently.

Good — ORM operators

// Aggregations
db.select({ messageCount: count(message.id) })
  .from(conversation)
  .leftJoin(message, eq(message.conversationId, conversation.id))
  .groupBy(conversation.id)

// Comparisons with ISO strings (D1 stores timestamps as TEXT)
gt(verificationCode.expiresAt, new Date().toISOString())
lt(verificationCode.attempts, 5)

// Null checks
isNull(agentRuntime.lastSeenAt)
isNotNull(agentTaskQueue.sessionId)

Acceptable exceptions

// Atomic increment — no ORM equivalent
.set({ attempts: sql`${verificationCode.attempts} + 1` })

Blog posts

Posts live in src/web/blog/src/content/<slug>.mdx; images live in src/web/blog/public/blog/<slug>/.

Frontmatter

Use export const metadata = { ... } — NOT YAML --- frontmatter. The loader does a dynamic import and reads mod.metadata; MDX config has no remark-frontmatter plugin, so YAML blocks render as literal text and the post disappears from the listing.

Required fields (see src/web/blog/src/lib/blog/types.ts): slug, title, date, author, excerpt, readingTime. Missing any → post is skipped with a warning.

Images

  • Path: src/web/blog/public/blog/<slug>/<name>.<ext>, referenced from MDX as /blog/<slug>/<name>.<ext>.
  • Naming: short semantic names (hero.png, timeline.png, workflow-1-dev-team-pipeline.svg). No date prefix. Don't repeat the slug — the parent directory already carries it.
  • Format: png for photos/screenshots, svg for diagrams, webp when compression matters. Pick one; don't mix formats for the same purpose in one post.
  • CI accepts .jpg, .jpeg, .png, .svg, and .webp; each referenced image must be at most 2 MiB.
  • Safe margin (anti-crop): keep ≥8% of the shorter side (and ≥64px) empty cream/bg padding on all four edges. Blog MDX applies rounded-lg on img, so ink or labels flush to the canvas edge get clipped. Do not stretch-crop heroes into OG size if that eats the margin — letterbox on #FEFDFB instead.

Scrollbar

Always use the thin-scrollbar class alongside overflow-y-auto or overflow-x-auto. Never use bare overflow-auto without it.

<div className="overflow-y-auto thin-scrollbar">...</div>

UIUX

read @DESIGN.md

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.