BeClaude

agent-foreman

New
248Community RegistryGeneralby Lukin · MIT

Long Task Harness providing external memory, feature-driven workflow, and clean agent handoffs

Community PluginView Source

Overview

⚠️ DEPRECATED: This project is no longer maintained. Please migrate to ralph-dev - a simplified and improved version.


🚨 Migration Notice

This project has been deprecated due to its complexity. A new, simplified version is now available:

👉 [https://github.com/mylukin/ralph-dev](https://github.com/mylukin/ralph-dev)

Please migrate to ralph-dev for continued support and updates.


<details> <summary><b>Legacy Documentation (archived)</b></summary>

Stop AI agents from half-building features. Ship complete code in one session.

![npm version](https://www.npmjs.com/package/agent-foreman) ![License: MIT](https://opensource.org/licenses/MIT)

Problem

AI coding agents face three common failure modes:

  1. Doing too much at once - Trying to complete everything in one session
  2. Premature completion - Declaring victory before features actually work
  3. Superficial testing - Not thoroughly validating implementations

Solution

agent-foreman provides a structured harness that enables AI agents to:

  • Maintain external memory via structured files
  • Work on one feature at a time with clear acceptance criteria
  • Hand off cleanly between sessions via progress logs
  • Track impact of changes on other features

Quick Start

bash
/plugin install agent-foreman        # 1. Install
/agent-foreman:init Build auth API   # 2. Initialize
/agent-foreman:run                   # 3. Let AI work

Installation

bash
# Quick install (binary)
curl -fsSL https://raw.githubusercontent.com/mylukin/agent-foreman/main/scripts/install.sh | bash

# Via npm
npm install -g agent-foreman

# Or use npx directly
npx agent-foreman --help

Manual download: GitHub Releases


Usage

Plugin Commands (Recommended)

code
/plugin marketplace add mylukin/agent-foreman
/plugin install agent-foreman
CommandDescription
/agent-foreman:statusView project status and progress
/agent-foreman:initInitialize harness with project goal
/agent-foreman:analyzeAnalyze existing project structure
/agent-foreman:specTransform requirements into tasks
/agent-foreman:nextGet next priority task
/agent-foreman:runAuto-complete all pending tasks

Transform requirements into tasks:

code
/agent-foreman:spec Build a user authentication system
code
Requirement → [PM→UX→Tech→QA] → Spec Files → BREAKDOWN Tasks → /run → Implementation

<details> <summary><b>CLI Commands (standalone)</b></summary>

For standalone CLI usage without Claude Code:

CommandDescription
init [goal]Initialize or upgrade the harness
next [feature_id]Show next feature to work on
statusShow current project status
check [feature_id]Verify code changes or task completion
done <feature_id>Verify, mark complete, and auto-commit
fail <feature_id>Mark a task as failed
impact <feature_id>Analyze impact of changes
tdd [mode]View or set TDD mode
agentsShow available AI agents
installInstall Claude Code plugin
uninstallUninstall Claude Code plugin

</details>


Workflow

code
next → implement → check → done → repeat
StepCommandWhat Happens
1nextGet task with acceptance criteria
2implementWrite code to satisfy criteria
3checkVerify implementation
4doneMark complete, auto-commit

Best Practices

  1. One feature at a time - Complete before switching
  2. Update status promptly - Mark passing when criteria met
  3. Review impact - Run impact analysis after changes
  4. Clean commits - One feature = one atomic commit
  5. Read first - Always check feature list and progress log

Reference

<details> <summary><b>Core Files</b></summary>

FilePurpose
ai/tasks/index.jsonTask index with status summary
ai/tasks/{module}/{id}.mdIndividual task definitions
ai/progress.logSession handoff audit log
ai/init.shEnvironment bootstrap script
CLAUDE.mdAI agent instructions

</details>

<details> <summary><b>Status Values</b></summary>

StatusMeaning
failingNot yet implemented
passingAcceptance criteria met
blockedExternal dependency blocking
needs_reviewMay be affected by changes
failedVerification failed
deprecatedNo longer needed

</details>

<details> <summary><b>Why It Works</b></summary>

AI agents need the same tooling that makes human teams effective:

Human PracticeAI Equivalent
Scrum boardai/tasks/index.json
Sprint notesprogress.log
CI/CD pipelineinit.sh check
Code reviewAcceptance criteria

</details>


License

MIT

Author

Lukin (@mylukin)


Inspired by Anthropic's blog post: Effective harnesses for long-running agents

</details>

Install & Usage

1
Create the skills directory
mkdir -p .claude/skills
2
Download the skill file
mkdir -p .claude/skills && curl -o .claude/skills/agent-foreman.md https://raw.githubusercontent.com/mylukin/agent-foreman/main/SKILL.md
3
Invoke in Claude Code
/agent-foreman
View source on GitHub
agentlong-taskharnessfeature-drivenagent-memoryhandoffai-agentclaude-code

Frequently Asked Questions

What is agent-foreman?

Long Task Harness providing external memory, feature-driven workflow, and clean agent handoffs

How to install agent-foreman?

To install agent-foreman, create the .claude/skills directory in your project, then run the curl command to download the skill file. Once installed, invoke it in Claude Code with /agent-foreman.

What is agent-foreman best for?

agent-foreman is a community categorized under General. It is designed for: agent, long-task, harness, feature-driven, agent-memory, handoff, ai-agent, claude-code. Created by Lukin.