agentleFS
ContinueKnown publishercontinuedev/continue/extensions/cli/AGENTS.md

continue / cli

AGENTS.md36k starsChanged 10 months agoApache-2.0View on GitHub

This is a CLI tool for Continue Dev that provides an interactive AI-assisted development experience. The architecture consists of:

Trending

More talk lately.about the whole repository

Dec 2025: 1 mentionJan 2026: 2 mentionsFeb 2026: 1 mentionMar 2026: 0 mentionsApr 2026: 1 mentionMay 2026: 1 mentionJun 2026: 3 mentionsJul 2026: 3 mentionsAug 2026: 2 mentionsSep 2026: 3 mentionsOct 2026: 3 mentionsNov 2026: 4 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the continuedev/continue repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about continuedev/continue

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

See all 76

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

On GitHub · 37

32 more on GitHub

On Bluesky · 37

32 more on Bluesky

On Hacker News · 2

  • 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

4 rules. About 0 are common, 1 is distinctive, and 3 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.

  • 3

    Very specific

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

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

    Development: After building, test locally with node dist/index.js

    line 12
  2. Distinctive:

    No existing test files found - tests should be added when writing new functionality

    line 79
  3. Very specific:

    Run tests using npm run test path/or/pattern

    line 80
  4. Very specific:

    If you ever create a PR, you should be sure to check the formatting and linting first with npm run format and npm run lint / npm run …

    line 94

≈ “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 file provides guidance to AI coding agents when working with code in this repository.

Development Commands

  • Build: npm run build - Compiles TypeScript to JavaScript in dist/
  • Test: npm test - Runs Vitest tests with ESM support
  • Type Check: npm run lint - Runs TypeScript compiler without emitting files for type checking
  • Format: npm run format - Runs Prettier with --write flag to check + fix formatting
  • Start: npm start - Runs the built CLI from dist/index.js
  • Development: After building, test locally with node dist/index.js

Architecture Overview

This is a CLI tool for Continue Dev that provides an interactive AI-assisted development experience. The architecture consists of:

Core Components

  1. Entry Point (src/index.ts): Main CLI logic with two modes:

    • Headless mode: Non-interactive mode for automation/CI
    • TUI mode: Terminal User Interface using Ink/React
    • Standard mode: Traditional readline-based chat interface
  2. Authentication (src/auth/): WorkOS-based authentication system

    • ensureAuth.ts: Handles authentication flow
    • workos.ts: WorkOS configuration and token management
  3. Continue SDK Integration (src/continueSDK.ts): Initializes the Continue SDK client with:

    • API key authentication
    • Assistant configuration (slug-based)
    • Organization support
  4. Terminal UI (src/ui/): React/Ink-based TUI components

    • TUIChat.tsx: Main chat interface component
    • UserInput.tsx: Input handling with multi-line support
    • TextBuffer.ts: Text display utilities
  5. Tools System (src/tools/): Built-in development tools including:

    • File operations (read, write, list)
    • Code search functionality
    • Terminal command execution
    • Diff viewing
    • Exit tool (headless mode only)
  6. MCP Integration (src/mcp.ts): Model Context Protocol service for extended tool capabilities
  7. Hooks System (src/hooks/): Event interception system for extending CLI behavior
    • HookService.ts: Service container integration, loads config and fires events
    • hookConfig.ts: Loads hooks from settings files, merges configs from multiple sources
    • hookRunner.ts: Executes hook handlers (command, HTTP) with exit code semantics
    • fireHook.ts: Convenience functions for firing events from integration points
    • types.ts: Claude Code-compatible type definitions for hook inputs/outputs
    • Config locations (lowest to highest precedence):
      • ~/.claude/settings.json, ~/.continue/settings.json (user-global)
      • .claude/settings.json, .continue/settings.json (project)
      • .claude/settings.local.json, .continue/settings.local.json (project-local)
    • Exit code semantics: 0 = proceed, 2 = block (stderr becomes feedback), other = non-blocking error
    • JSON output: Optional structured output with hookSpecificOutput for fine-grained control
    • Hook types: command (shell), http (POST request), prompt/agent (not yet implemented)

Key Features

  • Streaming Responses: Real-time AI response streaming (streamChatResponse.ts)
  • Slash Commands: Built-in commands like /help, /exit (slashCommands.ts)
  • Multi-mode Operation: Supports TUI, headless, and standard chat modes
  • Tool Integration: Extensible tool system for development tasks

Testing Setup

  • Uses Vitest with TypeScript and ESM support
  • Configuration in vitest.config.ts
  • Tests should be written with .test.ts extension
  • No existing test files found - tests should be added when writing new functionality
  • Run tests using npm run test path/or/pattern

Build System

  • TypeScript compilation with declaration files
  • ESNext target with NodeNext module resolution
  • Outputs to dist/ directory
  • Source maps and inline sources enabled
  • JSX support for React components
  • Relative import paths require explicit file extensions, e.g. 'from "./test.js"' instead of 'from "./test"'

Important rules

  • Whenever you create / update a test, you should run the test to be certain that it passes
  • If you ever create a PR, you should be sure to check the formatting and linting first with npm run format and npm run lint / npm run lint:fix.

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.