agentleFS
Piebald-AIPiebald-AI/tweakcc/AGENTS.md

tweakcc

AGENTS.md2.5k starsChanged 10 months agoMITView on GitHub

This document provides guidelines for agentic coding assistants working in this repository. Whenever you make a logical change that belongs in one commit, update the changelog at the bottom of the "Unreleased" section. It should follow the format Change description (#PR) - @author. The change description should usually be the PR title unless there are multiple logical changes in the same PR that each deserve their own item.

Trending

Less talk lately.about the whole repository

Dec 2025: 1 mentionJan 2026: 2 mentionsFeb 2026: 0 mentionsMar 2026: 4 mentionsApr 2026: 1 mentionMay 2026: 1 mentionJun 2026: 0 mentionsJul 2026: 1 mentionAug 2026: 1 mentionSep 2026: 0 mentionsOct 2026: 1 mentionNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the Piebald-AI/tweakcc repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about Piebald-AI/tweakcc

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

See all 25

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

On GitHub · 19

14 more on GitHub
  • 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 repository2 other files it gives its agents.

The file

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

10 rules. About 0 are common, 1 is distinctive, and 9 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 9

    Very specific

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

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

    Avoid any: Use unknown with type guards or as unknown as Type for assertions

    line 47
  2. Very specific:

    Use hooks: useState, useEffect, useCallback

    line 82
  3. Very specific:

    Identifier matching: Use [$\\w]+ instead of \\w+ (includes $ for React refs)

    line 89
  4. Very specific:

    Word boundaries: Use , ; } { literal characters at regex start instead of \\b for performance

    line 90
  5. Very specific:

    Test files in src/tests/*.test.ts and src/patches/*.test.ts

    line 110
  6. Distinctive:

    Test edge cases and error conditions

    line 112
  7. Very specific:

    Use ink for CLI rendering

    line 116
  8. Very specific:

    Use chalk for terminal colors

    line 117
  9. Very specific:

    Use commander for CLI argument parsing

    line 118
  10. Very specific:

    Add shebang to index.tsx for executable support

    line 119

≈ “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

AGENTS.md

This document provides guidelines for agentic coding assistants working in this repository.

Development Commands

# Build
pnpm build           # Production build (typecheck + minify)
pnpm build:dev       # Development build (no minification)
pnpm watch           # Watch mode for iterative development

# Testing
pnpm test            # Run all tests once
pnpm test:dev        # Run tests in watch mode
npx vitest run <test-file>     # Run single test file
pnpm run test -- <pattern>     # Run tests matching pattern

# Linting & Formatting
pnpm lint            # Typecheck + ESLint
pnpm format          # Format code with Prettier

# Run CLI
pnpm start           # Run built CLI
node dist/index.mjs  # Alternative run command

Making changes

Whenever you make a logical change that belongs in one commit, update the changelog at the bottom of the "Unreleased" section. It should follow the format Change description (#PR) - @author. The change description should usually be the PR title unless there are multiple logical changes in the same PR that each deserve their own item.

Imports

// Group imports in this order:
import fs from 'node:fs/promises'; // Node.js built-ins (use node: prefix)
import path from 'node:path';
import chalk from 'chalk'; // Third-party libraries
import ink from 'ink';
import { getConfig } from '@/config'; // Internal imports (use @/ alias)
import { PatchConfig } from '@/types';

TypeScript

  • Strict mode enabled in tsconfig.json
  • Avoid any: Use unknown with type guards or as unknown as Type for assertions
  • Interfaces for complex objects, types for simple unions
  • Custom errors: Extend Error class with name property
export class CustomError extends Error {
  constructor(message: string) {
    super(message);
    this.name = 'CustomError';
  }
}

Naming Conventions

  • Files: camelCase for logic (config.ts), PascalCase for React components (MainView.tsx)
  • Functions: camelCase (getConfig, detectInstallation)
  • Constants: UPPER_SNAKE_CASE (CONFIG_DIR, DEFAULT_CONFIG)
  • Components: PascalCase with descriptive names (ThinkingVerbsView)
  • Interfaces: PascalCase, descriptive (StringsPrompt, MarkdownPrompt)

Error Handling

try {
  const result = await someAsyncOperation();
  return result;
} catch (error) {
  debug('Error occurred:', error);
  return null; // Graceful fallback
}

React Patterns

  • Use hooks: useState, useEffect, useCallback
  • Context API for state management
  • Ink components: Box, Text, Newline
  • Explicit prop types with interfaces

Writing Patches

  • Identifier matching: Use [$\\w]+ instead of \\w+ (includes $ for React refs)
  • Word boundaries: Use , ; } { literal characters at regex start instead of \\b for performance
  • Avoid \\b: Performance issue in V8, use literal alternatives

Testing

// Use Vitest globals
import { describe, it, expect, beforeEach, vi } from 'vitest';

describe('functionName', () => {
  beforeEach(() => {
    vi.mock('some-module');
  });

  it('should do something', () => {
    expect(result).toBe(expected);
  });
});
  • Test files in src/tests/*.test.ts and src/patches/*.test.ts
  • Mock dependencies with vi.mock()
  • Test edge cases and error conditions

CLI Patterns

  • Use ink for CLI rendering
  • Use chalk for terminal colors
  • Use commander for CLI argument parsing
  • Add shebang to index.tsx for executable support

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.