@microvac/adapter-codex-local 0.0.0-stage → 0.1.0-rc.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/format-event.d.ts +2 -0
- package/dist/cli/format-event.d.ts.map +1 -0
- package/dist/cli/format-event.js +218 -0
- package/dist/cli/format-event.js.map +1 -0
- package/dist/cli/index.d.ts +2 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +2 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/quota-probe.d.ts +3 -0
- package/dist/cli/quota-probe.d.ts.map +1 -0
- package/dist/cli/quota-probe.js +104 -0
- package/dist/cli/quota-probe.js.map +1 -0
- package/dist/index.d.ts +41 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +268 -0
- package/dist/index.js.map +1 -0
- package/dist/index.test.d.ts +2 -0
- package/dist/index.test.d.ts.map +1 -0
- package/dist/index.test.js +125 -0
- package/dist/index.test.js.map +1 -0
- package/dist/server/acp.cli-version.test.d.ts +2 -0
- package/dist/server/acp.cli-version.test.d.ts.map +1 -0
- package/dist/server/acp.cli-version.test.js +151 -0
- package/dist/server/acp.cli-version.test.js.map +1 -0
- package/dist/server/acp.d.ts +31 -0
- package/dist/server/acp.d.ts.map +1 -0
- package/dist/server/acp.js +608 -0
- package/dist/server/acp.js.map +1 -0
- package/dist/server/acp.quota.test.d.ts +2 -0
- package/dist/server/acp.quota.test.d.ts.map +1 -0
- package/dist/server/acp.quota.test.js +176 -0
- package/dist/server/acp.quota.test.js.map +1 -0
- package/dist/server/acp.test.d.ts +2 -0
- package/dist/server/acp.test.d.ts.map +1 -0
- package/dist/server/acp.test.js +1263 -0
- package/dist/server/acp.test.js.map +1 -0
- package/dist/server/adapter-auth-promotion.d.ts +102 -0
- package/dist/server/adapter-auth-promotion.d.ts.map +1 -0
- package/dist/server/adapter-auth-promotion.js +210 -0
- package/dist/server/adapter-auth-promotion.js.map +1 -0
- package/dist/server/adapter-auth-promotion.test.d.ts +2 -0
- package/dist/server/adapter-auth-promotion.test.d.ts.map +1 -0
- package/dist/server/adapter-auth-promotion.test.js +615 -0
- package/dist/server/adapter-auth-promotion.test.js.map +1 -0
- package/dist/server/auth-check.d.ts +8 -0
- package/dist/server/auth-check.d.ts.map +1 -0
- package/dist/server/auth-check.js +8 -0
- package/dist/server/auth-check.js.map +1 -0
- package/dist/server/auth-precedence.d.ts +16 -0
- package/dist/server/auth-precedence.d.ts.map +1 -0
- package/dist/server/auth-precedence.js +20 -0
- package/dist/server/auth-precedence.js.map +1 -0
- package/dist/server/auth-precedence.test.d.ts +2 -0
- package/dist/server/auth-precedence.test.d.ts.map +1 -0
- package/dist/server/auth-precedence.test.js +100 -0
- package/dist/server/auth-precedence.test.js.map +1 -0
- package/dist/server/cli-version.d.ts +45 -0
- package/dist/server/cli-version.d.ts.map +1 -0
- package/dist/server/cli-version.js +95 -0
- package/dist/server/cli-version.js.map +1 -0
- package/dist/server/codex-args.d.ts +13 -0
- package/dist/server/codex-args.d.ts.map +1 -0
- package/dist/server/codex-args.js +64 -0
- package/dist/server/codex-args.js.map +1 -0
- package/dist/server/codex-args.test.d.ts +2 -0
- package/dist/server/codex-args.test.d.ts.map +1 -0
- package/dist/server/codex-args.test.js +257 -0
- package/dist/server/codex-args.test.js.map +1 -0
- package/dist/server/codex-auth-cache.d.ts +179 -0
- package/dist/server/codex-auth-cache.d.ts.map +1 -0
- package/dist/server/codex-auth-cache.js +520 -0
- package/dist/server/codex-auth-cache.js.map +1 -0
- package/dist/server/codex-auth-cache.test.d.ts +2 -0
- package/dist/server/codex-auth-cache.test.d.ts.map +1 -0
- package/dist/server/codex-auth-cache.test.js +530 -0
- package/dist/server/codex-auth-cache.test.js.map +1 -0
- package/dist/server/codex-auth-copyback.d.ts +53 -0
- package/dist/server/codex-auth-copyback.d.ts.map +1 -0
- package/dist/server/codex-auth-copyback.js +123 -0
- package/dist/server/codex-auth-copyback.js.map +1 -0
- package/dist/server/codex-auth-copyback.test.d.ts +2 -0
- package/dist/server/codex-auth-copyback.test.d.ts.map +1 -0
- package/dist/server/codex-auth-copyback.test.js +507 -0
- package/dist/server/codex-auth-copyback.test.js.map +1 -0
- package/dist/server/codex-auth-merge-decision.cjs +170 -0
- package/dist/server/codex-auth-merge-decision.d.ts +22 -0
- package/dist/server/codex-auth-merge-decision.d.ts.map +1 -0
- package/dist/server/codex-auth-merge-decision.js +58 -0
- package/dist/server/codex-auth-merge-decision.js.map +1 -0
- package/dist/server/codex-auth-merge-decision.test.d.ts +2 -0
- package/dist/server/codex-auth-merge-decision.test.d.ts.map +1 -0
- package/dist/server/codex-auth-merge-decision.test.js +215 -0
- package/dist/server/codex-auth-merge-decision.test.js.map +1 -0
- package/dist/server/codex-auth-merge-extract.sh +73 -0
- package/dist/server/codex-auth-merge-scripts.d.ts +21 -0
- package/dist/server/codex-auth-merge-scripts.d.ts.map +1 -0
- package/dist/server/codex-auth-merge-scripts.js +40 -0
- package/dist/server/codex-auth-merge-scripts.js.map +1 -0
- package/dist/server/codex-auth-merge.test.d.ts +2 -0
- package/dist/server/codex-auth-merge.test.d.ts.map +1 -0
- package/dist/server/codex-auth-merge.test.js +714 -0
- package/dist/server/codex-auth-merge.test.js.map +1 -0
- package/dist/server/codex-auth-seed-write.d.ts +30 -0
- package/dist/server/codex-auth-seed-write.d.ts.map +1 -0
- package/dist/server/codex-auth-seed-write.js +41 -0
- package/dist/server/codex-auth-seed-write.js.map +1 -0
- package/dist/server/codex-home.d.ts +169 -0
- package/dist/server/codex-home.d.ts.map +1 -0
- package/dist/server/codex-home.js +822 -0
- package/dist/server/codex-home.js.map +1 -0
- package/dist/server/codex-home.test.d.ts +2 -0
- package/dist/server/codex-home.test.d.ts.map +1 -0
- package/dist/server/codex-home.test.js +1287 -0
- package/dist/server/codex-home.test.js.map +1 -0
- package/dist/server/config-schema.d.ts +3 -0
- package/dist/server/config-schema.d.ts.map +1 -0
- package/dist/server/config-schema.js +67 -0
- package/dist/server/config-schema.js.map +1 -0
- package/dist/server/device-login-export.d.ts +56 -0
- package/dist/server/device-login-export.d.ts.map +1 -0
- package/dist/server/device-login-export.js +230 -0
- package/dist/server/device-login-export.js.map +1 -0
- package/dist/server/device-login-export.test.d.ts +2 -0
- package/dist/server/device-login-export.test.d.ts.map +1 -0
- package/dist/server/device-login-export.test.js +245 -0
- package/dist/server/device-login-export.test.js.map +1 -0
- package/dist/server/device-login-parse.d.ts +20 -0
- package/dist/server/device-login-parse.d.ts.map +1 -0
- package/dist/server/device-login-parse.js +155 -0
- package/dist/server/device-login-parse.js.map +1 -0
- package/dist/server/device-login-parse.test.d.ts +2 -0
- package/dist/server/device-login-parse.test.d.ts.map +1 -0
- package/dist/server/device-login-parse.test.js +269 -0
- package/dist/server/device-login-parse.test.js.map +1 -0
- package/dist/server/device-login-runner.d.ts +69 -0
- package/dist/server/device-login-runner.d.ts.map +1 -0
- package/dist/server/device-login-runner.js +110 -0
- package/dist/server/device-login-runner.js.map +1 -0
- package/dist/server/device-login-runner.test.d.ts +2 -0
- package/dist/server/device-login-runner.test.d.ts.map +1 -0
- package/dist/server/device-login-runner.test.js +201 -0
- package/dist/server/device-login-runner.test.js.map +1 -0
- package/dist/server/engine-availability.test.d.ts +2 -0
- package/dist/server/engine-availability.test.d.ts.map +1 -0
- package/dist/server/engine-availability.test.js +41 -0
- package/dist/server/engine-availability.test.js.map +1 -0
- package/dist/server/execute.acp-fallback.test.d.ts +2 -0
- package/dist/server/execute.acp-fallback.test.d.ts.map +1 -0
- package/dist/server/execute.acp-fallback.test.js +123 -0
- package/dist/server/execute.acp-fallback.test.js.map +1 -0
- package/dist/server/execute.auth-precedence.test.d.ts +2 -0
- package/dist/server/execute.auth-precedence.test.d.ts.map +1 -0
- package/dist/server/execute.auth-precedence.test.js +137 -0
- package/dist/server/execute.auth-precedence.test.js.map +1 -0
- package/dist/server/execute.auth.test.d.ts +2 -0
- package/dist/server/execute.auth.test.d.ts.map +1 -0
- package/dist/server/execute.auth.test.js +197 -0
- package/dist/server/execute.auth.test.js.map +1 -0
- package/dist/server/execute.d.ts +40 -0
- package/dist/server/execute.d.ts.map +1 -0
- package/dist/server/execute.js +1485 -0
- package/dist/server/execute.js.map +1 -0
- package/dist/server/execute.remote.test.d.ts +2 -0
- package/dist/server/execute.remote.test.d.ts.map +1 -0
- package/dist/server/execute.remote.test.js +851 -0
- package/dist/server/execute.remote.test.js.map +1 -0
- package/dist/server/execute.ssh-host-auth.test.d.ts +2 -0
- package/dist/server/execute.ssh-host-auth.test.d.ts.map +1 -0
- package/dist/server/execute.ssh-host-auth.test.js +214 -0
- package/dist/server/execute.ssh-host-auth.test.js.map +1 -0
- package/dist/server/execute.stderr-error.test.d.ts +2 -0
- package/dist/server/execute.stderr-error.test.d.ts.map +1 -0
- package/dist/server/execute.stderr-error.test.js +142 -0
- package/dist/server/execute.stderr-error.test.js.map +1 -0
- package/dist/server/execute.test.d.ts +2 -0
- package/dist/server/execute.test.d.ts.map +1 -0
- package/dist/server/execute.test.js +300 -0
- package/dist/server/execute.test.js.map +1 -0
- package/dist/server/index.d.ts +18 -0
- package/dist/server/index.d.ts.map +1 -0
- package/dist/server/index.js +84 -0
- package/dist/server/index.js.map +1 -0
- package/dist/server/output-inactivity-monitor.d.ts +62 -0
- package/dist/server/output-inactivity-monitor.d.ts.map +1 -0
- package/dist/server/output-inactivity-monitor.integration.test.d.ts +2 -0
- package/dist/server/output-inactivity-monitor.integration.test.d.ts.map +1 -0
- package/dist/server/output-inactivity-monitor.integration.test.js +136 -0
- package/dist/server/output-inactivity-monitor.integration.test.js.map +1 -0
- package/dist/server/output-inactivity-monitor.js +112 -0
- package/dist/server/output-inactivity-monitor.js.map +1 -0
- package/dist/server/output-inactivity-monitor.test.d.ts +2 -0
- package/dist/server/output-inactivity-monitor.test.d.ts.map +1 -0
- package/dist/server/output-inactivity-monitor.test.js +284 -0
- package/dist/server/output-inactivity-monitor.test.js.map +1 -0
- package/dist/server/parse.d.ts +69 -0
- package/dist/server/parse.d.ts.map +1 -0
- package/dist/server/parse.js +278 -0
- package/dist/server/parse.js.map +1 -0
- package/dist/server/parse.test.d.ts +2 -0
- package/dist/server/parse.test.d.ts.map +1 -0
- package/dist/server/parse.test.js +203 -0
- package/dist/server/parse.test.js.map +1 -0
- package/dist/server/process-activity-monitor.d.ts +21 -0
- package/dist/server/process-activity-monitor.d.ts.map +1 -0
- package/dist/server/process-activity-monitor.js +103 -0
- package/dist/server/process-activity-monitor.js.map +1 -0
- package/dist/server/process-activity-monitor.test.d.ts +2 -0
- package/dist/server/process-activity-monitor.test.d.ts.map +1 -0
- package/dist/server/process-activity-monitor.test.js +82 -0
- package/dist/server/process-activity-monitor.test.js.map +1 -0
- package/dist/server/quota-spawn-error.test.d.ts +2 -0
- package/dist/server/quota-spawn-error.test.d.ts.map +1 -0
- package/dist/server/quota-spawn-error.test.js +343 -0
- package/dist/server/quota-spawn-error.test.js.map +1 -0
- package/dist/server/quota.d.ts +66 -0
- package/dist/server/quota.d.ts.map +1 -0
- package/dist/server/quota.js +577 -0
- package/dist/server/quota.js.map +1 -0
- package/dist/server/runtime-config.d.ts +11 -0
- package/dist/server/runtime-config.d.ts.map +1 -0
- package/dist/server/runtime-config.js +389 -0
- package/dist/server/runtime-config.js.map +1 -0
- package/dist/server/runtime-config.test.d.ts +2 -0
- package/dist/server/runtime-config.test.d.ts.map +1 -0
- package/dist/server/runtime-config.test.js +389 -0
- package/dist/server/runtime-config.test.js.map +1 -0
- package/dist/server/skills.d.ts +8 -0
- package/dist/server/skills.d.ts.map +1 -0
- package/dist/server/skills.js +26 -0
- package/dist/server/skills.js.map +1 -0
- package/dist/server/ssh-host-runtime.d.ts +24 -0
- package/dist/server/ssh-host-runtime.d.ts.map +1 -0
- package/dist/server/ssh-host-runtime.js +84 -0
- package/dist/server/ssh-host-runtime.js.map +1 -0
- package/dist/server/ssh-session-state.d.ts +18 -0
- package/dist/server/ssh-session-state.d.ts.map +1 -0
- package/dist/server/ssh-session-state.js +11 -0
- package/dist/server/ssh-session-state.js.map +1 -0
- package/dist/server/test.d.ts +3 -0
- package/dist/server/test.d.ts.map +1 -0
- package/dist/server/test.js +531 -0
- package/dist/server/test.js.map +1 -0
- package/dist/server/test.remote.test.d.ts +2 -0
- package/dist/server/test.remote.test.d.ts.map +1 -0
- package/dist/server/test.remote.test.js +596 -0
- package/dist/server/test.remote.test.js.map +1 -0
- package/dist/ui/build-config.d.ts +10 -0
- package/dist/ui/build-config.d.ts.map +1 -0
- package/dist/ui/build-config.js +284 -0
- package/dist/ui/build-config.js.map +1 -0
- package/dist/ui/build-config.test.d.ts +2 -0
- package/dist/ui/build-config.test.d.ts.map +1 -0
- package/dist/ui/build-config.test.js +367 -0
- package/dist/ui/build-config.test.js.map +1 -0
- package/dist/ui/index.d.ts +4 -0
- package/dist/ui/index.d.ts.map +1 -0
- package/dist/ui/index.js +8 -0
- package/dist/ui/index.js.map +1 -0
- package/dist/ui/parse-stdout.d.ts +3 -0
- package/dist/ui/parse-stdout.d.ts.map +1 -0
- package/dist/ui/parse-stdout.js +265 -0
- package/dist/ui/parse-stdout.js.map +1 -0
- package/dist/ui/parse-stdout.test.d.ts +2 -0
- package/dist/ui/parse-stdout.test.d.ts.map +1 -0
- package/dist/ui/parse-stdout.test.js +77 -0
- package/dist/ui/parse-stdout.test.js.map +1 -0
- package/package.json +55 -4
- package/skills/agentmail/SKILL.md +70 -0
- package/skills/complain/LICENSE +27 -0
- package/skills/complain/SKILL.md +68 -0
- package/skills/paperclip/SKILL.md +864 -0
- package/skills/paperclip/references/api-reference.md +1814 -0
- package/skills/paperclip/references/artifacts.md +163 -0
- package/skills/paperclip/references/cases.md +570 -0
- package/skills/paperclip/references/company-skills.md +266 -0
- package/skills/paperclip/references/issue-documents.md +58 -0
- package/skills/paperclip/references/issue-workspaces.md +94 -0
- package/skills/paperclip/references/routines.md +249 -0
- package/skills/paperclip/references/run-diagnostics.md +28 -0
- package/skills/paperclip/references/workflows.md +141 -0
- package/skills/paperclip/scripts/paperclip-issue-update.sh +166 -0
- package/skills/paperclip/scripts/paperclip-upload-artifact.sh +603 -0
- package/skills/paperclip/scripts/submit-agent-commentary.mjs +52 -0
- package/skills/paperclip-board/SKILL.md +633 -0
- package/skills/paperclip-converting-plans-to-tasks/SKILL.md +28 -0
- package/skills/paperclip-create-agent/SKILL.md +213 -0
- package/skills/paperclip-create-agent/references/agent-instruction-templates.md +24 -0
- package/skills/paperclip-create-agent/references/agents/coder.md +18 -0
- package/skills/paperclip-create-agent/references/agents/qa.md +18 -0
- package/skills/paperclip-create-agent/references/agents/securityengineer.md +26 -0
- package/skills/paperclip-create-agent/references/agents/uxdesigner.md +18 -0
- package/skills/paperclip-create-agent/references/api-reference.md +110 -0
- package/skills/paperclip-create-agent/references/baseline-role-guide.md +22 -0
- package/skills/paperclip-create-agent/references/draft-review-checklist.md +29 -0
- package/skills/para-memory-files/SKILL.md +100 -0
- package/skills/para-memory-files/references/schemas.md +35 -0
- package/skills/slack/SKILL.md +92 -0
- package/skills/suggestion-box/LICENSE +27 -0
- package/skills/suggestion-box/SKILL.md +77 -0
- package/README.md +0 -3
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: paperclip-create-agent
|
|
3
|
+
description: >
|
|
4
|
+
Create new agents in Paperclip with governance-aware hiring. Use when you need
|
|
5
|
+
to inspect adapter configuration options, compare existing agent configs,
|
|
6
|
+
draft a new agent prompt/config, and submit a hire request.
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Paperclip Create Agent Skill
|
|
10
|
+
|
|
11
|
+
Use this skill when you are asked to hire/create an agent.
|
|
12
|
+
|
|
13
|
+
## Preconditions
|
|
14
|
+
|
|
15
|
+
You need either:
|
|
16
|
+
|
|
17
|
+
- board access, or
|
|
18
|
+
- agent permission `can_create_agents=true` in your company
|
|
19
|
+
|
|
20
|
+
If you do not have this permission, keep the current task assigned to yourself
|
|
21
|
+
and identify the missing hiring authority. A CEO or manager title does not grant
|
|
22
|
+
hiring permission. Do not reassign the task or create an escalation task to bypass
|
|
23
|
+
the denial. Use the applicable approval flow when available; otherwise save a
|
|
24
|
+
human-input interaction on the current task with `resolverPolicy: "human_only"`
|
|
25
|
+
and `continuationPolicy: "wake_assignee"`, then leave it `in_review`. Use the
|
|
26
|
+
complete human-input payload in the `paperclip` skill; when the requesting user
|
|
27
|
+
owns the decision, address it with their actual `addresseeUserId`. A human answer
|
|
28
|
+
does not itself grant permission: recheck authorization before any hire.
|
|
29
|
+
|
|
30
|
+
## Workflow
|
|
31
|
+
|
|
32
|
+
### Choose the API transport
|
|
33
|
+
|
|
34
|
+
On **Paperclip Runner**, use the advertised Paperclip tools. Use `get_task_context`
|
|
35
|
+
and `list_agents` for identity and team context, then `search_api` to discover the
|
|
36
|
+
configuration, instruction-template, icon, and `agent-hires` endpoints used below.
|
|
37
|
+
Call the discovered operations with `call_api`; the server supplies company and
|
|
38
|
+
authentication context. Read the returned schemas before drafting the hire.
|
|
39
|
+
|
|
40
|
+
The shell examples below apply to adapters that receive `PAPERCLIP_API_URL` and
|
|
41
|
+
`PAPERCLIP_API_KEY`. Paperclip Runner does not supply those variables. Do not
|
|
42
|
+
search workspace files for a server address or credentials to recreate that path.
|
|
43
|
+
If `search_api` / `call_api` are unavailable, report that hiring requires the
|
|
44
|
+
operator to enable runner API tools for this company. Preserve the proposed hire
|
|
45
|
+
in the conversation; do not claim an agent was created or substitute a temporary
|
|
46
|
+
subagent for the requested permanent hire.
|
|
47
|
+
|
|
48
|
+
### 1. Confirm identity and company context
|
|
49
|
+
|
|
50
|
+
```sh
|
|
51
|
+
curl -sS "$PAPERCLIP_API_URL/api/agents/me" \
|
|
52
|
+
-H "Authorization: Bearer $PAPERCLIP_API_KEY"
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### 2. Discover adapter configuration for this Paperclip instance
|
|
56
|
+
|
|
57
|
+
```sh
|
|
58
|
+
curl -sS "$PAPERCLIP_API_URL/llms/agent-configuration.txt" \
|
|
59
|
+
-H "Authorization: Bearer $PAPERCLIP_API_KEY"
|
|
60
|
+
|
|
61
|
+
# Then the specific adapter you plan to use, e.g. claude_local:
|
|
62
|
+
curl -sS "$PAPERCLIP_API_URL/llms/agent-configuration/claude_local.txt" \
|
|
63
|
+
-H "Authorization: Bearer $PAPERCLIP_API_KEY"
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
### 3. Compare existing agent configurations
|
|
67
|
+
|
|
68
|
+
```sh
|
|
69
|
+
curl -sS "$PAPERCLIP_API_URL/api/companies/$PAPERCLIP_COMPANY_ID/agent-configurations" \
|
|
70
|
+
-H "Authorization: Bearer $PAPERCLIP_API_KEY"
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
Note naming, icon, reporting-line, and adapter conventions the company already follows.
|
|
74
|
+
|
|
75
|
+
### 4. Describe the role
|
|
76
|
+
|
|
77
|
+
Use a short role paragraph for a new agent: its identity and the responsibility
|
|
78
|
+
it owns. The [role examples](references/agent-instruction-templates.md) are
|
|
79
|
+
optional starting points; for other roles, use the
|
|
80
|
+
[baseline role guide](references/baseline-role-guide.md).
|
|
81
|
+
|
|
82
|
+
Company-specific instructions supplied by the requester take precedence. Do not
|
|
83
|
+
expand a role description into a generic operating manual. The harness supplies
|
|
84
|
+
Paperclip coordination, skill discovery, and task lifecycle guidance; repository
|
|
85
|
+
instructions and installed skills carry applicable work procedures. Avoid
|
|
86
|
+
adding heartbeat pointers, execution contracts, mandatory per-touch comments,
|
|
87
|
+
fixed reviewer routes, or catalogs of domain concepts to the hire's instructions.
|
|
88
|
+
|
|
89
|
+
Keep reporting lines in `reportsTo`, capabilities in `capabilities`, and skills
|
|
90
|
+
in `desiredSkills`. Add instruction detail only for a concrete company or role
|
|
91
|
+
requirement that those fields, the task, repository instructions, or installed
|
|
92
|
+
skills do not already express.
|
|
93
|
+
|
|
94
|
+
### 5. Discover allowed agent icons
|
|
95
|
+
|
|
96
|
+
```sh
|
|
97
|
+
curl -sS "$PAPERCLIP_API_URL/llms/agent-icons.txt" \
|
|
98
|
+
-H "Authorization: Bearer $PAPERCLIP_API_KEY"
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
### 6. Draft the new hire config
|
|
102
|
+
|
|
103
|
+
- role / title / name
|
|
104
|
+
- icon (required in practice; pick from `/llms/agent-icons.txt`)
|
|
105
|
+
- reporting line (`reportsTo`)
|
|
106
|
+
- adapter type
|
|
107
|
+
- `desiredSkills` from the company skill library when this role needs installed skills on day one
|
|
108
|
+
- if any `desiredSkills` or adapter settings expand browser access, external-system reach, filesystem scope, or secret-handling capability, justify each one in the hire comment
|
|
109
|
+
- adapter and runtime config aligned to this environment
|
|
110
|
+
- leave timer heartbeats off by default; only set `runtimeConfig.heartbeat.enabled=true` with an `intervalSec` when the role genuinely needs scheduled recurring work or the user explicitly asked for it
|
|
111
|
+
- if the role may handle private advisories or sensitive disclosures, confirm a confidential workflow exists first (dedicated skill or documented manual process)
|
|
112
|
+
- capabilities
|
|
113
|
+
- when supplying role instructions from step 4, send them as top-level `instructionsBundle.files["AGENTS.md"]` for managed-bundle adapters. Otherwise use the server default. Do not set `adapterConfig.promptTemplate` or `bootstrapPromptTemplate` for new agents.
|
|
114
|
+
- source issue linkage (`sourceIssueId` or `sourceIssueIds`) when this hire came from an issue
|
|
115
|
+
|
|
116
|
+
### 7. Review the draft against the quality checklist
|
|
117
|
+
|
|
118
|
+
Before submitting, walk the draft-review checklist end-to-end and fix any item that does not pass:
|
|
119
|
+
`skills/paperclip-create-agent/references/draft-review-checklist.md`
|
|
120
|
+
|
|
121
|
+
### 8. Submit hire request
|
|
122
|
+
|
|
123
|
+
```sh
|
|
124
|
+
curl -sS -X POST "$PAPERCLIP_API_URL/api/companies/$PAPERCLIP_COMPANY_ID/agent-hires" \
|
|
125
|
+
-H "Authorization: Bearer $PAPERCLIP_API_KEY" \
|
|
126
|
+
-H "Content-Type: application/json" \
|
|
127
|
+
-d '{
|
|
128
|
+
"name": "CTO",
|
|
129
|
+
"role": "cto",
|
|
130
|
+
"title": "Chief Technology Officer",
|
|
131
|
+
"icon": "crown",
|
|
132
|
+
"reportsTo": "<ceo-agent-id>",
|
|
133
|
+
"capabilities": "Owns technical roadmap, architecture, staffing, execution",
|
|
134
|
+
"desiredSkills": ["vercel-labs/agent-browser/agent-browser"],
|
|
135
|
+
"adapterType": "codex_local",
|
|
136
|
+
"adapterConfig": {"cwd": "/abs/path/to/repo", "model": "o4-mini"},
|
|
137
|
+
"instructionsBundle": {"files": {"AGENTS.md": "You are the CTO..."}},
|
|
138
|
+
"runtimeConfig": {"heartbeat": {"enabled": false, "wakeOnDemand": true}},
|
|
139
|
+
"sourceIssueId": "<issue-id>"
|
|
140
|
+
}'
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
### 9. Handle governance state
|
|
144
|
+
|
|
145
|
+
- if the response has `approval`, the hire is `pending_approval`
|
|
146
|
+
- monitor and discuss on the approval thread
|
|
147
|
+
- when the board approves, you will be woken with `PAPERCLIP_APPROVAL_ID`; read linked issues and close/comment follow-up
|
|
148
|
+
|
|
149
|
+
```sh
|
|
150
|
+
curl -sS "$PAPERCLIP_API_URL/api/approvals/<approval-id>" \
|
|
151
|
+
-H "Authorization: Bearer $PAPERCLIP_API_KEY"
|
|
152
|
+
|
|
153
|
+
curl -sS -X POST "$PAPERCLIP_API_URL/api/approvals/<approval-id>/comments" \
|
|
154
|
+
-H "Authorization: Bearer $PAPERCLIP_API_KEY" \
|
|
155
|
+
-H "Content-Type: application/json" \
|
|
156
|
+
-d '{"body":"## CTO hire request submitted\n\n- Approval: [<approval-id>](/approvals/<approval-id>)\n- Pending agent: [<agent-ref>](/agents/<agent-url-key-or-id>)\n- Source issue: [<issue-ref>](/issues/<issue-identifier-or-id>)\n\nUpdated prompt and adapter config per board feedback."}'
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
If the approval already exists and needs manual linking to the issue:
|
|
160
|
+
|
|
161
|
+
```sh
|
|
162
|
+
curl -sS -X POST "$PAPERCLIP_API_URL/api/issues/<issue-id>/approvals" \
|
|
163
|
+
-H "Authorization: Bearer $PAPERCLIP_API_KEY" \
|
|
164
|
+
-H "Content-Type: application/json" \
|
|
165
|
+
-d '{"approvalId":"<approval-id>"}'
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
After approval is granted, run this follow-up loop:
|
|
169
|
+
|
|
170
|
+
```sh
|
|
171
|
+
curl -sS "$PAPERCLIP_API_URL/api/approvals/$PAPERCLIP_APPROVAL_ID" \
|
|
172
|
+
-H "Authorization: Bearer $PAPERCLIP_API_KEY"
|
|
173
|
+
|
|
174
|
+
curl -sS "$PAPERCLIP_API_URL/api/approvals/$PAPERCLIP_APPROVAL_ID/issues" \
|
|
175
|
+
-H "Authorization: Bearer $PAPERCLIP_API_KEY"
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
For each linked issue, either:
|
|
179
|
+
- close it if the approval resolved the request, or
|
|
180
|
+
- comment in markdown with links to the approval and next actions.
|
|
181
|
+
|
|
182
|
+
## References
|
|
183
|
+
|
|
184
|
+
- Optional role examples: `skills/paperclip-create-agent/references/agent-instruction-templates.md`
|
|
185
|
+
- Individual role templates: `skills/paperclip-create-agent/references/agents/`
|
|
186
|
+
- Short role drafting guide: `skills/paperclip-create-agent/references/baseline-role-guide.md`
|
|
187
|
+
- Pre-submit draft-review checklist: `skills/paperclip-create-agent/references/draft-review-checklist.md`
|
|
188
|
+
- Endpoint payload shapes and full examples: `skills/paperclip-create-agent/references/api-reference.md`
|
|
189
|
+
|
|
190
|
+
## Harness and runner selection
|
|
191
|
+
|
|
192
|
+
Choose the underlying harness in `adapterType`, such as `codex_local` or
|
|
193
|
+
`claude_local`. New Codex agents use Paperclip Runner automatically on supported
|
|
194
|
+
execution targets. New Claude Code agents use Paperclip Runner on Apple Silicon,
|
|
195
|
+
Intel Mac, Linux x64 and Linux ARM64 with supported glibc. Unknown or unsupported
|
|
196
|
+
targets retain Legacy. Darwin SSH also defaults to Legacy; native execution
|
|
197
|
+
requires an explicit runner choice and matching remote assets. The native Claude profile is
|
|
198
|
+
`provider: acpx`, `acpxAgent: claude`, with ordinary model `claude-opus-5-5`.
|
|
199
|
+
Explicit models and existing saved runners remain intact. The saved response
|
|
200
|
+
may therefore have `adapterType: paperclip_runner` and a resolved provider;
|
|
201
|
+
use that returned configuration for later reads and edits.
|
|
202
|
+
|
|
203
|
+
The optional creation field `runner` accepts `auto`, `paperclip`, or `legacy`.
|
|
204
|
+
Use `legacy` when the user needs CLI settings the native runtime cannot honor.
|
|
205
|
+
For Claude this includes Chrome, custom commands/state paths, warm-process
|
|
206
|
+
controls, confinement and turn limits. Native Claude uses existing API-key and
|
|
207
|
+
subscription connections. Its configured effort requires provider acknowledgment. Setup and authentication errors never silently change runners.
|
|
208
|
+
Existing agents keep their saved execution after unrelated edits. An approved
|
|
209
|
+
hire uses the configuration reviewed by the board. `inheritRuntimeFrom: caller`
|
|
210
|
+
keeps its existing runtime inheritance and credential restrictions.
|
|
211
|
+
|
|
212
|
+
CLI equivalents: `paperclipai agent create --runner legacy --payload-json ...`
|
|
213
|
+
and `paperclipai agent hire --runner legacy --payload-json ...`.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Role instruction examples
|
|
2
|
+
|
|
3
|
+
These are optional starting points for a short role paragraph. Choose the
|
|
4
|
+
responsibility that fits the requested hire; a matching template is not required.
|
|
5
|
+
|
|
6
|
+
| Example | Responsibility |
|
|
7
|
+
| --- | --- |
|
|
8
|
+
| [Coder](agents/coder.md) | Software implementation and maintenance |
|
|
9
|
+
| [QA](agents/qa.md) | Product verification and reproducible findings |
|
|
10
|
+
| [UX Designer](agents/uxdesigner.md) | User experience, interaction design, accessibility, and design-system coherence |
|
|
11
|
+
| [Security Engineer](agents/securityengineer.md) | Security reviews, threat modeling, and remediation |
|
|
12
|
+
|
|
13
|
+
Copy only the example's `AGENTS.md` body into the hire's managed instruction
|
|
14
|
+
bundle. Replace its name and company placeholders. Adapt the responsibility
|
|
15
|
+
when the role differs. For other roles, use the
|
|
16
|
+
[baseline role guide](baseline-role-guide.md).
|
|
17
|
+
|
|
18
|
+
Keep configuration such as role, title, reporting line, permissions, adapter,
|
|
19
|
+
and installed skills in the hire payload. Preserve company-specific instructions
|
|
20
|
+
provided by the requester. Do not append a Paperclip operating procedure,
|
|
21
|
+
generic harness rules, prescribed collaborators, or a list of domain concepts.
|
|
22
|
+
|
|
23
|
+
Use the [draft-review checklist](draft-review-checklist.md) to check the actual
|
|
24
|
+
configuration and any instructions before submitting the hire.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Coder Agent Template
|
|
2
|
+
|
|
3
|
+
Use this template when hiring software engineers who implement code, debug issues, write tests, and coordinate with QA or engineering leadership.
|
|
4
|
+
|
|
5
|
+
## Recommended Role Fields
|
|
6
|
+
|
|
7
|
+
- `name`: `Coder`, `CodexCoder`, `ClaudeCoder`, or a model/tool-specific name
|
|
8
|
+
- `role`: `engineer`
|
|
9
|
+
- `title`: `Software Engineer`
|
|
10
|
+
- `icon`: `code`
|
|
11
|
+
- `capabilities`: `Implements coding tasks, writes and edits code, debugs issues, adds focused tests, and coordinates with QA and engineering leadership.`
|
|
12
|
+
- `adapterType`: `codex_local`, `claude_local`, `cursor`, or another coding adapter
|
|
13
|
+
|
|
14
|
+
## `AGENTS.md`
|
|
15
|
+
|
|
16
|
+
```md
|
|
17
|
+
You are agent {{agentName}}, a software engineer at {{companyName}}. You own software implementation and maintenance for the company.
|
|
18
|
+
```
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# QA Agent Template
|
|
2
|
+
|
|
3
|
+
Use this template when hiring QA engineers who reproduce bugs, validate fixes, capture screenshots, and report actionable findings.
|
|
4
|
+
|
|
5
|
+
## Recommended Role Fields
|
|
6
|
+
|
|
7
|
+
- `name`: `QA`
|
|
8
|
+
- `role`: `qa`
|
|
9
|
+
- `title`: `QA Engineer`
|
|
10
|
+
- `icon`: `bug`
|
|
11
|
+
- `capabilities`: `Owns manual and automated QA workflows, reproduces defects, validates fixes end-to-end, captures evidence, and reports concise actionable findings.`
|
|
12
|
+
- `adapterType`: `claude_local` or another browser-capable adapter
|
|
13
|
+
|
|
14
|
+
## `AGENTS.md`
|
|
15
|
+
|
|
16
|
+
```md
|
|
17
|
+
You are agent {{agentName}}, a QA engineer at {{companyName}}. You verify product behavior, reproduce defects, and report actionable findings with evidence.
|
|
18
|
+
```
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# SecurityEngineer Agent Template
|
|
2
|
+
|
|
3
|
+
Use this template when hiring security engineers who own security posture: threat-model systems, review auth/crypto/input handling, triage supply-chain and LLM-agent risk, and drive concrete remediations.
|
|
4
|
+
|
|
5
|
+
## Recommended Role Fields
|
|
6
|
+
|
|
7
|
+
- `name`: `SecurityEngineer`
|
|
8
|
+
- `role`: `security`
|
|
9
|
+
- `title`: `Security Engineer`
|
|
10
|
+
- `icon`: `shield`
|
|
11
|
+
- `capabilities`: `Owns security posture across code, architecture, APIs, deployments, dependencies, and agent tool use; threat-models early, reviews concretely, and drives remediations with evidence.`
|
|
12
|
+
- `adapterType`: `claude_local`, `codex_local`, or another adapter with repo and browser context
|
|
13
|
+
|
|
14
|
+
Recommended `desiredSkills` when the company has installed them:
|
|
15
|
+
|
|
16
|
+
- A private-advisory workflow skill (for example, `deal-with-security-advisory`) when the company receives GitHub security advisories.
|
|
17
|
+
- A browser skill when the hire is expected to verify auth flows or third-party header/CSP checks.
|
|
18
|
+
- If the company expects this role to handle private advisories but has no dedicated advisory skill, document the confidential manual workflow before submitting the hire. Do not route advisory details through normal issue threads.
|
|
19
|
+
|
|
20
|
+
Do not add broad admin or write-everywhere skills by default — security review usually reads more than it writes.
|
|
21
|
+
|
|
22
|
+
## `AGENTS.md`
|
|
23
|
+
|
|
24
|
+
```md
|
|
25
|
+
You are agent {{agentName}}, a security engineer at {{companyName}}. You own security reviews, threat modeling, and security defect remediation. Handle private vulnerabilities through the company's confidential disclosure workflow.
|
|
26
|
+
```
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# UX Designer Agent Template
|
|
2
|
+
|
|
3
|
+
Use this template when hiring product designers who produce UX specs, review interface quality, identify usability risks, and evolve the design system.
|
|
4
|
+
|
|
5
|
+
## Recommended Role Fields
|
|
6
|
+
|
|
7
|
+
- `name`: `UXDesigner`
|
|
8
|
+
- `role`: `designer`
|
|
9
|
+
- `title`: `Principal Product Designer (UX)`
|
|
10
|
+
- `icon`: `gem`
|
|
11
|
+
- `capabilities`: `Owns product UX strategy, interaction design, user research, and design-system quality across {{companyName}}.`
|
|
12
|
+
- `adapterType`: `claude_local`, `codex_local`, or another adapter with repo and design context
|
|
13
|
+
|
|
14
|
+
## `AGENTS.md`
|
|
15
|
+
|
|
16
|
+
```md
|
|
17
|
+
You are agent {{agentName}}, a product designer at {{companyName}}. You own product user experience, interaction design, accessibility, and design-system coherence.
|
|
18
|
+
```
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
# Paperclip Create Agent API Reference
|
|
2
|
+
|
|
3
|
+
## Core Endpoints
|
|
4
|
+
|
|
5
|
+
- `GET /llms/agent-configuration.txt`
|
|
6
|
+
- `GET /llms/agent-configuration/:adapterType.txt`
|
|
7
|
+
- `GET /llms/agent-icons.txt`
|
|
8
|
+
- `GET /api/companies/:companyId/agent-configurations`
|
|
9
|
+
- `GET /api/companies/:companyId/skills`
|
|
10
|
+
- `POST /api/companies/:companyId/skills/import`
|
|
11
|
+
- `GET /api/agents/:agentId/configuration`
|
|
12
|
+
- `POST /api/agents/:agentId/skills/sync`
|
|
13
|
+
- `POST /api/companies/:companyId/agent-hires`
|
|
14
|
+
- `POST /api/companies/:companyId/agents`
|
|
15
|
+
- `GET /api/agents/:agentId/config-revisions`
|
|
16
|
+
- `POST /api/agents/:agentId/config-revisions/:revisionId/rollback`
|
|
17
|
+
- `POST /api/issues/:issueId/approvals`
|
|
18
|
+
- `GET /api/approvals/:approvalId/issues`
|
|
19
|
+
|
|
20
|
+
Approval collaboration:
|
|
21
|
+
|
|
22
|
+
- `GET /api/approvals/:approvalId`
|
|
23
|
+
- `POST /api/approvals/:approvalId/request-revision` (board)
|
|
24
|
+
- `POST /api/approvals/:approvalId/resubmit`
|
|
25
|
+
- `GET /api/approvals/:approvalId/comments`
|
|
26
|
+
- `POST /api/approvals/:approvalId/comments`
|
|
27
|
+
- `GET /api/approvals/:approvalId/issues`
|
|
28
|
+
|
|
29
|
+
## `POST /api/companies/:companyId/agent-hires`
|
|
30
|
+
|
|
31
|
+
Request body matches agent create shape:
|
|
32
|
+
|
|
33
|
+
```json
|
|
34
|
+
{
|
|
35
|
+
"name": "CTO",
|
|
36
|
+
"role": "cto",
|
|
37
|
+
"title": "Chief Technology Officer",
|
|
38
|
+
"icon": "crown",
|
|
39
|
+
"reportsTo": "uuid-or-null",
|
|
40
|
+
"capabilities": "Owns architecture and engineering execution",
|
|
41
|
+
"desiredSkills": ["vercel-labs/agent-browser/agent-browser"],
|
|
42
|
+
"adapterType": "claude_local",
|
|
43
|
+
"adapterConfig": {
|
|
44
|
+
"cwd": "/absolute/path",
|
|
45
|
+
"model": "claude-sonnet-4-5-20250929"
|
|
46
|
+
},
|
|
47
|
+
"instructionsBundle": {
|
|
48
|
+
"entryFile": "AGENTS.md",
|
|
49
|
+
"files": {
|
|
50
|
+
"AGENTS.md": "You are CTO..."
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"runtimeConfig": {
|
|
54
|
+
"heartbeat": {
|
|
55
|
+
"enabled": false,
|
|
56
|
+
"wakeOnDemand": true
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"budgetMonthlyCents": 0,
|
|
60
|
+
"sourceIssueId": "uuid-or-null",
|
|
61
|
+
"sourceIssueIds": ["uuid-1", "uuid-2"]
|
|
62
|
+
}
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Response:
|
|
66
|
+
|
|
67
|
+
```json
|
|
68
|
+
{
|
|
69
|
+
"agent": {
|
|
70
|
+
"id": "uuid",
|
|
71
|
+
"status": "pending_approval"
|
|
72
|
+
},
|
|
73
|
+
"approval": {
|
|
74
|
+
"id": "uuid",
|
|
75
|
+
"type": "hire_agent",
|
|
76
|
+
"status": "pending",
|
|
77
|
+
"payload": {
|
|
78
|
+
"desiredSkills": ["vercel-labs/agent-browser/agent-browser"]
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
If company setting disables required approval, `approval` is `null` and the agent is created as `idle`.
|
|
85
|
+
|
|
86
|
+
`desiredSkills` accepts company skill ids, canonical keys, or a unique slug. The server resolves and stores canonical company skill keys.
|
|
87
|
+
Leave timer heartbeats disabled by default. Only set `runtimeConfig.heartbeat.enabled=true` and include an `intervalSec` when the role truly needs scheduled recurring work or the user explicitly requested it.
|
|
88
|
+
|
|
89
|
+
## Approval Lifecycle
|
|
90
|
+
|
|
91
|
+
Statuses:
|
|
92
|
+
|
|
93
|
+
- `pending`
|
|
94
|
+
- `revision_requested`
|
|
95
|
+
- `approved`
|
|
96
|
+
- `rejected`
|
|
97
|
+
- `cancelled`
|
|
98
|
+
|
|
99
|
+
For hire approvals:
|
|
100
|
+
|
|
101
|
+
- approved: linked agent transitions `pending_approval -> idle`
|
|
102
|
+
- rejected: linked agent is terminated
|
|
103
|
+
|
|
104
|
+
## Safety Notes
|
|
105
|
+
|
|
106
|
+
- Config read APIs redact obvious secrets.
|
|
107
|
+
- `pending_approval` agents cannot run heartbeats, receive assignments, or create keys.
|
|
108
|
+
- All actions are logged in activity for auditability.
|
|
109
|
+
- Use markdown in issue/approval comments and include links to approval, agent, and source issue.
|
|
110
|
+
- After approval resolution, requester may be woken with `PAPERCLIP_APPROVAL_ID` and should reconcile linked issues.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Short role drafting guide
|
|
2
|
+
|
|
3
|
+
For a role without a matching example, describe the agent's identity and the
|
|
4
|
+
responsibility it owns in a short paragraph. There is no required section count,
|
|
5
|
+
line count, domain-lens list, or operating checklist.
|
|
6
|
+
|
|
7
|
+
```md
|
|
8
|
+
You are agent {{agentName}}, a {{roleTitle}} at {{companyName}}. You own {{responsibility}}.
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Replace placeholders with the current company's values. Keep the reporting line,
|
|
12
|
+
capabilities, permissions, adapter configuration, and installed skills in the
|
|
13
|
+
hire payload rather than repeating them as operating instructions.
|
|
14
|
+
|
|
15
|
+
Add detail only when a concrete role or company requirement is missing from the
|
|
16
|
+
task, configuration, repository instructions, and installed skills. For example,
|
|
17
|
+
a confidential disclosure boundary can matter for a security hire. Generic
|
|
18
|
+
advice about testing, planning, delegation, comments, or task lifecycle does not
|
|
19
|
+
need to be restated in every role.
|
|
20
|
+
|
|
21
|
+
Preserve instructions supplied by the requester. If no custom role instructions
|
|
22
|
+
are needed, the server default is valid. A small hire is not an incomplete hire.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Hire review checklist
|
|
2
|
+
|
|
3
|
+
Check the hire's configuration before submitting. A short role paragraph or the
|
|
4
|
+
server default is sufficient; a full operating manual is not required.
|
|
5
|
+
|
|
6
|
+
- Name, role, title, and capabilities describe the requested responsibility.
|
|
7
|
+
- `reportsTo` resolves to an in-company agent when a reporting line is needed.
|
|
8
|
+
- The icon is allowed by this instance.
|
|
9
|
+
- Adapter, model, authentication, and workspace configuration match this
|
|
10
|
+
instance's advertised configuration.
|
|
11
|
+
- Desired skills are available in the company library or installed before the
|
|
12
|
+
hire. Do not claim tools or skills the runtime cannot provide.
|
|
13
|
+
- Grant only the permissions and skills the role needs. Explain settings or
|
|
14
|
+
skills that expand external access, browser/network reach, filesystem scope,
|
|
15
|
+
or secret-handling capability in the hire comment.
|
|
16
|
+
- Keep timer heartbeats off unless scheduled work is needed or requested. If
|
|
17
|
+
enabled, explain the interval and purpose.
|
|
18
|
+
- Keep secrets out of instruction text and literal configuration values. Use
|
|
19
|
+
this instance's supported credential bindings or environment injection.
|
|
20
|
+
- Preserve requester-supplied company or role instructions. Send custom text
|
|
21
|
+
through `instructionsBundle` on adapters that support it, rather than legacy
|
|
22
|
+
`promptTemplate` or `bootstrapPromptTemplate` fields.
|
|
23
|
+
- Replace any name, company, responsibility, or URL placeholders in custom text.
|
|
24
|
+
- Keep default role text short. Do not add generic execution or heartbeat rules,
|
|
25
|
+
mandatory comments, fixed review routes, or domain-lens catalogs.
|
|
26
|
+
- For private advisories or sensitive disclosures, confirm a confidential
|
|
27
|
+
workflow is available. Do not use normal issue threads for private details.
|
|
28
|
+
- Include source issue linkage when the hire comes from an issue. Follow the
|
|
29
|
+
company's hiring permission and approval requirements.
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: para-memory-files
|
|
3
|
+
description: >
|
|
4
|
+
Use a file-based PARA memory system to store, retrieve, and organize durable
|
|
5
|
+
knowledge across sessions. Trigger on saving facts, daily notes, entity
|
|
6
|
+
records, weekly synthesis, recall, tacit user patterns, or plan memory.
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# PARA Memory Files
|
|
10
|
+
|
|
11
|
+
Persistent, file-based memory organized by Tiago Forte's PARA method. Three layers: a knowledge graph, daily notes, and tacit knowledge. All paths are relative to `$AGENT_HOME`.
|
|
12
|
+
|
|
13
|
+
## Three Memory Layers
|
|
14
|
+
|
|
15
|
+
### Layer 1: Knowledge Graph (`$AGENT_HOME/life/` -- PARA)
|
|
16
|
+
|
|
17
|
+
Entity-based storage. Each entity gets a folder with two tiers:
|
|
18
|
+
|
|
19
|
+
1. `summary.md` -- quick context, load first.
|
|
20
|
+
2. `items.yaml` -- atomic facts, load on demand.
|
|
21
|
+
|
|
22
|
+
```text
|
|
23
|
+
$AGENT_HOME/life/
|
|
24
|
+
projects/ # Active work with clear goals/deadlines
|
|
25
|
+
<name>/
|
|
26
|
+
summary.md
|
|
27
|
+
items.yaml
|
|
28
|
+
areas/ # Ongoing responsibilities, no end date
|
|
29
|
+
people/<name>/
|
|
30
|
+
companies/<name>/
|
|
31
|
+
resources/ # Reference material, topics of interest
|
|
32
|
+
<topic>/
|
|
33
|
+
archives/ # Inactive items from the other three
|
|
34
|
+
index.md
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
**PARA rules:**
|
|
38
|
+
|
|
39
|
+
- **Projects** -- active work with a goal or deadline. Move to archives when complete.
|
|
40
|
+
- **Areas** -- ongoing (people, companies, responsibilities). No end date.
|
|
41
|
+
- **Resources** -- reference material, topics of interest.
|
|
42
|
+
- **Archives** -- inactive items from any category.
|
|
43
|
+
|
|
44
|
+
**Fact rules:**
|
|
45
|
+
|
|
46
|
+
- Save durable facts immediately to `items.yaml`.
|
|
47
|
+
- Weekly: rewrite `summary.md` from active facts.
|
|
48
|
+
- Never delete facts. Supersede instead (`status: superseded`, add `superseded_by`).
|
|
49
|
+
- When an entity goes inactive, move its folder to `$AGENT_HOME/life/archives/`.
|
|
50
|
+
|
|
51
|
+
**When to create an entity:**
|
|
52
|
+
|
|
53
|
+
- Mentioned 3+ times, OR
|
|
54
|
+
- Direct relationship to the user (family, coworker, partner, client), OR
|
|
55
|
+
- Significant project or company in the user's life.
|
|
56
|
+
- Otherwise, note it in daily notes.
|
|
57
|
+
|
|
58
|
+
For the atomic fact YAML schema and memory decay rules, see [references/schemas.md](references/schemas.md).
|
|
59
|
+
|
|
60
|
+
### Layer 2: Daily Notes (`$AGENT_HOME/memory/YYYY-MM-DD.md`)
|
|
61
|
+
|
|
62
|
+
Raw timeline of events -- the "when" layer.
|
|
63
|
+
|
|
64
|
+
- Write continuously during conversations.
|
|
65
|
+
- Extract durable facts to Layer 1 during heartbeats.
|
|
66
|
+
|
|
67
|
+
### Layer 3: Tacit Knowledge (`$AGENT_HOME/MEMORY.md`)
|
|
68
|
+
|
|
69
|
+
How the user operates -- patterns, preferences, lessons learned.
|
|
70
|
+
|
|
71
|
+
- Not facts about the world; facts about the user.
|
|
72
|
+
- Update whenever you learn new operating patterns.
|
|
73
|
+
|
|
74
|
+
## Write It Down -- No Mental Notes
|
|
75
|
+
|
|
76
|
+
Memory does not survive session restarts. Files do.
|
|
77
|
+
|
|
78
|
+
- Want to remember something -> WRITE IT TO A FILE.
|
|
79
|
+
- "Remember this" -> update `$AGENT_HOME/memory/YYYY-MM-DD.md` or the relevant entity file.
|
|
80
|
+
- Learn a lesson -> update AGENTS.md, TOOLS.md, or the relevant skill file.
|
|
81
|
+
- Make a mistake -> document it so future-you does not repeat it.
|
|
82
|
+
- On-disk text files are always better than holding it in temporary context.
|
|
83
|
+
|
|
84
|
+
## Memory Recall -- Use qmd
|
|
85
|
+
|
|
86
|
+
Use `qmd` rather than grepping files:
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
qmd query "what happened at Christmas" # Semantic search with reranking
|
|
90
|
+
qmd search "specific phrase" # BM25 keyword search
|
|
91
|
+
qmd vsearch "conceptual question" # Pure vector similarity
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
Index your personal folder: `qmd index $AGENT_HOME`
|
|
95
|
+
|
|
96
|
+
Vectors + BM25 + reranking finds things even when the wording differs.
|
|
97
|
+
|
|
98
|
+
## Planning
|
|
99
|
+
|
|
100
|
+
Keep plans in timestamped files in `plans/` at the project root (outside personal memory so other agents can access them). Use `qmd` to search plans. Plans go stale -- if a newer plan exists, do not confuse yourself with an older version. If you notice staleness, update the file to note what it is supersededBy.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Schemas and Memory Decay
|
|
2
|
+
|
|
3
|
+
## Atomic Fact Schema (items.yaml)
|
|
4
|
+
|
|
5
|
+
```yaml
|
|
6
|
+
- id: entity-001
|
|
7
|
+
fact: "The actual fact"
|
|
8
|
+
category: relationship | milestone | status | preference
|
|
9
|
+
timestamp: "YYYY-MM-DD"
|
|
10
|
+
source: "YYYY-MM-DD"
|
|
11
|
+
status: active # active | superseded
|
|
12
|
+
superseded_by: null # e.g. entity-002
|
|
13
|
+
related_entities:
|
|
14
|
+
- companies/acme
|
|
15
|
+
- people/jeff
|
|
16
|
+
last_accessed: "YYYY-MM-DD"
|
|
17
|
+
access_count: 0
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Memory Decay
|
|
21
|
+
|
|
22
|
+
Facts decay in retrieval priority over time so stale info does not crowd out recent context.
|
|
23
|
+
|
|
24
|
+
**Access tracking:** When a fact is used in conversation, bump `access_count` and set `last_accessed` to today. During heartbeat extraction, scan the session for referenced entity facts and update their access metadata.
|
|
25
|
+
|
|
26
|
+
**Recency tiers (for summary.md rewriting):**
|
|
27
|
+
|
|
28
|
+
- **Hot** (accessed in last 7 days) -- include prominently in summary.md.
|
|
29
|
+
- **Warm** (8-30 days ago) -- include at lower priority.
|
|
30
|
+
- **Cold** (30+ days or never accessed) -- omit from summary.md. Still in items.yaml, retrievable on demand.
|
|
31
|
+
- High `access_count` resists decay -- frequently used facts stay warm longer.
|
|
32
|
+
|
|
33
|
+
**Weekly synthesis:** Sort by recency tier, then by access_count within tier. Cold facts drop out of the summary but remain in items.yaml. Accessing a cold fact reheats it.
|
|
34
|
+
|
|
35
|
+
No deletion. Decay only affects retrieval priority via summary.md curation. The full record always lives in items.yaml.
|