tuck: Instructions file for Codex

AGENTS.md

tuck AGENTS.md is an instructions file for Codex, OpenCode from Pranav-Karra-3301/tuck. It costs 4,543 tokens per session, scanned A, original, MIT.

AI coding instructions for Tuck, a Node.js command-line tool that manages configuration files across computers using Git.

In plain words
What is it for?
Use them when adding or changing Tuck commands, terminal interactions, file operations, Git integration, or validation.
Why use it?
They provide the project's core rules, technology choices, and safety expectations so changes fit the existing tool.

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 Pranav-Karra-3301/tuck's own configuration. It tells Codex and OpenCode how to work on tuck 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 tuck configures →

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/user/.tuck/config.json.

Reuse

Borrowing it

Nothing to install: this file belongs to Pranav-Karra-3301/tuck. 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/Pranav-Karra-3301/tuck/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/Pranav-Karra-3301/tuck

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 tuck AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/pranav-karra-3301/tuck/agents-md.svg)](https://agentmods.dev/instructions/pranav-karra-3301/tuck/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/pranav-karra-3301/tuck/agents-md"><img src="https://agentmods.dev/badge/instructions/pranav-karra-3301/tuck/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 4,543 This file is loaded in full into every session.
When invoked 4,543 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.04543 $0.04543
Opus 5 $0.02271 $0.02271
Sonnet 5 $0.00909 $0.00909
Haiku 4.5 $0.00454 $0.00454

Measured 8d ago against content hash ef82fdc723b0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

tuck 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 8d 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 · 582 lines

How it starts

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

AGENTS.md - AI Coding Assistant Guidelines for tuck

Instructions for GitHub Copilot, OpenAI Codex, and other AI coding assistants working on the tuck project.

Project Overview

tuck is a modern dotfiles manager CLI built with TypeScript and Node.js. It provides a beautiful, safe, and git-native way to manage configuration files across machines.

Core Values

  1. Safety First — Never lose user data, always confirm destructive operations
  2. Beautiful by Default — Polished terminal UI using @clack/prompts, chalk, boxen
  3. Git-Native — Built on git but abstracts complexity
  4. Zero-Config Start — Works immediately, powerful when configured

Tech Stack Reference

Component Technology Notes
Runtime Node.js 18+ ESM modules only
Language TypeScript 5.x Strict mode enabled
Package Manager pnpm 9+ Use pnpm not npm
CLI Framework Commander.js v11+
Prompts @clack/prompts For interactive UI
Styling chalk, boxen, ora Terminal colors/boxes/spinners
Git simple-git Async git operations
File System fs-extra Extended fs operations
Validation Zod Runtime type validation
Testing Vitest Unit and integration tests
Build tsup Bundle to single file

Directory Structure

tuck/
├── src/
│   ├── commands/        # CLI command implementations
│   │   ├── init.ts      # tuck init - Initialize tuck
│   │   ├── add.ts       # tuck add <path> - Track a file
│   │   ├── remove.ts    # tuck remove <path> - Untrack a file
│   │   ├── sync.ts      # tuck sync - Sync changes
│   │   ├── push.ts      # tuck push - Push to remote
│   │   ├── pull.ts      # tuck pull - Pull from remote
│   │   ├── restore.ts   # tuck restore - Restore to the system
│   │   ├── status.ts    # tuck status - Show status
│   │   ├── list.ts      # tuck list - List tracked files
│   │   ├── diff.ts      # tuck diff - Show differences
│   │   ├── config.ts    # tuck config - Manage configuration
│   │   ├── apply.ts     # tuck apply - Apply dotfiles from repo
│   │   ├── undo.ts      # tuck undo - Restore Time Machine snapshots
│   │   ├── scan.ts      # tuck scan - Detect dotfiles on system
│   │   ├── secrets.ts   # tuck secrets - Manage secrets/placeholders
│   │   ├── encryption.ts # tuck encryption - Manage backup encryption
│   │   ├── doctor.ts    # tuck doctor - Health/safety diagnostics
│   │   ├── verify.ts    # tuck verify - Verify system/repo/manifest
│   │   ├── bundle.ts    # tuck bundle - Manage bundles (file groups)
│   │   ├── context.ts   # tuck context - Track AI agent configs
│   │   ├── mcp.ts       # tuck mcp - Model Context Protocol server
│   │   ├── preset.ts    # tuck preset - Apply/publish curated bundles
│   │   └── repo.ts      # tuck repo - Machine-local repo bindings
│   ├── lib/             # Core modules (~38 files + subdirs below)
│   │   ├── paths.ts     # Path utilities
│   │   ├── config.ts    # Config management
│   │   ├── manifest.ts  # File tracking
│   │   ├── manifestFile.ts # Manifest read/write
│   │   ├── git.ts       # Git wrapper
│   │   ├── github.ts    # GitHub CLI integration
│   │   ├── files.ts     # File operations
│   │   ├── fileTracking.ts # File tracking utilities
│   │   ├── trackPipeline.ts # Track pipeline orchestration
│   │   ├── backup.ts    # Backup system
│   │   ├── timemachine.ts # Snapshot/time-machine backups
│   │   ├── hooks.ts     # Lifecycle hooks
│   │   ├── detect.ts    # Dotfile detection
│   │   ├── binary.ts    # Binary file detection
│   │   ├── merge.ts     # Smart merging (shell/PowerShell)
│   │   ├── mergeConflicts.ts # Merge-conflict handling
│   │   ├── materialize.ts # Materialize templates/encrypted on apply
│   │   ├── template.ts  # Template rendering
│   │   ├── patternsRegistry.ts # Detection pattern registry
│   │   ├── platform.ts  # Cross-platform (incl. Windows) helpers
│   │   ├── state.ts     # Platform state dir (audit log, snapshots)
│   │   ├── stateModel.ts # State model types/helpers
│   │   ├── audit.ts     # Audit-log writing
│   │   ├── repoScope.ts # Repo-scoped tracking resolution
│   │   ├── writeContext.ts # Sandboxed write context (--root)
│   │   ├── commandPath.ts # Command/executable path resolution
│   │   ├── jsonOutput.ts # JSON envelope helpers
│   │   ├── doctor.ts    # Diagnostics engine
│   │   ├── remoteChecks.ts # Remote repository checks
│   │   ├── remoteSetup.ts  # Remote setup helpers
│   │   ├── providerSetup.ts # Git provider setup wizard
│   │   ├── tuckignore.ts # .tuckignore file handling
│   │   ├── validation.ts # Input validation utilities
│   │   ├── updater.ts   # Update notifications
│   │   ├── crypto/      # At-rest encryption (AES-256-GCM) + OS keystore/
│   │   ├── providers/   # Git provider implementations (github/gitlab/custom/local)
│   │   ├── secretBackends/ # 1Password/Bitwarden/pass/local backends
│   │   └── secrets/     # Secret detection, redaction, storage
│   ├── ui/              # UI components
│   │   ├── banner.ts    # ASCII art
│   │   ├── logger.ts    # Styled logs
│   │   ├── prompts.ts   # Interactive prompts
│   │   ├── spinner.ts   # Loading spinners
│   │   ├── progress.ts  # Progress indicators
│   │   ├── merge.ts     # Merge-conflict UI
│   │   ├── theme.ts     # UI theme definitions
│   │   └── table.ts     # Table output
│   ├── schemas/         # Zod schemas
│   │   ├── config.schema.ts        # Configuration schema
│   │   ├── manifest.schema.ts      # Manifest schema
│   │   ├── secrets.schema.ts       # Secrets schema
│   │   ├── repos.schema.ts         # Repo-bindings schema
│   │   ├── secretMappings.schema.ts # Secret-mappings schema
│   │   └── snapshot.schema.ts      # Snapshot schema
│   ├── constants.ts     # App constants
│   ├── types.ts         # TypeScript types
│   ├── errors.ts        # Custom errors
│   └── index.ts         # Entry point
├── tests/               # Test files
├── dist/                # Build output
└── docs/                # Documentation

Read the full file on GitHub · 582 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. 8d ago First seen · 582 lines · 4,543 tokens per session scan A ef82fdc723b0

Subscribe to this mod's changes

tuck AGENTS.md is an instructions file published in the GitHub repository Pranav-Karra-3301/tuck (15 stars, last pushed 1mo ago), licensed MIT. It adds 4,543 tokens to every session, about $0.0227 per session on Opus 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-30.

Related

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens