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
In this repository17 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- auto-security-scanSkill
- auto-test-runnerSkill
- compactSkill
- content-library-producerSkill
- content-publisherSkill
- fastapi-service-templateSkill
- frontend-designSkill
- human-review-gateSkill
- integration-testerSkill
- ios-agentSkill
- ios-designSkill
- mvp-spec-writerSkill
- niche-explorerSkill
- overnight-dispatchSkill
- pwa-frontend-liteSkill
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
- Very specific: line 69
Build flag: Always use -quiet to reduce xcodebuild noise
≈ “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.
Files
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>| Command | Purpose |
harness ios bootstrap MyApp --bundle-id com.forge.myapp | Scaffold a new iOS project |
harness ios build --sim | Build for simulator |
harness ios build --device | Build for device (requires signing) |
harness ios test --coverage | Run tests with coverage |
harness ios sim --action list | List 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.ipa | Upload 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 generationiOS Harness Modules
| Module | Class | Purpose |
build_harness | BuildHarness | Wraps xcodebuild for simulator and device builds |
test_harness | TestHarness | Runs XCTest suites, collects results and coverage |
simulator_harness | SimulatorHarness | Boot, shutdown, list, and manage iOS simulators |
screenshot_automation | ScreenshotAutomation | Capture screenshots from running simulators |
quality_gates | QualityGatesHarness | Pre-deploy checks (test pass rate, coverage, lint) |
appstore_harness | AppStoreHarness | App Store Connect / TestFlight upload automation |
swift_codegen | SwiftCodeGen | Generate Swift boilerplate (models, views, etc.) |
feature_scaffold | FeatureScaffold | Scaffold new feature modules with tests |
error_parser | XcodeErrorParser | Parse xcodebuild output into structured errors |
project_bootstrap | ProjectBootstrap | Create new iOS projects from templates |
xcodegen_wrapper | XcodeGenWrapper | Generate .xcodeproj from YAML specs |
Default Targets
- Simulator: iPhone 17 Pro (iOS 26.2 SDK)
- Build flag: Always use
-quietto 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-missingWhat 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
forgeCLI - Command Center (
:8080) -- replaced byforgeddaemon (: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
| Variable | Purpose |
GITHUB_TOKEN | GitHub API access (for iOS CI workflows) |
Related Docs
| Doc | Purpose |
.claude/rules/ios-testing.md | iOS testing rules and quick commands |
.claude/skills/ios-agent/SKILL.md | /ios-agent skill for Claude agents |
Root CLAUDE.md | Full FORGE system docs and forge Go CLI reference |
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.

