kayba-pipeline
Skill2.6k starsChanged 9 months agoApache-2.0View on GitHub
End-to-end agent evaluation and improvement pipeline. Takes a traces folder and optional HITL flag, then orchestrates sub-agents through 7 stages — each stage is its own skill invoked by a dedicated sub-agent. Trigger when the user says "run the pipeline", "kayba pipeline", "evaluate and fix", "full eval", "analyze traces and fix", or provides a traces folder with intent to improve their agent.
Trending
Quiet since September.thin dataabout the whole repository
Who's talking about kayba-ai/agentic-context-engine
- A Hacker News story“Show HN: Open-source implementation of Stanford's self-learning agent framework”Hacker News · Oct 18, 2025 · 10 points
- A Hacker News story“Show HN: LLM agents that write Python to analyze execution traces at scale”Hacker News · Mar 7, 2026 · 5 points
- A Hacker News story“Show HN: Open-source agent learning layer: 30% to 100% success on browser agents”Hacker News · Nov 29, 2025 · 3 points
- thoroc/context-radar“Freshness: agentic-context-engine (ACE) v0.12.0 -> v0.13.0”GitHub · Sep 27, 2026
- emilesilvis/sddobservatory.com“Add project: Agentic Context Engine”GitHub · Jul 19, 2026
The biggest 5 of 12 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 12
Talked about on GitHub and Hacker News (12 times).
On GitHub · 9
- Sep 27, 2026Freshness: agentic-context-engine (ACE) v0.12.0 -> v0.13.0 — thoroc/context-radar0 reactions
- Jul 19, 2026Add project: Agentic Context Engine — emilesilvis/sddobservatory.com0 reactions
- Mar 31, 2026ACE: upgrade reflector/curator prompts to match kayba-ai reference implementation quality — windoliver/koi0 reactions
- Mar 14, 2026feat: add ACE self-improving agent framework — BaptTF/openclaw-lea-config0 reactions · 1 comment
- Jan 1, 2026ACE integration — NoSaaS-me/Vlt-Bridge0 reactions
4 more on GitHub
- Dec 27, 2025Implement Agentic Context Engineering — Open-Superintelligence-Lab/auto-ai-researcher0 reactions
- Oct 29, 2025ACE Integration: Auto-Improving Skills & Agents with Demo Cases — nexi-lab/nexus0 reactions
- Oct 23, 2025Update README.md with Agentic Context Engine Entry — kyrolabs/awesome-langchain0 reactions · 1 comment
- Oct 22, 2025Add Agentic Context Engine (ACE) - Self-improving agents framework — kyrolabs/awesome-langchain0 reactions · 4 comments
On Hacker News · 3
- Oct 18, 2025Show HN: Open-source implementation of Stanford's self-learning agent framework10 points · 5 comments
- Mar 7, 2026Show HN: LLM agents that write Python to analyze execution traces at scale5 points
- Nov 29, 2025Show HN: Open-source agent learning layer: 30% to 100% success on browser agentssays it tested it3 points
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 5 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 19
If the user doesn't specify HITL, default to true (safe default).
- Very specific: line 43
Create the eval/ directory and eval/pipeline_log.md
- Very specific: line 49
Create eval/ directory and initialize eval/pipeline_log.md:
- Distinctive: line 79
Wait for both to complete before proceeding.
- Very specific: line 115
Wait for the sub-agent to complete.
- Distinctive: line 116
If decision is "Approve all" or "Approve with modifications" — proceed to Stage 7
- Very specific: line 117
If decision is "Reject" — re-run Stage 5 with the user feedback recorded in eval/stage6_decision.md, then re-run Stage 6
- Distinctive: line 118
Only proceed to Stage 7 after a clear approval is recorded
- Very specific: line 136
If any stage fails, log the failure in eval/pipeline_log.md with the stage number and error
- Distinctive: line 137
Do not proceed to dependent stages if a prerequisite failed
- Distinctive: line 138
If Stage 1 fails (kayba CLI issues), ask the user whether to proceed without API insights — if yes, skip Stage 1 and have Stage 3 work from …
- Very specific: line 142
Update eval/pipeline_log.md with final status for all stages.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
kayba-pipeline
End-to-end pipeline: analyze traces → define metrics → build rubric → plan fixes → implement fixes.
Each stage is a separate skill file that can be run independently or as part of this pipeline.
Inputs
The user provides two things:
TRACES_FOLDER— path to a directory containing trace JSON filesHITL—trueorfalse— whether to pause for human review before implementing fixes
If the user doesn't specify HITL, default to true (safe default).
Pipeline overview
┌─────────────────────────────────────────────────────────────────────┐
│ Stage 1: Kayba API Analysis → skill: kayba-pipeline:stage-1-api-analysis │
│ Stage 2: Domain Context Gathering → skill: kayba-pipeline:stage-2-domain-context │
│ ─── stages 1 & 2 run in parallel ─── │
│ Stage 3: Metrics & Analysis → skill: kayba-pipeline:stage-3-metrics │
│ Stage 4: Rubric Definition → skill: kayba-pipeline:stage-4-rubric │
│ Stage 5: Action Plan → skill: kayba-pipeline:stage-5-action-plan │
│ Stage 6: HITL Gate → skill: kayba-pipeline:stage-6-hitl │
│ Stage 7: Fix Implementation → skill: kayba-pipeline:stage-7-fixer │
└─────────────────────────────────────────────────────────────────────┘Orchestration instructions
You are the orchestrator. Your job is to:
- Create the
eval/directory andeval/pipeline_log.md - Spawn sub-agents that invoke stage skills via the Skill tool
- Coordinate stage ordering and handle the HITL gate
Setup
Create eval/ directory and initialize eval/pipeline_log.md:
# Pipeline Log
| Stage | Name | Status | Started | Completed | Notes |
|-------|------|--------|---------|-----------|-------|
| 1 | Kayba API Analysis | pending | | | |
| 2 | Domain Context | pending | | | |
| 3 | Metrics & Analysis | pending | | | |
| 4 | Rubric Definition | pending | | | |
| 5 | Action Plan | pending | | | |
| 6 | HITL Gate | pending | | | |
| 7 | Fix Implementation | pending | | | |Stages 1 & 2 — run in parallel
Spawn two sub-agents in parallel using the Agent tool:
Agent 1:
- Name:
api-analyst - Type:
general-purpose - Prompt:
Invoke the skill "kayba-pipeline:stage-1-api-analysis" using the Skill tool. The traces folder is: {TRACES_FOLDER}. Follow the skill instructions completely.
Agent 2:
- Name:
domain-scout - Type:
general-purpose - Prompt:
Invoke the skill "kayba-pipeline:stage-2-domain-context" using the Skill tool. The traces folder is: {TRACES_FOLDER}. Follow the skill instructions completely.
Wait for both to complete before proceeding.
Stage 3 — sequential
Spawn one sub-agent after stages 1 & 2 complete:
- Name:
metric-engineer - Type:
general-purpose - Prompt:
Invoke the skill "kayba-pipeline:stage-3-metrics" using the Skill tool. The traces folder is: {TRACES_FOLDER}. Follow the skill instructions completely — this includes iterating on the metrics until you're satisfied.
Stage 4 — sequential
Spawn one sub-agent after stage 3 completes:
- Name:
rubric-builder - Type:
general-purpose - Prompt:
Invoke the skill "kayba-pipeline:stage-4-rubric" using the Skill tool. Follow the skill instructions completely.
Stage 5 — sequential
Spawn one sub-agent after stage 4 completes:
- Name:
action-planner - Type:
general-purpose - Prompt:
Invoke the skill "kayba-pipeline:stage-5-action-plan" using the Skill tool. Follow the skill instructions completely.
Stage 6 — HITL Gate
If HITL is true:
Spawn one sub-agent after stage 5 completes:
- Name:
hitl-reviewer - Type:
general-purpose - Prompt:
Invoke the skill "kayba-pipeline:stage-6-hitl" using the Skill tool. Follow the skill instructions completely. Present the full review to the user and collect their decision before proceeding.
Wait for the sub-agent to complete. Check eval/stage6_decision.md for the outcome:
- If decision is "Approve all" or "Approve with modifications" — proceed to Stage 7
- If decision is "Reject" — re-run Stage 5 with the user feedback recorded in
eval/stage6_decision.md, then re-run Stage 6 - Only proceed to Stage 7 after a clear approval is recorded
If HITL is false:
- Skip to Stage 7
- Log "HITL skipped" in
eval/pipeline_log.md
Stage 7 — sequential
Spawn one sub-agent after stage 6 completes (or is skipped):
- Name:
fixer - Type:
general-purpose - Prompt:
Invoke the skill "kayba-pipeline:stage-7-fixer" using the Skill tool. Follow the skill instructions completely.
Error handling
- If any stage fails, log the failure in
eval/pipeline_log.mdwith the stage number and error - Do not proceed to dependent stages if a prerequisite failed
- If Stage 1 fails (kayba CLI issues), ask the user whether to proceed without API insights — if yes, skip Stage 1 and have Stage 3 work from domain context + raw traces only
After completion
Update eval/pipeline_log.md with final status for all stages. Report to the user:
- How many stages completed successfully
- Summary of metrics (from rubric)
- Summary of fixes applied (from changes log)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

