mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-26 18:35:33 +01:00
## Thinking Path > - Paperclip is the open source app people use to manage AI agents for work > - Operators control what agents spend with budgets, and the public docs explain how budgets work > - Pull request #22784 updated the budget docs to match the code on `master` > - The review of #22784 found three claims that were stated too broadly > - #22784 merged before the corrections reached its branch, so `master` still has the three claims > - An operator who reads them can expect the wrong behavior from a budget > - This pull request applies the three corrections. It changes docs only > - The benefit is that the budget docs on `master` match the review and the code ## Linked Issues or Issue Description Refs #22784 Refs #8856 **Issue type** Incorrect content. **Where is the issue?** - `docs/guides/board-operator/costs-and-budgets.md` - `docs/api/costs.md` - `docs/guides/board-operator/creating-a-company.md` - `docs/guides/board-operator/managing-agents.md` - `docs/start/core-concepts.md` - `docs/guides/agent-developer/cost-reporting.md` **What's wrong?** Three claims from #22784 are too broad: 1. The docs say that a budget does not stop an agent that runs on a subscription. Subscription usage adds no billed spend, but a hard stop in the agent's scope still refuses its runs, and the reserve per run applies to every run. 2. One guide says that both thresholds are settings. Only the warning percentage is a setting. The hard stop is on or off and always uses 100% of the budget. 3. The docs say that the unpriced-usage setting blocks all usage with no price. It does not cover every entry under "run costs unavailable". **Suggested fix** Apply the corrections from the review threads of #22784. ## What Changed - Subscription claim: the docs now say that subscription usage adds $0 and never moves a budget toward its limit. They also say that a hard stop on a shared budget and the reserve per run still apply to subscription agents. Corrected in the main guide, the API page, and four related guides. - Thresholds: `creating-a-company.md` now says that you can change the warning percentage and turn the hard stop on or off, and that the hard stop always uses 100% of the budget. - Unpriced usage: the guide now says that the setting covers usage from a complete receipt that has no price. It lists the entries that do not trigger `block`. ## Verification I read the code on `origin/master`. I did not run the product. - A hard stop refuses work in its scope without reading the billing type: `server/src/services/budgets.ts:825` - The reserve check does not read the billing type: `server/src/services/budget-reservations.ts:160` - The hard stop compares spend with the full amount: `server/src/services/budgets.ts:258` - The exclusions from the unpriced-usage block: `server/src/services/budget-exposure.ts:144` - I checked every internal link and anchor in the changed files with a script. All resolve. - `git diff --check` reports no whitespace errors. ## Risks Low risk. The change is docs only. It is the same commit that the review threads of #22784 refer to, applied on top of `master`. > For core feature work, check [`ROADMAP.md`](ROADMAP.md) first and discuss it in `#dev` before opening the PR. Feature PRs that overlap with planned core work may need to be redirected — check the roadmap first. See `CONTRIBUTING.md`. ## Model Used - Claude Fable 5.2 (Anthropic), model ID `claude-fable-5-2`, in Claude Code. Extended thinking and tool use (file read, search, shell, `gh`). The model read the code, wrote the docs, and wrote this description. ## Checklist - [x] I have included a thinking path that traces from project context to this change - [x] I have specified the model used (with version and capability details) - [x] I have checked ROADMAP.md and confirmed this PR does not duplicate planned core work - [x] I have searched GitHub for duplicate or related PRs and linked them above - [x] I have either (a) linked existing issues with `Fixes: #` / `Closes #` / `Refs #` OR (b) described the issue in-PR following the relevant issue template - [x] I have not referenced internal/instance-local Paperclip issues or links (only public GitHub `#NNN` / `github.com/paperclipai/paperclip` URLs) - [x] My branch name describes the change (e.g. `docs/...`, `fix/...`) and contains no internal Paperclip ticket id or instance-derived details - [ ] I have run tests locally and they pass — *docs only. No test reads these files* - [ ] I have added or updated tests where applicable — *not applicable. Docs only* - [x] I have updated relevant documentation to reflect my changes - [x] I have considered and documented any risks above - [ ] All Paperclip CI gates are green — *pending on this PR* - [ ] Greptile is 5/5 with no open P2s, recommendations, or follow-ups — *pending on this PR* - [x] I will address all Greptile and reviewer comments before requesting merge 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
87 lines
3.5 KiB
Markdown
87 lines
3.5 KiB
Markdown
---
|
|
title: Core Concepts
|
|
summary: Companies, agents, issues, delegation, heartbeats, and governance
|
|
---
|
|
|
|
Paperclip organizes autonomous AI work around six key concepts.
|
|
|
|
## Organization
|
|
|
|
An organization is the top-level unit in Paperclip. Each organization has:
|
|
|
|
- A **goal** — the reason it exists (e.g. "Build the #1 AI note-taking app at $1M MRR")
|
|
- **Employees** — every employee is an AI agent
|
|
- **Org structure** — who reports to whom
|
|
- **Budget** — monthly spend limits in cents. Projects can have a budget too
|
|
- **Task hierarchy** — all work traces back to the company goal
|
|
|
|
One Paperclip instance can run multiple companies.
|
|
|
|
## Agents
|
|
|
|
Every employee is an AI agent. Each agent has:
|
|
|
|
- **Adapter type + config** — how the agent runs (Claude Code, Codex, shell process, HTTP webhook)
|
|
- **Role and reporting** — title, who they report to, who reports to them
|
|
- **Capabilities** — a short description of what the agent does
|
|
- **Budget** — per-agent monthly spend limit. It counts billed cost. Usage on a provider subscription adds $0 to it
|
|
- **Status** — active, idle, running, error, paused, or terminated
|
|
|
|
Agents are organized in a strict tree hierarchy. Every agent reports to exactly one manager (except the CEO). This chain of command is used for escalation and delegation.
|
|
|
|
## Issues (Tasks)
|
|
|
|
Issues are the unit of work. Every issue has:
|
|
|
|
- A title, description, status, and priority
|
|
- An assignee (one agent at a time)
|
|
- A parent issue (creating a traceable hierarchy back to the company goal)
|
|
- A project and optional goal association
|
|
|
|
### Status Lifecycle
|
|
|
|
```
|
|
backlog -> todo -> in_progress -> in_review -> done
|
|
|
|
|
blocked
|
|
```
|
|
|
|
Terminal states: `done`, `cancelled`.
|
|
|
|
The transition to `in_progress` requires an **atomic checkout** — only one agent can own a task at a time. If two agents try to claim the same task simultaneously, one gets a `409 Conflict`.
|
|
|
|
## Delegation
|
|
|
|
When your request includes delegation, the CEO can:
|
|
|
|
1. Create a strategy and submit it for your approval
|
|
2. Break approved goals into tasks
|
|
3. Assign tasks to agents based on their role and capabilities
|
|
4. Hire new agents when needed, with hire approvals available when you enable them
|
|
|
|
When your request or approved plan includes delegation, the CEO can organize the work. You approve key decisions such as strategy, can enable hire approvals when you want a gate, and monitor progress. See the [How Delegation Works](/guides/board-operator/delegation) guide for the full lifecycle.
|
|
|
|
## Heartbeats
|
|
|
|
Agents don't run continuously. They wake up in **heartbeats** — short execution windows triggered by Paperclip.
|
|
|
|
A heartbeat can be triggered by:
|
|
|
|
- **Schedule** — periodic timer (e.g. every hour)
|
|
- **Assignment** — a new task is assigned to the agent
|
|
- **Comment** — someone @-mentions the agent
|
|
- **Manual** — a human clicks "Invoke" in the UI
|
|
- **Approval resolution** — a pending approval is approved or rejected
|
|
|
|
Each heartbeat, the agent: checks its identity, reviews assignments, picks work, checks out a task, does the work, and updates status. This is the **heartbeat protocol**.
|
|
|
|
## Governance
|
|
|
|
Some actions require board (human) approval:
|
|
|
|
- **Hiring agents** — agents can request to hire subordinates, but the board must approve
|
|
- **CEO strategy** — the CEO's initial strategic plan requires board approval
|
|
- **Board overrides** — the board can pause, resume, or terminate any agent and reassign any task
|
|
|
|
The board operator has full visibility and control through the web UI. Every mutation is logged in an **activity audit trail**.
|