agentleFS
owainlewisowainlewis/agent-worker/CLAUDE.md

agent-worker

CLAUDE.md62 starsChanged 9 months agoMITView on GitHub

TypeScript CLI built with Bun. Polls Linear for tickets and dispatches them to an agent harness. When solving a ticket:

The file

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

5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When solving a ticket:

    line 14
  2. Distinctive:

    Write the code to solve the ticket

    line 16
  3. Very specific:

    Run bun test and fix any failures

    line 17
  4. Very specific:

    Run bun test again to confirm fixes didn't break anything

    line 20
  5. Distinctive:

    No classes — use plain functions and interfaces

    line 24

≈ “Common” is an estimate: at least 1 in 5 of the 29,248 CLAUDE.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
CLAUDE.md

Agent Worker

TypeScript CLI built with Bun. Polls Linear for tickets and dispatches them to an agent harness.

Stack

  • Runtime: Bun
  • Language: TypeScript
  • Testing: bun test
  • Dependencies: @linear/sdk, zod, yaml

Workflow

When solving a ticket:

  1. Write the code to solve the ticket
  2. Run bun test and fix any failures
  3. Review your changes for bugs, security issues, and code quality — use CodeRabbit if available
  4. Fix any issues found in the review
  5. Run bun test again to confirm fixes didn't break anything

Conventions

  • No classes — use plain functions and interfaces
  • Validate config with zod schemas (src/config.ts)
  • Executors implement the CodeExecutor interface (src/pipeline/executor.ts)
  • Providers implement the TicketProvider interface (src/providers/types.ts)
  • Hooks are shell commands run via src/pipeline/hook-runner.ts
  • Tests live in test/ mirroring src/ structure

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.