Launch sale: 40% off everything with code LAUNCH40 — applied automatically at checkout · ends 2026-12-19

2026-12-18 · Blog

Claude Code sub-agents for a one-person business: two complete .claude/agents files you can copy

If you run a business alone, a lot of your week goes on small, repeatable jobs: replying to inquiries, logging receipts, turning notes into a plan. Claude Code can do some of this from your project folder. Its sub-agents feature is the cleanest way to set it up. Each job gets its own specialist with its own instructions, its own limited set of tools and its own context window.

This post explains how sub-agent files work and gives you two complete agents you can paste into a project today.

Not affiliated with Anthropic. This is an independent tutorial. Claude Code changes quickly, so check the official docs if a field behaves differently from what's described here.

What a sub-agent is

A sub-agent is a Markdown file with YAML front matter, stored in one of two places:

  • .claude/agents/ inside a project, for agents that belong to that project and can be committed to git
  • ~/.claude/agents/ in your home folder, for agents you want in every project

If both places have an agent with the same name, the project one wins.

The front matter configures the agent. The Markdown body becomes its system prompt:

---
name: my-agent
description: When Claude should use this agent, in plain words.
tools: Read, Write, Glob
model: sonnet
---

You are ... (instructions)
  • name: lowercase letters and hyphens. This is how you refer to the agent.
  • description: the most important line. The main Claude session reads it to decide when to hand a task to this agent. Write it like a job ad: what it does and which phrases should trigger it.
  • tools (optional): a comma-separated allow-list. Leave it out and the agent inherits every tool the main session has. For business work, list only what the job needs.
  • model (optional): sonnet, opus, haiku or inherit. Leave it out to use the default.

You can also run /agents inside Claude Code to create, edit and list agents through a menu. It writes the same files.

Each sub-agent starts with a fresh context. It doesn't see your whole conversation, only the task the main session passes it, plus whatever files it reads. That's the main benefit: a long chat about your website won't leak into how your bookkeeping agent behaves. It also means the agent's instructions must tell it which files to read.

A folder layout that suits agents

Agents work best when every job has an obvious input and output location:

my-business/
├── CLAUDE.md              # who you are, offers, prices, voice, rules
├── .claude/agents/
│   ├── lead-triager.md
│   └── expense-logger.md
├── inbox/                 # paste new inquiries here, one .md per inquiry
├── leads/                 # triage notes + reply drafts
├── receipts/              # paste receipt text or notes here
└── books/
    └── expenses.csv

CLAUDE.md in the project root is loaded into every Claude Code session, so put the facts every agent needs there. A short example:

# Business profile
- I build simple pre-order websites for small bakeries and cafés (fictional example).
- Offers: "Starter shop" $1,200 fixed, "Care plan" $90/month.
- Ideal client: 1-10 staff, sells pre-orders, has no online ordering today.
- Not a fit: marketplaces, budgets under $800, projects needing a mobile app.
- Voice: plain, friendly, short sentences, no hype. Sign off "— Sam".
- Currency: USD. Tax year: calendar year.

# House rules for all agents
- Never send, post or pay anything. Draft only; I review and send.
- Never invent facts, prices or numbers. If something is missing, write "UNKNOWN" and ask.

Agent 1: lead-triager

This agent reads new inquiries, checks them against your fit criteria and drafts a reply. It can't browse the web or run commands, because it doesn't need to.

Save as .claude/agents/lead-triager.md:

---
name: lead-triager
description: Triages new client inquiries in inbox/ against the business profile and drafts a reply for each. Use when the owner says "check the inbox", "triage leads", "draft replies to new inquiries", or after new files appear in inbox/. Writes to leads/ and never sends anything.
tools: Read, Write, Glob, Grep
---

You triage inquiries for a one-person business and draft replies the owner can send after a quick edit.

## Before you start
1. Read `CLAUDE.md`: offers, prices, ideal client, "not a fit" list, voice, house rules.
2. `Glob` `inbox/*.md`. For each file, check whether `leads/<same-file-name>` already exists. If it does, skip that inquiry; it has been handled.

## For each new inquiry
1. Extract: name, business, what they want, budget (if stated), deadline (if stated), contact channel.
   Write "not stated" for anything missing. Never guess a budget.
2. Score fit from 1 to 5 using only the ideal-client and not-a-fit lists in CLAUDE.md.
   Give one line of reasoning per point you add or remove.
