Skip to main content

High-ticket business builder — AI agent pipeline CLI

Project description

Agent Forge

Local-first AI agent pipeline for designing, validating, and operating a high-ticket expert business.

Agent Forge turns structured business context into a sequence of market, offer, acquisition, delivery, and launch artifacts. It runs without API keys in deterministic mock mode and can use the Anthropic API for generated strategy documents.

What It Includes

  • A packaged agent-forge CLI
  • A dependency-aware 19-stage business pipeline
  • File-based agent prompts, knowledge, memory, checklists, and evals
  • Mock mode for local development and CI
  • Claude API mode for generated outputs
  • Source-linked market research and competitor monitoring
  • Context compaction and structured inter-agent state
  • A local dashboard for inspecting agents and research sources
  • Guardrails against fabricated claims, testimonials, scarcity, and income promises

The intended business flow is:

market -> avatar -> offer -> proof -> acquisition -> sales
       -> delivery -> retention -> assessment -> specialists -> launch

Requirements

  • Python 3.11 or newer
  • An Anthropic API key only when using --mode api

The TypeScript files under tools/web/ define provider contracts and mock-safe adapters. The current pipeline and CLI runtime are Python-based.

Installation

Clone the repository and install it in editable mode:

git clone https://github.com/cemalkarabulakli/agent_dev_boilerplate.git
cd agent_dev_boilerplate

python -m venv .venv

Activate the environment:

# macOS/Linux
source .venv/bin/activate

# Windows PowerShell
.venv\Scripts\Activate.ps1

Install the application:

pip install -e .

For development and tests:

pip install -e ".[dev]"

Quick Start

1. Fill In The Business Context

business_context.yaml is the shared source of truth for every pipeline stage. It is JSON-compatible YAML and is gitignored — your real data stays local and is never committed (same pattern as .env).

Copy the example file to get started:

# macOS/Linux
cp business_context.example.yaml business_context.yaml

# Windows PowerShell
Copy-Item business_context.example.yaml business_context.yaml

Inspect it:

agent-forge context --show

Set individual values from the CLI:

agent-forge context --set "expert.niche=AI automation consulting"
agent-forge context --set "customer.target_customer=B2B SaaS founders"
agent-forge context --set "offer.current_price=5000 USD"

Unknown values should remain blank. Agents treat missing values as gaps instead of inventing facts.

2. Preview The Pipeline

agent-forge list
agent-forge build --dry-run

3. Run The Foundation In Mock Mode

Mock mode is local, deterministic, and requires no API key:

agent-forge build --mode mock --group foundation

Generated Markdown is written under outputs/. Structured summaries used by downstream agents are written to pipeline_context.json.

4. Check Progress

agent-forge status

The status view shows:

  • business-context completion by section
  • completed and pending pipeline stages
  • upstream dependency gaps
  • collected research signal counts

5. Run With Claude

The runtime reads credentials from the process environment. .env.example documents the supported variables but is not loaded automatically.

# macOS/Linux
export ANTHROPIC_API_KEY="your-key"

# Windows PowerShell
$env:ANTHROPIC_API_KEY="your-key"

Run one stage:

agent-forge run offer_architect --mode api

Run a pipeline group:

agent-forge build --mode api --group offer --confirm

API mode makes one model call per selected stage. Omit --confirm to receive an interactive cost prompt.

CLI Reference

Command Purpose
agent-forge version Print the installed version
agent-forge init NAME Scaffold a project from the repository template
agent-forge list List the 19 registered pipeline stages
agent-forge status Show context, pipeline, and research status
agent-forge context --show Display business_context.yaml
agent-forge context --set section.field=value Update one context field
agent-forge run AGENT Run one registered agent
agent-forge build Run selected pipeline stages in dependency order
agent-forge research SOURCE --query QUERY Collect signals from one research source

Useful build selectors:

agent-forge build --group foundation,offer
agent-forge build --only market_selector,offer_architect
agent-forge build --skip-to funnel_builder
agent-forge build --no-memory
agent-forge build --stop-on-error

