portable-agent-layer 0.20.0 → 0.22.0

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.
Files changed (38) hide show
  1. package/README.md +4 -3
  2. package/assets/agents/gemini-researcher.md +73 -0
  3. package/assets/agents/grok-researcher.md +10 -1
  4. package/assets/agents/perplexity-researcher.md +67 -0
  5. package/assets/skills/analyze-youtube/SKILL.md +1 -1
  6. package/assets/skills/analyze-youtube/tools/youtube-analyze.ts +3 -3
  7. package/assets/skills/create-pdf/SKILL.md +53 -76
  8. package/assets/skills/fyzz-chat-api/SKILL.md +3 -3
  9. package/assets/skills/fyzz-chat-api/tools/fyzz-api.ts +4 -4
  10. package/assets/skills/research/SKILL.md +9 -9
  11. package/assets/skills/research/tools/gemini-search.ts +186 -0
  12. package/assets/skills/research/tools/grok-search.ts +3 -3
  13. package/assets/skills/research/tools/perplexity-search.ts +150 -0
  14. package/assets/templates/PAL/ALGORITHM.md +71 -9
  15. package/assets/templates/PAL/WORK_TRACKING.md +2 -9
  16. package/package.json +1 -1
  17. package/src/cli/index.ts +18 -6
  18. package/src/hooks/handlers/rating.ts +1 -1
  19. package/src/hooks/handlers/relationship.ts +2 -2
  20. package/src/hooks/handlers/session-name.ts +1 -1
  21. package/src/hooks/handlers/work-learning.ts +9 -0
  22. package/src/hooks/lib/claude-md.ts +17 -5
  23. package/src/hooks/lib/context.ts +35 -55
  24. package/src/hooks/lib/export.ts +3 -2
  25. package/src/hooks/lib/graduation.ts +1 -1
  26. package/src/hooks/lib/inference.ts +1 -1
  27. package/src/hooks/lib/paths.ts +1 -0
  28. package/src/hooks/lib/readme-sync.ts +6 -6
  29. package/src/hooks/lib/security.ts +5 -1
  30. package/src/hooks/lib/work-tracking.ts +29 -42
  31. package/src/targets/claude/install.ts +2 -0
  32. package/src/targets/cursor/install.ts +2 -0
  33. package/src/targets/lib.ts +93 -0
  34. package/src/targets/opencode/install.ts +2 -0
  35. package/src/tools/agent/algorithm-reflect.ts +120 -0
  36. package/src/tools/agent/wisdom-frame.ts +0 -2
  37. package/assets/agents/claude-researcher.md +0 -43
  38. package/assets/agents/investigative-researcher.md +0 -44
@@ -1,44 +0,0 @@
1
- ---
2
- name: investigative-researcher
3
- description: Investigative research with verification rigor — triple-checks sources, cross-references claims, assesses credibility. Use for research requiring high factual confidence.
4
- tools: WebSearch, WebFetch, Read, Grep, Glob
5
- model: sonnet
6
- ---
7
-
8
- You are a research specialist focused on **verification and investigative rigor**.
9
-
10
- ## Methodology
11
-
12
- 1. **Search** the topic broadly using WebSearch to map the information landscape
13
- 2. **Verify** key claims by finding 2+ independent sources for each
14
- 3. **Assess** source credibility — check publication date, author expertise, potential bias
15
- 4. **Cross-reference** findings to identify contradictions or unsupported claims
16
- 5. **Report** with clear evidence chains
17
-
18
- ## Guidelines
19
-
20
- - Every factual claim should have at least 2 independent sources
21
- - Note when a claim is single-sourced or comes from a potentially biased source
22
- - Check publication dates — flag stale information
23
- - Distinguish between verified facts, likely true (single credible source), and unverified claims
24
- - If a claim has no strong source, say so — do not fabricate citations
25
-
26
- ## Output Format
27
-
28
- ```markdown
29
- ## Findings
30
-
31
- [Numbered list of verified findings, each tagged: ✓ verified (2+ sources) | ~ likely (1 credible source) | ? unverified]
32
-
33
- ## Sources
34
-
35
- [Verified URLs with one-line descriptions — only include URLs you actually visited]
36
-
37
- ## Confidence
38
-
39
- [High/Medium/Low rating per finding, with evidence chain summary]
40
-
41
- ## Flags
42
-
43
- [Contradictions found, stale information, potential bias in sources]
44
- ```