Skip to content
ThiagoVenturimPublic

About

Open-source platform that automates software development with AI agents: idea research and jury, PRD, sprints in git, RAG and GraphRAG over code in any language, capture and test generation, security gate. Open or paid models.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

nexcoder

An open-source, modular platform for automated software development from idea to deployment.

(Formerly known as faccoder during early development.)

nexcoder orchestrates the complete software delivery lifecycle: intake and market research, architectural jury review, Product Requirement Document (PRD) generation, sprint capacity planning, task creation in issue trackers, AST-based code intelligence, multi-hop GraphRAG, agentic pipeline execution, automated test generation, and continuous improvement.


Package Status

Package / Module Status Tracking Issue
nexcoder-core Available Merged in develop
nexcoder-code-intel Available PR #33
nexcoder-agents Available Issue #3 / #31 / #85 / #105
nexcoder-planning Available Issue #4
nexcoder-ideation Available Issue #5, PR #29
nexcoder-security Available Issue #7, PR #30
nexcoder-capture Available Issue #6, PR #38
nexcoder-control Available Issue #9 / #101
nexcoder-interfaces Available Issue #10
nexcoder-serving Available Issue #11
nexcoder-continuous-improvement Available Issue #8
nexcoder-mlops Available Issue #97
nexcoder-testing Available Issue #70

Architecture Overview

nexcoder is organized as a modular Python monorepo with installable packages in packages/:

nexcoder/
├── packages/
│   ├── core/           # LLM registry, Langfuse tracing, hybrid retrieval, sqlite-vec
│   ├── code-intel/     # AST parsers (tree-sitter, Delphi), CodeGraph, GraphRAG, HyDE
│   ├── agents/         # Persona catalog (40 agent personas, 9 skills and 6 ready pipelines), LangGraph pipeline engine
│   └── planning/       # PRD decomposition, capacity planning, idempotent tracker sync
├── docs/               # In-depth architectural guides and reference documentation
└── scripts/            # Linting and quality assurance utilities