Use agent-forge COMMAND --help for the full option list.

Pipeline

The public CLI pipeline contains 19 stages:

Group Agents
Foundation market_selector, avatar_pain_researcher
Offer offer_architect, value_stack_builder, pricing_guarantee_optimizer, proof_engine_builder
Acquisition acquisition_strategy_agent, content_authority_agent, funnel_builder, sales_script_builder, objection_handler
Delivery delivery_system_designer, retention_upsell_agent
Assessment business_scorecard_agent
Specialists meta_ads_manager, vsl_copywriter, case_study_writer, youtube_strategy_agent
Launch launch_campaign_manager

Some additional agent directories are under development or support specialized workflows. agent-forge list is the source of truth for agents registered in the orchestrated CLI pipeline.

Inter-Agent Data Flow

Each stage declares the small set of upstream fields it reads and the structured fields it writes. The pipeline stores these summaries in pipeline_context.json; it does not pass complete Markdown documents between agents.

flowchart LR
  A["business_context.yaml"] --> B["Pipeline stage"]
  C["pipeline_context.json"] --> B
  D["Agent prompt + knowledge"] --> B
  B --> E["Markdown in outputs/"]
  B --> C
  B --> F["Agent memory"]

When a dependency has not run or did not produce a required field, the downstream output records an upstream gap and treats that value as unknown.

Agent Layout

Each agent follows this structure:

agents/<agent_name>/
  agent.yaml
  system_prompt.md
  checklist.yaml
  knowledge/
  memory/
    raw_history.jsonl
    session_notes.md
    long_term_memory.json
    compacted_context.md
  outputs/
  evals/
    eval_cases.yaml

agent.yaml defines the role, model settings, context, allowed tools, guardrails, and output format. Long-term memory entries remain candidates until reviewed; generated assumptions are not automatically promoted to business facts.

Create another agent from the template:

python scripts/create_agent.py \
  --name sales_page_reviewer \
  --role "Sales Page Reviewer"

After editing the generated prompt, knowledge, checklist, and eval cases, validate the structure:

python scripts/validate_agent_structure.py
python scripts/run_checklist.py --agent sales_page_reviewer
python scripts/run_evals.py --agent sales_page_reviewer

Creating a directory does not automatically register the agent in the CLI pipeline. Registration requires adding its output template, dependency schema, generator mapping, and pipeline stage.

Research Engine

Research sources are configured under research/sources/ and registered in research/index/source_registry.yaml.

Included source adapters cover:

  • Reddit
  • Quora
  • Google Trends
  • YouTube
  • web search
  • GitHub trends
  • Facebook Ad Library
  • ClickBank
  • BG-Mamma
  • competitors
  • custom sources

Collect one source:

agent-forge research reddit \
  --query "B2B founders struggling with customer acquisition" \
  --limit 10

Run all enabled sources and cross-source analysis:

python scripts/collect_all_sources.py --category high_ticket_business
python scripts/analyze_cross_source_signals.py

Run the weekly workflow locally:

python scripts/run_weekly_research.py

Monitor competitors:

python scripts/monitor_competitors.py \
  --query "AI automation consulting"

Research artifacts are separated by purpose:

research/sources/<source>/raw/         Original collected signals
research/sources/<source>/processed/   Normalized, scored signals
research/sources/<source>/reports/     Human-readable reports
research/index/                        References, run log, signal index
research/insights/                     Candidate/validated/rejected insights

Every collected signal should retain a reference ID. Mock references use mock:// URLs and is_mock: true. A one-source signal remains a candidate; strategy changes require independent validation and human review.

Direct Script Usage

The CLI is the preferred interface. Individual generators remain available for automation and debugging:

python scripts/generate_offer_audit.py \
  --mode mock \
  --context business_context.yaml

python scripts/generate_vsl_script.py \
  --mode api \
  --model claude-sonnet-4-6

Run the complete script-level pipeline:

python scripts/run_full_business_build.py --mode mock

