This example demonstrates how nexcoder orchestrates the complete software engineering lifecycle without requiring external API keys or network access.
The script runs a full pipeline on an included sample Python project (sample_project/):
- Idea Intake & Architectural Jury (
nexcoder-ideation): Processes a high-level proposal ("add due dates to tasks") and evaluates market viability, architecture, and alignment across six automated juror personas returning a consensus verdict (GO / PIVOT / NO-GO). - Product Requirement Document (
PRD.md): Synthesizes the intake analysis, competitive research citations, architecture specs, and jury rubric into an actionable requirements document. - Sprint & Backlog Planning (
nexcoder-planning): Decomposes the PRD into Epics, User Stories, and Tasks with acceptance criteria, computes team sprint capacity (hours, velocity, limits), and commits the initial sprint backlog into a local Git repository. - Code Intelligence & GraphRAG (
nexcoder-code-intel): Parses thesample_project/codebase, extracts AST symbols into SQLite FTS5/vector store, and executes a code search answering architectural questions about existing implementations. - Multi-Agent Delivery Pipeline (
nexcoder-agents): Runs thebugfix-deliveryworkflow from the agent catalog with a deterministic fake model, identifying a subtle bug in the sample project and preparing a validated patch. - Security Gate (
nexcoder-security): Scans the codebase with offline SAST analyzers (Semgrep and Bandit rule engines) and evaluates release policies against severity thresholds.
Ensure the repository virtual environment is activated and monorepo packages are installed in editable mode:
# Run the end-to-end quickstart
python examples/quickstart/run_quickstart.pyTo write artifacts to a custom directory instead of .quickstart_artifacts:
python examples/quickstart/run_quickstart.py --output-dir /path/to/artifactsThe script outputs each stage with clear execution metrics:
======================================================================
nexcoder Offline Quickstart: End-to-End Delivery Pipeline
======================================================================
[1/6] Ideation & Architectural Jury
----------------------------------------------------------------------
Idea Title: Add due dates and deadline tracking to task management library
Jury Decision: GO (Consensus: True)
Votes: 5 GO / 1 PIVOT / 0 NO-GO (Total jurors: 6)
[2/6] PRD Generation
----------------------------------------------------------------------
PRD generated successfully from vetted architecture and jury rubric.
Total lines: 163
[3/6] Planning & Sprint Decomposition (Git Repository)
----------------------------------------------------------------------
Scheduled Sprint: Sprint-1
Planned Hours: 7.0h
Scheduled Tasks: 2
Git Repository: .../planning_repo
[4/6] Code Intelligence Indexing & AST Code Search
----------------------------------------------------------------------
Source Files: 5 files indexed from sample_project
RAG Question: How is overdue status evaluated in sample_project?
Retrieved Chunks: 2
[5/6] Multi-Agent Delivery Pipeline
----------------------------------------------------------------------
Pipeline: bugfix-delivery
Execution Status: completed (dry_run mode)
Execution Steps: 5
[6/6] Security Release Gate Evaluation
----------------------------------------------------------------------
Target Scanned: sample_project
Findings Count: 8
Gate Verdict: PASSED
Summary: Release APPROVED by security gate 'default-production-gate'.
At completion, all generated artifacts are available in the target artifacts directory:
jury_verdict.json: Full jury votes, score breakdown, and dissenting notes.prd.md: Complete Markdown PRD.planning_repo/: Git repository containingBACKLOG.mdandsprint_1.json.code_intel.db: SQLite index with parsed code symbols and full-text search.rag_summary.txt: Retrieved code context and analysis.pipeline_run.json: Execution trace and step history.security_gate_verdict.json: Detailed SAST findings and gate decision.
By default, the script uses MockSearchProvider and FakeChatModel to run self-contained in seconds.
To connect real providers (Anthropic, OpenAI, Gemini, or local models via Ollama/vLLM):
-
Set Environment Variables:
# For Anthropic Claude export ANTHROPIC_API_KEY="sk-ant-..." # For OpenAI export OPENAI_API_KEY="sk-..." # For Google Gemini export GEMINI_API_KEY="..." # For local Ollama export OLLAMA_BASE_URL="http://localhost:11434"
-
Use
get_chat_model: ReplaceFakeChatModel(...)withget_chat_model:from nexcoder_core.llm.registry import get_chat_model # Tiers: 'small' (fast triage), 'medium' (standard coding), 'large' (deep reasoning) model = get_chat_model("medium")
-
Enable Real Web Search in Ideation: In
IdeationPipeline, passallow_network=Trueto use DuckDuckGo or configured search backends:from nexcoder_ideation.pipeline import IdeationPipeline pipeline = IdeationPipeline(allow_network=True, model=model)