In short:
ak-repomixuses Repomix to pack exactly the repo parts you need into one XML, Markdown, JSON or text file for a model to read, checks tokens and secret warnings, then reports what it packed. Its job is preparing context; the analysis comes after. It does not turn off the secret scan just to get a file.
Disclosure: I maintain AgentKit and have an affiliate relationship with it: the AgentKit link in this post is an affiliate link; buying through it gets you 30% off.
Summary
Use it when you need to hand code to a model: onboarding to a new project, examining one module in a monorepo, auditing an external library, or refreshing an existing pack. It only prepares context, so do not expect it to analyze the code for you.
flowchart LR
A["Repo, module or external library"] --> B["ak-repomix"]
B --> C["One pack file + report"]
C --> D["Give it to an AI: onboarding, review, audit"]
B --> E["Reuse the old pack if inputs are unchanged"]It rests on 4 ideas:
| Idea | Question | Example |
|---|---|---|
| Smallest scope | Which part is enough to pack? | For a question about the billing module, pack that package and its dependencies, not the whole monorepo |
| Source and revision | Where is it packed from, and at which revision? | A local folder, or a remote repo at a specific commit; the report states the source and revision |
| Secret check | Does the pack leak keys or passwords? | On a Secretlint warning, add that file to .repomixignore, never turn off the scan |
| Tokens as a gate | Does the file fit the model's context? | Compare total tokens with the running model's limit, leaving room for the conversation; narrow the scope if too large |
The skill respects the Repomix config and ignore files already in the project, especially the secret exclusion rules.
Sample prompt for onboarding to a new project:
/ak-repomix . --style markdown
Purpose: let an AI read it to explain the architecture of <project name>.
Leave out: tests, build files, generated files.| Flag | What it is for | Since ak |
|---|---|---|
--style | Picks the output format: xml, markdown, plain, json | 1.0.0 |
The [path] input is the folder or repo to pack.
Below is the detailed version: the run flow, 4 situations with prompts, the --style flag explained (when to use it, when you do not need it), the change history by ak release, and common pitfalls. The detailed version and the interactive page are for subscribers. Your agent can also search them through the portal's MCP.
Opens when your account has subscriber access
This guide is for subscribers
Once your account has access, the full piece, the interactive visual and the agent call all open.
- Sign in or create a modernEngineer accountReading access belongs to your account email.
- Choose a plan on the pricing page1, 3 or 12 months, paid by VietQR bank transfer. Access opens about a minute after the money arrives.
- Or redeem a Facebook subscriber codePeople supporting the page on Facebook get an activation code by message each month.
Already a subscriber? Sign in to read.
Use this piece in your agent
Get an API keyCopy the text below and paste it into Claude Code, Codex or whichever agent you use. The agent reads the piece and checks it against the repo you have open.
Read "ak-repomix: pack just the repo parts an AI needs into one file" on modernEngineer and apply it to this repo.
1. Call the content_get tool of the modernengineer MCP server with locale "en", slug "ak-repomix". If the modernengineer MCP server is not connected, stop and walk me through connecting it from https://modernengineer.dev/en/mcp.
2. Summarize the main steps of the piece and point out which apply to this repo.
3. Propose concrete changes and ask me before editing any file.Connect MCP in Claude Code (once)
claude mcp add --transport http modernengineer \
https://api.modernengineer.dev/mcp \
--header "Authorization: Bearer <API key>"Reading the full piece over MCP needs an API key from a subscriber account or one that bought this guide. Without access, the agent only gets the opening.
- Version
- v1.0.0
- Updated
- 22/10/2026
- Licence
- All rights reserved
- Slug
- ak-repomix


