agentleFS
neoforge-devneoforge-dev/forge/harness/CLAUDE.md

forge / harness

CLAUDE.md0 starsChanged 7 months agoMITView on GitHub

Scope: iOS only (ADR-040 complete, 2026-03-09). All fleet, task, dispatch, and daemon operations use the forge Go CLI (cmd/forge/). This Python harness exists solely for iOS build/test/deploy automation. Exit codes: 0 success, 1 general error, 2 usage error, 10 build failed, 11 test failed, 12 simulator error, 13 project not found. The following were removed from this harness per ADR-040 and ADR-014:

  • Reads credentials

The file

We split this CLAUDE.md into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Build flag: Always use -quiet to reduce xcodebuild noise

    line 69

≈ “Common” is an estimate: at least 1 in 5 of the 26,980 CLAUDE.md 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

FORGE Harness - iOS Development Automation

Scope: iOS only (ADR-040 complete, 2026-03-09). All fleet, task, dispatch, and daemon operations use the forge Go CLI (cmd/forge/). This Python harness exists solely for iOS build/test/deploy automation.

Quick Reference

# CLI invocation (from harness/ directory)
cd harness && uv run python -m forge_harness.cli_v2 ios <command>

# Or via the harness alias:
harness ios <command>
CommandPurpose
harness ios bootstrap MyApp --bundle-id com.forge.myappScaffold a new iOS project
harness ios build --simBuild for simulator
harness ios build --deviceBuild for device (requires signing)
harness ios test --coverageRun tests with coverage
harness ios sim --action listList available simulators
harness ios sim --action boot --device "iPhone 17 Pro"Boot a simulator
harness ios sim --action shutdown --device "iPhone 17 Pro"Shutdown a simulator
harness ios testflight ./build/MyApp.ipaUpload to TestFlight

Exit codes: 0 success, 1 general error, 2 usage error, 10 build failed, 11 test failed, 12 simulator error, 13 project not found.

Architecture

forge_harness/
├── cli_v2/
│   ├── __init__.py       # Click CLI group (ios command only)
│   ├── __main__.py       # Module entrypoint
│   └── ios.py            # iOS CLI (Typer app wrapping ios_harness)
└── ios_harness/
    ├── build_harness.py        # Xcode build automation
    ├── test_harness.py         # Test runner with coverage
    ├── simulator_harness.py    # Simulator lifecycle management
    ├── screenshot_automation.py # Automated screenshot capture
    ├── quality_gates.py        # Pre-deploy quality checks
    ├── appstore_harness.py     # App Store / TestFlight uploads
    ├── swift_codegen.py        # Swift code generation
    ├── feature_scaffold.py     # Feature module scaffolding
    ├── error_parser.py         # Xcode error parsing and formatting
    ├── project_bootstrap.py    # New project bootstrapping
    └── xcodegen_wrapper.py     # XcodeGen project file generation

iOS Harness Modules

ModuleClassPurpose
build_harnessBuildHarnessWraps xcodebuild for simulator and device builds
test_harnessTestHarnessRuns XCTest suites, collects results and coverage
simulator_harnessSimulatorHarnessBoot, shutdown, list, and manage iOS simulators
screenshot_automationScreenshotAutomationCapture screenshots from running simulators
quality_gatesQualityGatesHarnessPre-deploy checks (test pass rate, coverage, lint)
appstore_harnessAppStoreHarnessApp Store Connect / TestFlight upload automation
swift_codegenSwiftCodeGenGenerate Swift boilerplate (models, views, etc.)
feature_scaffoldFeatureScaffoldScaffold new feature modules with tests
error_parserXcodeErrorParserParse xcodebuild output into structured errors
project_bootstrapProjectBootstrapCreate new iOS projects from templates
xcodegen_wrapperXcodeGenWrapperGenerate .xcodeproj from YAML specs

Default Targets

  • Simulator: iPhone 17 Pro (iOS 26.2 SDK)
  • Build flag: Always use -quiet to reduce xcodebuild noise
  • iOS nodes: node-3 (48 GB, M-series) is the primary iOS build node

Testing

cd harness && uv run pytest tests/ -v
cd harness && uv run pytest tests/ --cov=forge_harness --cov-report=term-missing

What Moved to forge Go CLI

The following were removed from this harness per ADR-040 and ADR-014:

  • Fleet operations (task, agent, dispatch, patrol, daemon) -- use forge CLI
  • Command Center (:8080) -- replaced by forged daemon (:8081) per ADR-014
  • webhook_server -- deleted
  • dashboard.py (Python TUI) -- replaced by HTMX UI at http://localhost:8081/ui
  • All cli_v2 commands except ios -- removed

See root CLAUDE.md for the full forge Go CLI reference.

Environment Variables

VariablePurpose
GITHUB_TOKENGitHub API access (for iOS CI workflows)

Related Docs

DocPurpose
.claude/rules/ios-testing.mdiOS testing rules and quick commands
.claude/skills/ios-agent/SKILL.md/ios-agent skill for Claude agents
Root CLAUDE.mdFull FORGE system docs and forge Go CLI reference

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.