Download the PHP package quiche-lorraine/code-context without Composer
On this page you can find all versions of the php package quiche-lorraine/code-context. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download quiche-lorraine/code-context
More information about quiche-lorraine/code-context
Files in quiche-lorraine/code-context
Package code-context
Short Description Standalone CLI that generates codebase context (JSON + Markdown) for AI agents.
License MIT
Informations about the package code-context
code-context
Standalone CLI (built on symfony/console) that analyses a PHP codebase and produces a context folder for AI agents, consisting of a structured context.json and several agent-oriented .md files.
Status: Phase 2 in progress. The foundation is operational:
init,generate,servecommands, strict config validation, extractor architecture, Symfony detection, thematic.mdfiles.
Installation
Then initialise the agent configuration:
Then generate the first index:
init --agent command
MCP merge is idempotent: a second run is a no-op if the config is already up to date.
For --agent=claude-code and --agent=cursor: if the target file already exists, the command leaves it untouched (no clobber).
Projects with an existing session-start.sh: add the hook call from your orchestrator:
Usage
Main options:
generate --config=PATH: path to acode-context.yamlfile.generate --output=DIR: overridesoutput.directoryfrom the YAML.generate --cwd=DIR: analyse a directory other than the current working directory.
Output generated in <output.directory> (default .code-context/):
context.json: structured representation consumed by the MCP server.AGENTS.md: narrative view grouped by namespace.architecture.md,routes.md,entities.md,services.md,commands.md: specialised Symfony views.
SessionStart Hook (Claude Code)
The .claude/hooks/code-context-rebuild.sh file (installed by init --agent=claude-code) rebuilds the index at every Claude Code session start.
Architecture
Code quality
composer test(PHPUnit)composer lint(PHPStan)composer fix(php-cs-fixer)
All versions of code-context with dependencies
ext-json Version *
nikic/php-parser Version ^5
symfony/config Version ^6.4 || ^7 || ^8
symfony/console Version ^6.4 || ^7 || ^8
symfony/filesystem Version ^6.4 || ^7 || ^8
symfony/finder Version ^6.4 || ^7 || ^8
symfony/yaml Version ^6.4 || ^7 || ^8