Automic VaultAutomic Vault

brew

Installer code2prompt avec Homebrew, Nix

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de code2prompt pour les workflows d'agents IA.

installation

Commandes d'installation supplémentaires

macOS

Homebrewvérifié · 100%
brew install code2prompt

local Homebrew formula metadata

Linux

Nixvérifié · 92%
nix profile install nixpkgs#code2prompt

nixpkgs package indexes · pkgs/by-name/co/code2prompt/package.nix · Source: api.github.com

aperçu

Résumé du paquet

CLI tool to convert your codebase into a single LLM prompt

Commandes et alias

  • code2prompt

historique

Historique du projet et usages

Code2Prompt is a Rust-based CLI and companion ecosystem for turning a source tree into structured context for large language models. Its niche is the practical developer workflow of packaging repository files, source trees, token counts, templates, and git context into one promptable artifact.

Historique du projet

The public GitHub repository was created on 2024-03-09, and the first tagged 1.0.0 release followed on 2024-03-16. The official README describes the project as a CLI for converting a codebase into a single LLM prompt, while later project materials frame it as a broader context-engineering tool with a Rust core library, CLI/TUI, Python SDK, and MCP server.

By the 2025 release line, the project had moved beyond a single command into a small tooling family around local code ingestion: respecting ignore rules, generating source trees, applying Handlebars templates, counting tokens, reading formats such as notebooks and CSV, and including git diffs or logs.

Historique d'adoption

The official README documents Cargo, Homebrew, binary-release, and Python SDK installation paths, and the input package facts also list Homebrew and Nix packaging. That distribution pattern is typical for Rust CLIs that serve both terminal users and automation workflows.

The repository metadata gathered from GitHub showed several thousand stars and hundreds of forks by the enrichment date, which is notable for a project started in 2024 and consistent with the rapid spread of LLM-context utilities among developers.

Modes d'utilisation

Typical use is running `code2prompt .` against a project directory, optionally writing to a file or clipboard, filtering paths, using a `.c2pconfig` TOML file, and selecting output formats or tokenizers. The official docs state that Code2Prompt looks for `.c2pconfig` in the current working directory and applies its rules automatically.

The project also targets agentic and programmatic usage: the README describes a Python SDK and local MCP server alongside the human-oriented CLI and TUI.

Pourquoi les passionnés de paquets s'y intéressent

Code2Prompt is a representative package from the post-2023 wave of small, fast CLIs built to bridge traditional repositories and LLM context windows. Package maintainers care about it because it sits at the intersection of Rust CLI distribution, language-model workflow automation, and cross-registry publishing through Cargo, Homebrew, Nix, PyPI bindings, and binary releases.

Its significance is less about a long legacy and more about crystallizing a new packaging pattern: a native CLI with a core library, optional SDK bindings, and editor or agent-adjacent surfaces.

Chronologie

  • 2024-03-09: Public GitHub repository created.
  • 2024-03-16: v1.0.0 release published.
  • 2024: Homebrew and Cargo installation documented in the official README.
  • 2025: v3 and v4 release lines published, reflecting continued active development.

Related projects

  • Related tools include other repository-to-prompt utilities, code ingestion CLIs, and agent-context servers. Within the project itself, related components include `code2prompt-core`, the `code2prompt` CLI/TUI, the `code2prompt-rs` Python SDK, and the MCP server described in the official README.

posture de sécurité

Niveau de risque : vert

narrow executable package without higher-risk signals.

Classificateur de risque

risque vert · confiance faible · appliance

Pourquoi

  • narrow executable package without higher-risk signals

Signaux

  • metadata:no-higher-risk-signals

Comportement d'installation

  • Aucun hook post-install Homebrew n’est enregistré dans les métadonnées de formule.
  • Les métadonnées de bottle Homebrew sont disponibles pour 6 plateformes.
  • S’installe avec 1 dépendances d’exécution.
  • Les métadonnées de compilation listent 2 dépendances de compilation.

Revue recommandée

Avant une utilisation sans surveillance par un agent, vérifiez si l'outil lit des identifiants en clair, écrit un état distant, publie des artefacts ou lance des plugins.

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Configuration files

Config paths the tool may read or write during local use.

Unix
.c2pconfig

exécutables

Exécutables installés

CommandeTypeExpositionNote
code2promptcliexécutable global

fraîcheur

Version et fraîcheur

Ces signaux séparent l'âge de génération de la page, l'activité du gestionnaire de paquets et la comparaison avec les versions amont. Un retard de version n'est signalé que lorsqu'une URL de preuve et des versions comparables sont présentes.

page générée2026-07-08
version du gestionnaire4.2.0
gestionnaire mis à jour2026-06-22
données localesOK
amontà jour
dernière version détectéev4.2.0

https://github.com/mufeedvh/code2prompt

  • OKAucun avertissement de fraîcheur n'a été généré.

métadonnées d'installation

Métadonnées du paquet

Clé du paquetbrew:code2prompt
Version4.2.0
Gestionnaire de paquetsHomebrew
Page du gestionnaire de paquetshttps://formulae.brew.sh/formula/code2prompt
Page d'accueilhttps://code2prompt.dev/
Dépôthttps://github.com/mufeedvh/code2prompt
Docs amonthttps://code2prompt.dev/docs/how_to/cli
LicenceMIT
Archive sourcehttps://github.com/mufeedvh/code2prompt/archive/refs/tags/v4.2.0.tar.gz
Dernière mise à jour2026-06-22T14:03:03-07:00
Pulseupdated
Dépendancesopenssl@3
Dépendances de compilationpkgconf, rust
Bouteilledisponible (sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
post-install Homebrewnon défini
Serviceaucun déclaré

faits du registre

Détails de la base source

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namecode2prompt
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

correspondances dans les bases sources

Autres enregistrements de gestionnaires de paquets

Les correspondances proviennent d’index externes de gestionnaires de paquets et restent séparées des liens de paquets Automic Vault locaux.

Nix95%

code2prompt

nix profile install nixpkgs#code2prompt
  • normalized package name match
  • Correspondance par : Code2prompt
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/co/code2prompt/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

piste source

Généré depuis les données du dépôt

Cette page est servie par av-web depuis l'artéfact SQLite privé des paquets généré par scripts/generate-pkg-sqlite.py.

Sources utilisées

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment