mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-20 12:30:38 +09:00
Add company skill assignment to agent create and hire flows
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
parent
099c37c4b4
commit
480174367d
12 changed files with 699 additions and 35 deletions
|
|
@ -61,6 +61,7 @@ curl -sS "$PAPERCLIP_API_URL/llms/agent-icons.txt" \
|
|||
- icon (required in practice; use one from `/llms/agent-icons.txt`)
|
||||
- reporting line (`reportsTo`)
|
||||
- adapter type
|
||||
- optional `desiredSkills` from the company skill library when this role needs installed skills on day one
|
||||
- adapter and runtime config aligned to this environment
|
||||
- capabilities
|
||||
- run prompt in adapter config (`promptTemplate` where applicable)
|
||||
|
|
@ -79,6 +80,7 @@ curl -sS -X POST "$PAPERCLIP_API_URL/api/companies/$PAPERCLIP_COMPANY_ID/agent-h
|
|||
"icon": "crown",
|
||||
"reportsTo": "<ceo-agent-id>",
|
||||
"capabilities": "Owns technical roadmap, architecture, staffing, execution",
|
||||
"desiredSkills": ["vercel-labs/agent-browser/agent-browser"],
|
||||
"adapterType": "codex_local",
|
||||
"adapterConfig": {"cwd": "/abs/path/to/repo", "model": "o4-mini"},
|
||||
"runtimeConfig": {"heartbeat": {"enabled": true, "intervalSec": 300, "wakeOnDemand": true}},
|
||||
|
|
@ -128,6 +130,7 @@ For each linked issue, either:
|
|||
|
||||
Before sending a hire request:
|
||||
|
||||
- if the role needs skills, make sure they already exist in the company library or install them first using the Paperclip company-skills workflow
|
||||
- Reuse proven config patterns from related agents where possible.
|
||||
- Set a concrete `icon` from `/llms/agent-icons.txt` so the new hire is identifiable in org and task views.
|
||||
- Avoid secrets in plain text unless required by adapter behavior.
|
||||
|
|
|
|||
|
|
@ -6,8 +6,12 @@
|
|||
- `GET /llms/agent-configuration/:adapterType.txt`
|
||||
- `GET /llms/agent-icons.txt`
|
||||
- `GET /api/companies/:companyId/agent-configurations`
|
||||
- `GET /api/companies/:companyId/skills`
|
||||
- `POST /api/companies/:companyId/skills/import`
|
||||
- `GET /api/agents/:agentId/configuration`
|
||||
- `POST /api/agents/:agentId/skills/sync`
|
||||
- `POST /api/companies/:companyId/agent-hires`
|
||||
- `POST /api/companies/:companyId/agents`
|
||||
- `GET /api/agents/:agentId/config-revisions`
|
||||
- `POST /api/agents/:agentId/config-revisions/:revisionId/rollback`
|
||||
- `POST /api/issues/:issueId/approvals`
|
||||
|
|
@ -34,6 +38,7 @@ Request body matches agent create shape:
|
|||
"icon": "crown",
|
||||
"reportsTo": "uuid-or-null",
|
||||
"capabilities": "Owns architecture and engineering execution",
|
||||
"desiredSkills": ["vercel-labs/agent-browser/agent-browser"],
|
||||
"adapterType": "claude_local",
|
||||
"adapterConfig": {
|
||||
"cwd": "/absolute/path",
|
||||
|
|
@ -64,13 +69,18 @@ Response:
|
|||
"approval": {
|
||||
"id": "uuid",
|
||||
"type": "hire_agent",
|
||||
"status": "pending"
|
||||
"status": "pending",
|
||||
"payload": {
|
||||
"desiredSkills": ["vercel-labs/agent-browser/agent-browser"]
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
If company setting disables required approval, `approval` is `null` and the agent is created as `idle`.
|
||||
|
||||
`desiredSkills` accepts company skill ids, canonical keys, or a unique slug. The server resolves and stores canonical company skill keys.
|
||||
|
||||
## Approval Lifecycle
|
||||
|
||||
Statuses:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue