Frustrated by state programs it condemns as both wasteful and ineffective, New York City is pushing for a far-reaching overhaul of the juvenile detention system that would give localities the authority to operate all juvenile services.

Under this ambitious “realignment,” the city would offer a “continuum” of community-based and residential programs in or near the city ranging from alternatives to incarceration that incorporate counseling, education and other support services to detention in secure centers for high-risk youth.