ruc-nlpir/arbor/arbor-agent-executor
Claude Code and agent skill by ruc-nlpir/arbor
- community
Checking that the SKILL.md file is still in the repository.
Executor-dispatch phase for Arbor. Use when implementing an Idea Tree node through RunExecutor or RunExecutorParallel semantics: isolated git worktree, executor prompt construction, eval metadata injection, RunTraining policy, smoke/full evaluation, report parsing, artifact persistence, tree update, and insight propagation.
Install
npx vskill@latest install ruc-nlpir/arbor/arbor-agent-executorSKILL.md
The same SKILL.md was published earlier as ruc-nlpir/arbor/arbor-agent-executor.
Arbor Executor
Use this when a pending Idea Tree leaf is selected for implementation.
Dispatch Contract
The executor receives:
- Isolated worktree path and experiment branch.
- Node id and exact hypothesis.
- Evaluation info from tree metadata with
{cwd}and{node_id}substituted. - Ancestor insights.
- Additional context from the coordinator.
The executor must implement the assigned idea faithfully. It may choose how to implement the idea, but it must not silently switch to a different direction.
Worktree Lifecycle
Native RunExecutor does this automatically:
- Validate node exists and is
pendingorrunning. - Enforce leaf-only dispatch when
max_tree_depthis set. - Mark node
running. - Create a git worktree from current trunk.
- Run the executor agent in that worktree.
- Finalize useful code changes with a commit.
- Snapshot plugin outputs such as
submission.csvif configured. - Remove the worktree but preserve the experiment branch.
- Parse the executor report.
- Update the node as
donewithscore,insight,result, and
code_ref.
- Save experiment artifacts under
experiments/<node_id>/. - Propagate insights upward.
When emulating manually, do the same sequence. Use arbor-agent-tools for prompt generation and tree updates.
Executor Workflow
The executor follows this loop:
- Understand: read relevant files before editing.
- Implement: make the idea active in code.
- Validate implementation: run 2-3 small representative checks.
- Iterate until solid: fix bugs and integration misses before judging the
idea.
- Evaluate: run the full B_dev eval once implementation is credible.
- Report: include changes, baseline vs result, absolute score, and
insight.
A bad score is useful only if the implementation was correct. Do not conclude an idea failed from broken code.
Evaluation Rules
- Use B_dev only. Never run B_test during routine executor work.
- Use the eval command injected from metadata. It should already target the
executor worktree after {cwd} substitution.
- Save results to
results/<node_id>-<brief-description>/. - Report absolute score, not delta.
- If full eval is expensive, run smoke/subset checks first, then full eval
when code is correct.
In smoke-only forward tests, the executor is not a real implementer. Do not edit source, create a real worktree, commit, run training, or run the real eval command. Generate a smoke prompt, save it as an artifact, and record a mocked or cached-score report that is clearly labelled as plumbing evidence only.
Long Commands
Use RunTraining semantics for long training/eval commands:
- Under 5 minutes: normal shell/Bash is acceptable.
- 5 minutes or more: use
RunTrainingor the host equivalent with a generous
timeout.
- Do not use
sleep && tailpolling loops. - If timeout occurs, inspect partial metrics, logs, checkpoints, and decide
whether to resume, reduce scope, debug, or report timeout as evidence.
For MLE/Kaggle, estimate:
If it exceeds 70 percent of executor budget, scale down before continuing.
Report Schema
The coordinator extracts:
Make the final report easy to parse:
- Idea
- Changes
- Implementation Choices
- Baseline vs Result
- Score
- Analysis
- Insights
Parallel Dispatch
Use parallel dispatch for 2-4 independent pending leaves. Do not parallelize GPU-heavy or mutually competing experiments unless budget permits. Validate all nodes before launching. Respect human review gates and cycle caps.
Manual Emulation
If native RunExecutor is unavailable:
- Create a worktree/branch or copy the repo if worktrees are unsafe.
- Generate the prompt from the main session while substituting the executor
worktree as {cwd}: ``bash python <tools>/arbor_state.py prompt-executor --cwd <project> --run-name <run> \ --node-id <id> --workdir <worktree> \ --output <project>/.arbor/sessions/<run>/experiments/<id>/executor_prompt.md ` For smoke/forward tests, add --smoke` and include smoke-only additional context.
- Launch a fresh agent in that worktree with the generated prompt.
- Run B_dev from the worktree. With the fallback helper, keep session state
in <project> and run the command in <worktree>: ``bash python <tools>/arbor_state.py eval --cwd <project> --run-name <run> \ --split dev --exec-cwd <worktree> --cmd "<eval_cmd>" --node-id <id> ``
- Capture the executor report. Before calling
record --report-file, create
the referenced report file. If no file exists yet, pass the report body with --raw-report instead.
- Record outcome:
``bash python <tools>/arbor_state.py record --cwd <project> --run-name <run> \ --node-id <id> --score <score> --insight "<insight>" \ --result "<result>" --code-ref <branch> ``
- Run
propagateor manually update parent/root insights.
For smoke/forward tests, skip worktree creation, source edits, fresh agent launch, and B_dev execution. Save the generated prompt under experiments/<node_id>/, then use record with a cached or mocked report.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/arbor-agent-executor/SKILL.md
Popularity
- Repository stars
- 1,073
- Repository forks
- 126
- 7-day trend score
- 35
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ruc-nlpir/arbor/arbor-agent-executor)