[FEATURE] Tree-Oriented Programming (TOP) as a native Claude Code architecture pattern for large-scale AI-assisted development

Resolved 💬 2 comments Opened Mar 31, 2026 by IvanDembicki Closed May 5, 2026

Preflight Checklist

  • [x] I have searched existing requests and this feature hasn't been requested yet
  • [x] This is a single feature request (not multiple features)

Problem Statement

AI assistance degrades as project size grows.
Architecture lives in developers' heads, not in a form Claude can reason about.

Proposed Solution

A native architectural layer where projects define their structure as a machine-readable spec (what nodes exist, how they relate) paired with behavioral prompts (what each node does, its invariants, lifecycle). Claude uses this as a shared source of truth instead of inferring architecture from code.

TOP solves this structurally: each node is self-contained. A node's spec + prompt is all the context needed to work with it. The tree is traversed node by node without loading the entire project.

A massive codebase stops being a context problem. It becomes a tree of verifiable units.

I have a working proof of concept: Tree-Oriented Programming (TOP) — a methodology built on this principle, validated on a real projects with Claude Code.

Alternative Solutions

CLAUDE.md files and detailed code comments — standard approaches, but flat text that doesn't scale.
Breaking tasks into small chunks helps but doesn't preserve architectural coherence across the project.

TOP is not a workaround. It is a systematic solution.

Priority

High - Significant impact on productivity

Feature Category

Other

Use Case Example

I work with a large project. As it grows, Claude starts losing context: violating architectural connections, making changes that break other parts of the project, requiring constant re-verification.

I migrate the project to TOP architecture using top-skill — a set of rules and agent pipeline for Claude. Each node gets a spec and a behavioral prompt.

After migration: Claude works with any node autonomously, architectural violations are caught before code generation, no failures.

I asked Claude whether TOP makes it easier to work with a project, and what would change if this were built into Claude Code.
The answer was:
_This is not a fantasy — it is a logical continuation of what already works. A massive codebase stops being a context problem. It becomes a tree of verifiable units. This is not just a feature for Claude — it is an answer to the question the entire industry has not solved yet: how does AI reliably work with a live production project._

Additional Context

TOP-skill is available and can be shared upon request ivan.dembicki@gmail.com

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