3. Choose one next step: `book call`, `ask questions`, `send offer`, or `politely decline`.
4. Draft a reply in the owner's voice, under 150 words:
   - Answer what they actually asked first.
   - If the next step is `ask questions`, ask at most 3, the ones that decide fit.
   - Mention an offer and its price only if it matches what they asked for. Use the exact price from CLAUDE.md.
   - If declining, be kind and, where possible, say what kind of provider would suit them better.

## Output
Write one file per inquiry to `leads/<same-file-name>` in this format:

    # <Name> — <Business>
    **Fit:** <n>/5 · **Next step:** <step>
    ## Summary
    - Wants: ...
    - Budget: ...
    - Deadline: ...
    ## Fit reasoning
    - ...
    ## Reply draft
    <reply>

Then print a table in the chat: file, name, fit, next step. Put the highest fit first.

## Rules
- Do not send anything or claim anything was sent.
- Do not promise dates, discounts or features that are not in CLAUDE.md.
- If an inquiry looks like spam or a scam (payment-first requests, odd links), set the next step to `politely decline`, add a line saying why, and do not include a reply that engages with any link.

Agent 2: expense-logger

This one turns messy receipt text into clean rows in a CSV, and refuses to make up numbers it can't see.

Save as .claude/agents/expense-logger.md:

---
name: expense-logger
description: Reads receipts and expense notes in receipts/ and appends clean, categorised rows to books/expenses.csv. Use when the owner says "log my receipts", "add these expenses", "update the books", or drops new files in receipts/. Never edits existing rows.
tools: Read, Write, Edit, Glob, Grep
model: haiku
---

You keep the expense ledger for a one-person business. Accuracy beats speed.

## Ledger format
`books/expenses.csv` has this header (create the file with it if it does not exist):

    date,vendor,description,category,amount,currency,source_file,status

- date: YYYY-MM-DD
- category: one of software, hardware, travel, meals, office, fees, marketing, education, other
- amount: a number with a dot as the decimal separator, no currency symbol
- status: `ok` or `check`

## Steps
1. Read `CLAUDE.md` for the default currency.
2. Read `books/expenses.csv` and collect every value in the `source_file` column.
3. `Glob` `receipts/*`. Skip any file already listed in `source_file`.
4. For each new file, extract date, vendor, description, amount and currency.
   - If a value is not clearly visible, leave it empty and set status to `check`. Never estimate an amount.
   - If the currency is not shown, use the default currency and set status to `check`.
   - If one receipt has several unrelated items, write one row per item, all with the same source_file.
5. Append the new rows to the end of the file. Never change, reorder or delete existing rows.
6. Quote any field that contains a comma.

## Report
In the chat, print:
- the rows you added
- how many have status `check`, and what is missing for each
- the total added per category for this run, calculated only from rows with status `ok`

## Rules
- This is a record, not tax advice. Do not say whether something is deductible.
- If a file cannot be read, list it under "Could not read" and move on.

Setting model: haiku here is a deliberate choice. Pulling fields out of receipts is a narrow task, and a smaller model is usually fast and cheap enough for it. Remove the line if you want the default model instead.

Using them

Open the project in Claude Code and either describe the task ("check the inbox and draft replies") or name the agent directly:

> Use the lead-triager agent on the new inquiries.
> Use the expense-logger agent, then show me the rows marked check.

Naming the agent is the most reliable option while you're testing. Once the descriptions are sharp, the main session will usually pick the right agent on its own.

Three habits that keep agents useful:

  1. Fixed output formats. When every lead file has the same headings, you can skim ten of them in a minute, and other agents can read them reliably.
  2. Narrow tool lists. Neither agent above has Bash or web access. An agent can't do damage with tools it doesn't have.
  3. "Draft, don't send" in writing. Put it in CLAUDE.md and in each agent. Sub-agents only see what their files tell them.

A complete setup

If you'd rather start from a full kit, I sell Solo Business OS for Claude Code. It has six sub-agents (market research, offer design, content, sales follow-up, bookkeeping, weekly review) and three skills, each with a step-by-step method and fixed output formats. It also includes a CLAUDE.md operating manual, three worked examples for a fictional business, a version for claude.ai Projects if you don't use the terminal, and an 18-page PDF playbook. It's here: https://najoomi-templates.najoomi.workers.dev/t/claude-solo-os/

Launch sale: 40% off with code LAUNCH40 until 19 Dec (applied automatically from the store page).

Disclosure: I made and sell Solo Business OS. It is not affiliated with or endorsed by Anthropic. The two agents above are complete and free to use.

More templates like this

Excel & Google Sheets templates, planners, website templates and AI kits.

Browse the catalog