# Coding agents

loadsheet has no skill and no MCP server. Your agent runs the CLI and reads its JSON. Use the home page prompt to see what costs the most context and what goes unused. To apply fixes and verify the results, copy the prompt from [Apply fixes with your agent](https://loadsheet.dev/docs/guide/fixes#the-prompt). Paste either prompt into Claude Code, Codex or OpenCode on the machine you want to clean up.

With the fixes prompt, the agent runs `npx loadsheet --json`, shows you the findings ranked by the tokens each would save, and changes nothing until you accept a fix. After applying your fixes, it runs loadsheet again to check which findings are gone.

## What the agent reads

```sh
npx loadsheet --json
```

stdout holds the [Report](https://loadsheet.dev/docs/reference/schemas): one sheet per harness, and `findings`, each with its `evidence` and `fixes`. Exit code `0` means a report was printed, whatever it found. `1` means loadsheet could not read this machine, and `2` means a bad flag or config file. A first scan reads every transcript and can take a few minutes.

A reader should check that `schema` is `1` and skip any `rule` it does not know, because a newer loadsheet may add rules.

## Weigh before installing

An agent can weigh a skill pack before it installs it:

```sh
npx loadsheet https://github.com/mattpocock/skills --json
```

The Report then has `mode: "pack"`, with the tokens each skill would add to every session. See [Weigh a skill pack](https://loadsheet.dev/docs/guide/packs).

## Point AGENTS.md at it

```md [AGENTS.md]
## Context cost

Before adding a skill, an MCP server or an instruction file, run `npx loadsheet --json` and read `findings`. Never change a file loadsheet reports until I accept the fix.
```

## Ask a question

`npx loadsheet usage query` lists named queries over your scan cache, such as `spend-share` or `skill-weight`. An agent runs one by id and reads the answer with `--json`:

```sh
npx loadsheet usage query skill-weight --json
```

loadsheet runs the query locally and does not upload the results. A cloud-backed agent may send the command output to its model provider. See [Command line](https://loadsheet.dev/docs/reference#usage-query) for every query.

<!-- vitehub-docs:section-links -->
## In this section

- [Install and first run](https://loadsheet.dev/raw/docs/guide.md)
- [Read the report](https://loadsheet.dev/raw/docs/guide/reading.md)
- [Apply fixes with your agent](https://loadsheet.dev/raw/docs/guide/fixes.md)
- [The report as a web page](https://loadsheet.dev/raw/docs/guide/web-page.md)
- [Weigh a skill pack](https://loadsheet.dev/raw/docs/guide/packs.md)
- [Several machines](https://loadsheet.dev/raw/docs/guide/fleet.md)
- [Privacy](https://loadsheet.dev/raw/docs/guide/privacy.md)
- [Coding agents](https://loadsheet.dev/raw/docs/guide/agents.md) (this page)

All pages: [llms.txt](https://loadsheet.dev/llms.txt)