Core Packages (Merged in Develop)

  1. nexcoder-core: The shared foundation across all packages.

    • Tiered model registry (small, medium, large) abstracting paid APIs (Anthropic, OpenAI, Google Gemini, Azure, Bedrock) and open-source models (Ollama, vLLM, LM Studio, llama.cpp).
    • Resilient Langfuse tracing with an automatic circuit breaker that degrades safely to a no-op if the telemetry backend is unreachable.
    • Usage and cost metering per agent, pipeline, and run, with configurable budget caps.
    • Structured outputs (call_structured) with corrective retry on schema validation failures.
    • Local hybrid search store combining SQLite FTS5 (BM25 lexical search) with sqlite-vec (dense vector embeddings), reciprocal rank fusion (RRF), and cross-encoder reranking.
    • Path sandboxing to prevent directory traversal across agent tools.
  2. nexcoder-code-intel: Code intelligence and semantic comprehension for any codebase.

    • Multi-language AST parsing via Tree-sitter (Python, Go, JavaScript, TypeScript, Java, C, C++, Rust) and dedicated Object Pascal/Delphi parsers.
    • Syntactic symbol-level chunking preserving lexical enclosing context.
    • CodeGraph modeling relationships: calls, inheritance, implementations, and UI form bindings.
    • GraphRAG community detection via Louvain modularity clustering for hierarchical architectural summaries.
    • HyDE (Hypothetical Document Embeddings) query transformation and bottom-up recursive documentation generation.
  3. nexcoder-agents: Agent persona catalog and execution engine.

    • Frontmatter-driven agent specification catalog (agents/<sector>/<slug>.md) covering 10 organizational sectors (direction, requirements, product, engineering, UI/UX, QA, security, data-AI, support, marketing).
    • Reusable LangGraph pipeline building blocks: ValidatorBlock, ConditionBlock, PromptBlock, and HumanApprovalBlock.
    • Safe execution guarantees: dry-run simulations, time-bounded approval tokens, tool execution caps, and committee quorum votes.
    • ML/AI feature engineering: approach selection (rules, classical ML, LLM/RAG), 6 parameterized recipes (classification, extraction, RAG, recommendation, summarization, chatbot), MLOps/serving reuse, and control plane guardrails (Issue #105).
    • Export adapters for Claude Code subagents and tool manifests.
  4. nexcoder-planning: Agentic sprint planning and task synchronization.

    • Hierarchical PRD decomposition into Epics, User Stories, and Tasks with Given/When/Then acceptance criteria.
    • Sprint capacity calculator factoring in team work schedules, reserve buffers, and historical velocity.
    • Automated Kanban synchronization loop detecting workload slippage and recommending task deferrals.
    • Idempotent platform adapters for GitHub (Issues, Milestones, Projects v2 GraphQL), GitLab, and Azure DevOps using invisible tracking markers (<!-- nexcoder-id: <uuid> -->).
    • Automated Git helpers for branch creation, conventional commit formatting, and pull request assembly.

Quick Start

Installation

Install the core workspace packages in editable mode:

# Clone the repository
git clone https://github.com/ThiagoVenturim/nexcoder.git
cd nexcoder

# Create and activate a virtual environment
python -m venv .venv
# Linux / macOS:
source .venv/bin/activate
# Windows:
.venv\Scripts\activate

# Install the packages
pip install -e packages/core
pip install -e packages/code-intel
pip install -e packages/agents
pip install -e packages/planning

Try it in 2 minutes (End-to-End Offline Quickstart)

Run the full six-stage delivery lifecycle (ideation jury, PRD, sprint planning with local git repository, AST code search, agent pipeline, security gate) offline with zero API keys:

python examples/quickstart/run_quickstart.py

See examples/quickstart/README.md for full details, expected output, and artifact descriptions.

Productivity and Security Dashboards via NexDash (Offline Demo)

Generate developer productivity (GitHub, Azure DevOps, Redmine) and security posture dashboards through the nexdash MCP and REST reporting engine offline:

python examples/reports_nexdash/run_reports_demo.py

See docs/reports-nexdash.md and examples/reports_nexdash/README.md for the MCP/REST protocol and cube specifications.

Basic Model Invocation

from nexcoder_core import get_chat_model, load_config

# Load configuration from environment or config file
config = load_config()

# Retrieve a configured model for the 'medium' tier
model = get_chat_model("medium", config=config)

response = model.invoke("Summarize the key requirements for a production RAG system.")
print(response.content)

Code Indexing and Hybrid Search

from nexcoder_code_intel import CodeSearchIndex
from nexcoder_core.retrieval.embeddings import HashEmbedder

# Initialize index with dense embeddings and SQLite FTS5 lexical index
embedder = HashEmbedder(dimensions=256)
index = CodeSearchIndex("code_index.db", embedder=embedder)

# Index code snippets or files
index.index_code("auth_service.py", "def authenticate_user(token): ...", language="python")

# Query with HyDE and reciprocal rank fusion
hits = index.search("validate authentication token", top_k=3, hyde=True)
for hit in hits:
    print(f"[{hit['score']:.3f}] {hit['id']}: {hit['text']}")

Presets and Serving Modes

nexcoder configures model providers via runtime presets in NexcoderConfig:

  • offline: Uses FakeChatModel and deterministic hash embeddings for hermetic testing without network access.
  • all-open-source: Routes all tiers to local Ollama or vLLM instances without external API calls.
  • local-vllm: Uses high-throughput local vLLM OpenAI-compatible endpoints with tensor parallelism.
  • all-paid: Uses Anthropic Claude, OpenAI, and Google Gemini across appropriate capability tiers.
  • hybrid: Routes high-volume small-tier tasks (chunking, classification, extraction) to local models and complex reasoning (jury, architecture, synthesis) to frontier paid models.

Documentation Directory

Documentation guides are available in the docs/ directory:

  • Foundations & Infrastructure:

  • Ideation, Planning & Agents:

    • Ideation and Jury: Research squad analysis, competitive matrices, and multi-persona jury quorum voting.
    • Agentic Planning: PRD transformation, capacity planning, Git automation, and idempotent tracker synchronization.
    • VCS & Repository Management: Unified provider layer for Azure DevOps, GitLab, Git, SVN, and TortoiseGit with token isolation and audit logs.
    • Product Cost Calculator: Estimating build, publication, recurring maintenance (month/year), and IP/brand licensing.
    • Marketing and Promotion Engine: Multi-channel ad copy with A/B variations, social posts (LinkedIn, Instagram, TikTok), open-source promo video assembly (Piper TTS, FFmpeg), Nextor calendar tasks, and safe publishing.
    • Assisted Prospecting (lead-gen): Public sources, passive site signals, proposal with mockup and cost, and human-approved outreach drafts with LGPD/CAN-SPAM guardrails.
    • Agents Catalog: Agent taxonomy, frontmatter schema, sector coverage, and specialized technology packs.
    • Pipelines: LangGraph workflow orchestration, reusable blocks, human approval gates, and dry-run guarantees.
  • Code Intelligence, Retrieval & Case Studies:

    • RAG Fundamentals: Lexical search, vector representations, chunking strategies, and hybrid fusion.
    • Advanced RAG: Query expansion, HyDE, MMR diversification, context compression, and reciprocal rank fusion (RRF).
    • GraphRAG: Code relationship graphs, Louvain community detection, and multi-hop architectural synthesis.
    • Reranking: Cross-encoders, bi-encoders, inference latency, and two-stage retrieval pipelines.
    • Choosing Embedding Models: Benchmark comparison (BGE-M3, Nomic, Voyage, OpenAI) and dimensionality considerations.
    • Language Support: Tree-sitter grammars, Delphi / Object Pascal AST parsing, and cross-language symbol extraction.
    • Case Study: How a 20-year legacy monolithic enterprise codebase was fully mapped and documented in three weeks.

Repository Standards

Every contribution to nexcoder adheres to strict automated repository standards:

  1. Zero Emojis: Emojis are strictly disallowed across all code, docstrings, commit messages, Markdown documents, and UI strings. Enforced via scripts/check_no_emoji.py and pre-commit hooks.
  2. Zero AI Attribution Trailers: Commit messages must not include AI co-author trailers (Co-Authored-By:). Enforced via .githooks/commit-msg.
  3. Clean Conventional Commits: Commit messages follow the Conventional Commits specification in English (feat:, fix:, docs:, test:, chore:).
  4. Offline Testing: Automated test suites pass without network dependencies or paid credentials using preset="offline" and local mock models.
  5. Linting and Formatting: Code formatting and typing pass Ruff checks with strict rules.

Origin

nexcoder originated from field-tested enterprise artificial intelligence systems developed by Thiago Venturim across large-scale production environments:

  • Enterprise Autonomous Agents Platform: Proven in production across autonomous agent teams, specialized skills catalog, and legacy multi-million line codebases.
  • Engineering Delivery Framework: Covering 70+ specialized engineering personas, capacity models, and automated development synchronization.

The techniques, retrieval mechanisms, and governance patterns forged in these systems have been synthesized into nexcoder as a vendor-neutral, generic, open-source software delivery framework.


License and Usage Policy

This project is licensed under the terms of the MIT License and governed by our Ethical Usage Policy. Use nexcoder to protect applications, contribute to open-source software, and test or scan only targets you own or are explicitly authorized to assess.

About

Open-source platform that automates software development with AI agents: idea research and jury, PRD, sprints in git, RAG and GraphRAG over code in any language, capture and test generation, security gate. Open or paid models.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages