Context management agent that generates and maintains comprehensive project snapshots for enhanced coding agent performance
The /repo-info
agent is Zencoder’s intelligent context management agent that generates and maintains a comprehensive snapshot of your project structure. This snapshot serves as a contextual foundation for all other agents, automatically included in every request to provide persistent project awareness without manual intervention.
To use the Repo-Info Agent, simply invoke it with /repo-info
in the chat interface. Zencoder will suggest running this agent when you first open a project to establish the contextual foundation.
The Repo-Info Agent operates by analyzing your project and creating a persistent memory of your project configuration:
Project analysis
When executed, /repo-info
performs a comprehensive analysis of your project structure, dependencies, build configurations, and development workflows
File generation
The agent generates a structured Markdown file at .zencoder/docs/repo.md
that serves as the agent’s persistent memory of your project
Context integration
The repo.md
file is automatically injected into Coding agent’s context for every request, ensuring consistent project awareness
The Repo-Info Agent performs a comprehensive analysis capturing:
Directory hierarchy, module organization, source code layout conventions, and asset locations
Package manager detection, dependency listings from lock files, version constraints, and dev vs. production segregation
Build tool configurations, runtime environments, environment variable patterns, and compilation targets
Programming languages and versions, framework detection, database configurations, and API patterns
With proper context from /repo-info
, you can expect:
/repo-info
Initial Setup:
Run this command when starting work on a project to create the initial context snapshot.
In some cases, Zencoder will automatically suggest running this agent when you first open a project.
We also suggest running it in the following scenarios after major:
You can customize the generated context by asking the agent to include additional details or focus on specific aspects of your project.
Example:
Consider adding .zencoder/docs/repo.md
to your repository for:
The generated context file can be manually edited to include:
When editing repo.md
, maintain the existing section structure and focus on information that helps agents understand your project better.
The Repo-Info Agent is one of Zencoder’s built-in agents:
Uses repo context for more intelligent code generation and modifications
Leverages project structure understanding for better test generation
Benefits from project context when creating comprehensive test scenarios
Custom agents can utilize the established project context for specialized tasks