agentleFS
yigitkonuryigitkonur/cli-continues/AGENTS.md

cli-continues

AGENTS.md1.6k starsChanged 8 months agoMITView on GitHub

Agent behavior instructions for continues — the cross-tool AI session handoff CLI. Read CLAUDE.md for architecture, types, and the step-by-step guide for adding a new parser. This file covers workflow, coding standards, and anti-patterns. All five steps are required. Missing any one is a bug. See CLAUDE.md for detailed implementation guidance.

Trending

Quiet since June.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 2 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 1 mentionJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the yigitkonur/cli-continues repository that our weekly crawl found: only 3 in all, so this is a hint, not a trend. There is no adoption data for this file yet.
  • 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

Show its rules and text

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

13 rules. About 0 are common, 2 are distinctive, and 11 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 11

    Very specific

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

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

    Before any commit: run pnpm run check (pnpm lint && pnpm build).

    line 7
  2. Very specific:

    After changing a parser or fixture: run pnpm test and confirm all tests pass.

    line 8
  3. Very specific:

    After adding a new tool: run pnpm run link to test the global continues / cont binary locally.

    line 9
  4. Very specific:

    ESM-only: all local imports must end in .js, even for .ts source files (e.g., import { foo } from './foo.js').

    line 14
  5. Very specific:

    Logging: use logger from src/logger.ts for all diagnostic output.

    line 17
  6. Very specific:

    Tool activity: use SummaryCollector from src/utils/tool-summarizer.ts in every parser.

    line 19
  7. Very specific:

    JSONL: use the shared streaming helpers in src/utils/jsonl.ts, never fs.readFileSync + split('\n').

    line 20
  8. Distinctive:

    All five steps are required.

    line 26
  9. Very specific:

    Add tool name to TOOL_NAMES in src/types/tool-names.ts

    line 28
  10. Very specific:

    Create src/parsers/<tool>.ts exporting parse<Tool>Sessions() and extract<Tool>Context()

    line 29
  11. Very specific:

    Add create<Tool>Fixture() in src/__tests__/fixtures/index.ts

    line 31
  12. Very specific:

    Add conversion test cases in src/__tests__/unit-conversions.test.ts

    line 32
  13. Distinctive:

    Do not add new runtime dependencies without strong justification.

    line 42

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

Agent behavior instructions for continues — the cross-tool AI session handoff CLI. Read CLAUDE.md for architecture, types, and the step-by-step guide for adding a new parser. This file covers workflow, coding standards, and anti-patterns.

Workflow

  • Before any commit: run pnpm run check (pnpm lint && pnpm build). Fix all Biome errors; warnings are advisory.
  • After changing a parser or fixture: run pnpm test and confirm all tests pass. Do not commit with failing tests.
  • After adding a new tool: run pnpm run link to test the global continues / cont binary locally.
  • Never run pnpm run test:watch, e2e-conversions.test.ts, real-e2e-full.ts, or stress-test.ts in CI — these require live session files on the developer's machine.

Coding Standards

  • ESM-only: all local imports must end in .js, even for .ts source files (e.g., import { foo } from './foo.js').
  • No any: Biome reports noExplicitAny as a warning. Avoid it; document the reason if unavoidable.
  • Exit codes: set process.exitCode = N rather than calling process.exit(N).
  • Logging: use logger from src/logger.ts for all diagnostic output. Never use bare console.log/console.warn/console.error in library code. TUI display goes through @clack/prompts or chalk via the display layer.
  • Error types: throw typed errors from src/errors.ts on user-facing paths, not bare new Error().
  • Tool activity: use SummaryCollector from src/utils/tool-summarizer.ts in every parser. Do not build ToolUsageSummary[] arrays manually.
  • JSONL: use the shared streaming helpers in src/utils/jsonl.ts, never fs.readFileSync + split('\n').
  • SQLite (OpenCode, Crush parsers): use built-in node:sqlite — do not add third-party SQLite dependencies.
  • Biome rules in force: noEmptyBlockStatements (error), noUnusedImports (error), useConst (error). Empty catch {} blocks fail the linter; use catch (err) { logger.debug(...) } instead.

Adding a New Tool — Checklist

All five steps are required. Missing any one is a bug. See CLAUDE.md for detailed implementation guidance.

  1. Add tool name to TOOL_NAMES in src/types/tool-names.ts
  2. Create src/parsers/<tool>.ts exporting parse<Tool>Sessions() and extract<Tool>Context()
  3. Register in src/parsers/registry.ts (the completeness assertion throws at module load if missing)
  4. Add create<Tool>Fixture() in src/__tests__/fixtures/index.ts
  5. Add conversion test cases in src/__tests__/unit-conversions.test.ts

Dependencies

  • @clack/prompts — all interactive TUI prompts and spinners. Do not use readline or inquirer.
  • chalk — terminal color. Chalk v4 is installed (CommonJS compat import); do not upgrade to v5+ (ESM-only).
  • commander — CLI argument parsing.
  • ora — non-interactive spinners.
  • yaml — YAML parsing for Copilot sessions.
  • zod — runtime schema validation. Use z.safeParse() where failures are recoverable.
  • Do not add new runtime dependencies without strong justification. The install footprint is intentionally small.

Anti-Patterns to Avoid

  • Writing to tool storage directories — the tool is read-only. Any write to ~/.claude/, ~/.codex/, etc. is a severe bug.
  • exec() with string interpolation — always use spawn() with an argument array in resume.ts. Session IDs and paths can contain shell metacharacters.
  • fs.readFileSync/fs.writeFileSync in parsers — these block the event loop. Use async fs APIs or shared streaming helpers.
  • Duplicating parser-helpers — cleanSummary, extractRepoFromCwd, homeDir live in src/utils/parser-helpers.ts. Import them; do not reimplement.
  • Hardcoding tool names — derive from TOOL_NAMES or SessionSource. Never write if (tool === 'claude' || tool === 'codex' || ...).
  • Importing node:sqlite outside OpenCode/Crush parsers — SQLite is only needed for those two tools. Do not spread this dependency.
  • Embedding secrets in handoff markdown — .continues-handoff.md is written to project directories and may be committed or read by other AI tools.

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.