caelum0x 49b183818c Unify gitgram + aitimemachine into the monorepo (de-submodule) and merge vendored engines
Convert gitgram/ and aitimemachine/ from embedded git repos (which showed as
opaque submodule gitlinks on GitHub) into fully-tracked first-party content.

AITM now merges its 7 vendored repos as first-party engines:
- memory: beads (Go task DAG) + context7 (docs SDK), unified into saved_contexts
- git: vendored C git (bundled binary) + gitnexus (in-process code intelligence)
- agentic: a2a (@a2a-js/sdk) + pal (AITM-managed Python subprocess)

Includes the full session's product build: Gitgram web/mobile/backend features,
AITM website/CLI/MCP, the unified memory layer, engine build tooling
(scripts/build-engines.sh, Dockerfile, CI), docs (README, ENGINES.md, ARCHITECTURE.md),
and extensive test suites.

Build artifacts, node_modules, external/, and gemini-cli are gitignored.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-23 14:14:09 +03:00

1.9 KiB

alwaysApply
alwaysApply
true

repo-to-text

Project Overview

repo-to-text is a command-line tool that converts a directory's structure and contents into a single text file. It generates a formatted XML representation that includes the directory tree and file contents, making it easy to share code with LLMs for development and debugging.

Usage

  • Install: pip install repo-to-text
  • Run: cd <your-repo-dir> && repo-to-text
  • The result will be saved in the current directory as repo-to-text_YYYY-MM-DD-HH-MM-SS-UTC.txt

Common Commands

  • repo-to-text - Process current directory
  • repo-to-text /path/to/dir - Process specific directory
  • repo-to-text --output-dir /path/to/output - Specify output directory
  • repo-to-text --stdout > myfile.txt - Output to stdout and redirect to file
  • repo-to-text --create-settings - Create a default settings file

Output Format

The tool generates an XML-structured output with:

  • Root <repo-to-text> tag
  • Directory structure in <directory_structure> tags
  • File contents in <content full_path="..."> tags

Configuration

  • Create .repo-to-text-settings.yaml at the root of your project
  • Use gitignore-style rules to specify what files to ignore
  • Configure what files to include in the tree and content sections

Development

  • Python >= 3.6
  • Install dev dependencies: pip install -e ".[dev]"
  • Run tests: pytest

Testing

  • Tests are located in the tests/ directory
  • Main test files:
    • tests/test_core.py - Tests for core functionality
    • tests/test_cli.py - Tests for command-line interface
    • tests/test_utils.py - Tests for utility functions
  • Run all tests: pytest
  • Run specific test file: pytest tests/test_core.py
  • Run with coverage: pytest --cov=repo_to_text
  • Test temporary directories are created and cleaned up automatically
  • Binary file handling is tested with mock binary data