Unlike the agent-forge CLI, individual generator scripts default to API mode and fall back to mock mode when ANTHROPIC_API_KEY is absent. Pass --mode mock explicitly for deterministic runs.

Quality Checks

Run the full development checks:

python -m pytest
python scripts/validate_yaml.py
python scripts/validate_agent_structure.py
python scripts/run_checklist.py --all
python scripts/run_evals.py --all

Compact memory after long-running sessions:

python scripts/compact_context.py --agent offer_architect
python scripts/compact_context.py --all

Validation and checklist reports are written to outputs/quality_reports/.

Dashboard

Start the read-only local dashboard:

python dashboard/server.py

Open http://localhost:8765. An optional port can be passed as the first argument:

python dashboard/server.py 9000

The dashboard displays available agents, memory coverage, knowledge/eval status, research sources, and scripts.

Repository Map

agent_forge/     Typer CLI and project scaffolding
agents/          Agent configurations, prompts, knowledge, memory, and evals
core/            Loading, schemas, pipeline state, memory, research, and quality logic
scripts/         Generator, orchestration, research, validation, and release commands
tools/           Python source adapters and TypeScript web-tool contracts
research/        Source configuration, collected signals, references, and insights
knowledge/       Shared business and ethics knowledge
prompts/         Reusable prompt templates
checklists/      Global YAML quality gates
outputs/         Generated artifacts
dashboard/       Local HTTP dashboard
tests/           Pytest suite

Most .yaml files in this repository are JSON-compatible and are parsed through core.schema.load_yaml(). Preserve that format unless the loader is changed.

Provider Configuration

Supported environment variables are listed in .env.example:

ANTHROPIC_API_KEY
OPENAI_API_KEY
TAVILY_API_KEY
SERPAPI_API_KEY
FIRECRAWL_API_KEY
YOUTUBE_API_KEY
REDDIT_CLIENT_ID
REDDIT_CLIENT_SECRET
REDDIT_USER_AGENT
GITHUB_TOKEN
FACEBOOK_AD_LIBRARY_TOKEN
CLICKBANK_API_KEY
RESEARCH_MODE
WEB_TOOLS_MODE

The current generated-output API path uses Anthropic. Other keys support research adapters or future provider implementations. Agents should depend on the interfaces and registries under tools/web/, not import provider SDKs directly.

Safety And Review Rules

Do not:

  • invent claims, testimonials, scarcity, or income outcomes
  • treat mock data as live evidence
  • treat one-source signals as validated
  • insert raw research dumps into compacted context
  • store unnecessary personal data
  • bypass the reference manager for collected research

Do:

  • leave unknown context fields blank
  • label assumptions and missing dependencies
  • preserve source URLs and reference IDs
  • keep raw and processed research separate
  • require human review before accepting durable memories or strategy changes
  • respect source terms, access policies, and legal constraints

License

Released under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agent_boilerplate-0.1.4.tar.gz (81.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agent_boilerplate-0.1.4-py3-none-any.whl (111.3 kB view details)

Uploaded Python 3

File details

Details for the file agent_boilerplate-0.1.4.tar.gz.

File metadata

  • Download URL: agent_boilerplate-0.1.4.tar.gz
  • Upload date:
  • Size: 81.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for agent_boilerplate-0.1.4.tar.gz
Algorithm Hash digest
SHA256 613c1de49d493a1b04991596731ccea05c693abf66ace1251025eb33f89c97dc
MD5 801d02297f83d547621903ec282aa35a
BLAKE2b-256 3130d42a37e9769aa122f7f91258431a8281d005413f260020dc68ccc2a2b684

See more details on using hashes here.

File details

Details for the file agent_boilerplate-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for agent_boilerplate-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 59013bdfe15b7416ed0d48c5999212d76c6b6d299ef5038eeb0f9256cfb28999
MD5 396055112ac9ef2fbe0f020ac9569ac3
BLAKE2b-256 a750a68dbed4765f3ee0c08a79db288f34b0e908c980c7ac787199b8e8f442ee

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page