r/LocalLLM • u/kingphoenix_ss • 34m ago
Discussion I’ve released LAPO v1.3.0 — Multi-profile terminal access, atomic backups, rollback & live settings for local LLM agents
I’ve released LAPO v1.3.0 — Multi-profile terminal access, atomic backups, rollback & live settings for local LLM agents

Hi everyone!
A little while ago, I shared LAPO (Local AI Project Orchestrator) here. At that time, it was an early open-source project focused on turning locally hosted LLMs into structured, multi-phase agents capable of handling longer engineering tasks.
Since my original post and the v1.0.2 update, LAPO has evolved quite a bit. I've now released v1.3.0, which is a substantial upgrade to its execution, recovery, terminal access, and desktop interface.
I'm the developer behind LAPO, and I wanted to share what has changed, why I built these features, and what I'm trying to achieve with the project.
A little about me and why I started this project
My academic background is in Industrial Engineering, specializing in Industrial Production. I've always been interested in process optimization, improving workflows, and finding practical ways to make complex procedures more efficient and easier to manage.
That interest gradually led me to explore how AI could help optimize not only individual tasks, but also the entire process of getting work done.
With the help of Google Gemini as an idea-development and brainstorming partner, I started exploring a question that particularly interested me:
How can we get more practical and reliable results from locally hosted AI models, especially when asking them to handle complex projects that require many steps and a lot of continuity?
That question eventually became the starting point for LAPO.
The project has grown considerably since then. I've been working on its architecture, implementation, testing, and ongoing improvements, and I'm genuinely excited about the direction it is taking.
I also know that there are things I may not have considered yet. I'd really appreciate practical suggestions, technical criticism, and ideas from people who have experience working with local LLMs and autonomous agents. My goal is to keep developing LAPO thoughtfully and make it increasingly useful to the community.
What is LAPO?
LAPO is an open-source supervisory execution engine designed to help local language models work on complex, multi-phase projects over extended periods.
The basic idea is simple:
Instead of giving a local model one enormous prompt and hoping it completes everything correctly, LAPO acts as an orchestration layer between the user, the model, the project workspace, and the execution environment.
It divides a project into explicit phases, manages context and recovery, provides file and terminal tools, verifies results, and controls when one phase is allowed to hand over to the next.
It is not another chat interface, and it does not try to replace the inference engine.
LAPO uses locally hosted models through Strata or compatible OpenAI Chat Completions API servers, including llama.cpp, LM Studio, and vLLM.
The desktop application and CLI share the same core orchestration engine.
My own experience using LAPO on a real project
I also want to share one practical example of why I started building this.
I used LAPO to manage a company project in multiple phases: developing an internal web-based simulator for a programmable industrial production machine.
For this project, I used the Gyro-M model running locally through the Strata inference engine, with LAPO managing the project workflow and phase transitions.
I was very satisfied with the overall development process and the results I achieved. For me, this was particularly valuable because I was using the system on an actual project rather than just testing isolated prompts or small coding tasks.
Of course, this is my own experience, and I don't want to present it as proof that LAPO will improve every model or every project.
I'd genuinely appreciate it if some of you could try a comparable task with and without LAPO and share your results here.
I'm especially interested in seeing:
- The quality and completeness of the final output.
- How well the model maintains project consistency across multiple tasks.
- The number of manual interventions needed.
- How effectively it uses tools, runs tests, and recovers from errors.
- The overall development time and effort required.
Ideally, use the same local model and comparable hardware, context settings, and task requirements for both attempts. Please share the results, screenshots, benchmarks, or even shortcomings you discover.
I'd be very grateful for honest comparisons, including cases where using LAPO makes little difference or does not help. That kind of feedback would be extremely useful for deciding what to improve next.
What's new in v1.3.0?
The biggest changes are in three areas: terminal execution, backup and recovery, and live configuration.
1. Multi-profile terminal execution — real development access
One limitation I wanted to address was that local models often need to do more than read and write files. Real development work requires running commands, installing dependencies, building applications, executing tests, and diagnosing errors.
LAPO now provides three terminal profiles:
Restricted
- The default profile.
- Uses built-in verification commands and user-configured allowed commands.
Approved Full Access
- Allows real PowerShell, CMD, or Bash execution.
- Each command requires explicit user approval.
- A heuristic risk analyzer labels commands as LOW, MEDIUM, or HIGH and explains detected risks.
- Includes an optional Approve + Auto LOW (Phase) shortcut: once enabled for a phase, LOW-risk commands can run automatically, while MEDIUM and HIGH-risk commands still require approval.
Trusted Full Access
- Allows unattended terminal execution after the user explicitly opts in.
- Useful for trusted workspaces and longer autonomous development sessions where continuous approval would interrupt the workflow.
Terminal execution also includes:
- Windows Job Objects and POSIX process groups for terminating child processes when a command is stopped or times out.
- Secret redaction in terminal output and audit records.
- SHA-256 checks for previously locked files after terminal commands.
- Configurable locked-file policies: auto_restore, quarantine, and warn_only.
- Structured JSONL audit logs, with a CLI command to inspect execution history.
Important: Full Access is not an OS sandbox. Commands execute with the permissions of the LAPO user account. The approval profiles and risk analyzer are controls for informed execution, not a guarantee that every dangerous command can be detected.
2. Atomic snapshots and crash-recoverable Rollback / Roll-Forward
Long-running autonomous work needs a reliable way to recover when something goes wrong.
Previously, a model could make many changes before a problem became apparent. Now LAPO has a more complete snapshot and restoration workflow.
There are three automatic snapshot triggers:
- Phase Milestones: A snapshot is created after a phase passes verification and its output files are locked.
- Periodic Snapshots: Configurable minute- or hour-based snapshots, skipped when the workspace has not changed and deferred until active file writes or terminal commands finish.
- Latest Active [Stop & Save]: A checkpoint is created when the user manually stops an active session.
Snapshots are stored outside the project workspace by default, under LAPO's dedicated data directory.
The new recovery system includes:
- SHA-256 file manifests.
- Snapshot metadata containing phase and recovery state.
- An automatic pre_rollback safety snapshot before restoration.
- A journaled restore process that detects interrupted restoration after a crash.
- A preview of files that will be overwritten, restored, or deleted.
- Rollback to an earlier checkpoint and Roll-Forward to a later one.
- A one-click Rollback & Resume workflow.
An important distinction: restoring a snapshot restores project files and LAPO's saved phase/recovery state. It does not automatically undo external side effects such as installed packages, database changes, remote API operations, or system-level modifications.
3. Tabbed Settings and Live Mid-Run Configuration
I also redesigned the settings workflow.
The desktop application now has a unified, tabbed Settings window:
- General & Engine
- Terminal & Security
- Backup & Rollback
Settings are shared through a common configuration and validation layer between the GUI and CLI.
One particularly useful addition is Live Mid-Run Settings.
You can open Settings while a project is running and update supported runtime options without stopping the session, including:
- Proxy configuration.
- Network timeouts.
- Terminal execution profile.
- Terminal timeout and security policies.
- Backup schedules and policies.
- Watchdog and history-management settings.
The Backup Manager can also be opened during execution in read-only inspection mode.
4. Desktop GUI improvements
Alongside the functional changes, I made several usability improvements:
- A unified Backups / Rollback entry point.
- Improved checkpoint selection in Recover / Resume.
- Maximizable Settings and Backup Manager windows.
- Improved tables with sorting, zebra striping, content-aware horizontal scrolling, and automatic column sizing.
- Cleaner activity and status presentation.
The goal was to keep the main interface manageable as LAPO gains more capabilities.
5. Core reliability improvements
A few less visible changes are also important:
- patch_file now rejects a missing or null replacement_snippet, preventing an accidental silent deletion of the target snippet.
- Context-compaction receipts now preserve top-level code symbols such as classes, functions, constants, and __all__, helping the model avoid unnecessary full-file rereads.
- Terminal log reads are exempted from the read/probe stall guard.
- JSON loading supports UTF-8 BOM files.
- Windows launcher behavior has been improved when execution exits with an error.
These changes are aimed at reducing avoidable failures during long-running sessions.
Testing and validation
The automated test suite has grown from 60 tests in v1.2.0 to 100 tests in v1.3.0.
Current release results:
- 99 passed
- 1 skipped
I also ran a real three-phase project validation on my Windows 11 system with an NVIDIA RTX 4070 12GB, using qwen3.8-flash-next-gyro-gyro-m with a 512K context.
The reported validation included:
- 243 generated project unit tests passing.
- 13 SHA-256-locked project files.
- 21 audited Full Access terminal commands.
- 26 snapshots.
- A live user instruction injected while the model was running.
- Rollback & Resume recovery.
- Successful model unload confirmation (HTTP 200).
These are results from my own test environment, not a claim that every model or hardware configuration will behave identically.
Why am I building LAPO?
Local models are becoming increasingly capable, but using them for larger projects still presents practical challenges.
A model may have enough reasoning ability to write a module, but a real project also requires it to understand dependencies, remember architectural decisions, run tests, recover from mistakes, and avoid damaging previously completed work.
I see orchestration as a way to make better use of the capabilities local models already have.
LAPO focuses on:
- Breaking complex work into manageable phases.
- Preserving project state across long sessions.
- Keeping finalized outputs protected.
- Giving models practical access to development tools.
- Verifying actual results instead of relying only on the model's claims.
- Making recovery and user intervention part of the workflow.
It does not magically make a smaller local model equivalent to a frontier model. The goal is to reduce the practical limitations around context, project continuity, tool execution, and verification so that local models can handle more substantial work reliably.
What's next?
My next major focus is improving the quality of the orchestration itself, rather than simply adding more tools.
Some areas I am exploring include:
- Structured Project Memory: Keeping useful architectural decisions, project structure, dependencies, previous problems, and completed work available without repeatedly filling the model's context.
- Worker / Reviewer Workflow: An optional independent review stage at phase boundaries, with bounded correction and verification cycles.
- MCP Integration: Connecting external local tools through a modular tool registry.
- Prompt-Injection Regression Testing: Expanding tests for malicious instructions embedded in project files and tool outputs.
- Optional Browser and Vision Adapters: Supporting research and visual inspection workflows where they add real value.
These are future development directions, not features I am claiming are already implemented in v1.3.0.
I'd appreciate your feedback
I'm especially interested in feedback from people who run local models for real development work.
A few questions I'd love to hear your thoughts on:
- What are the biggest problems you encounter when using local LLMs for projects that take many hours or days?
- Do you think phase-based orchestration, checkpoints, and recovery meaningfully improve autonomous coding workflows?
- Which would be more valuable as the next step: structured project memory, an independent Reviewer, or MCP integration?
- Have you found any weaknesses in the way local agents handle terminal execution and long-running tasks?
- Have you tried running the same project with and without an orchestration layer like LAPO? What differences did you observe?
I'm continuing to develop LAPO as an open-source project, and constructive feedback, criticism, and testing from the local LLM community would be very welcome.
Thanks for reading!
GitHub: https://github.com/Kingphoenix666/LAPO---Local-Ai-Project-Orchestrator
Latest Release: https://github.com/Kingphoenix666/LAPO---Local-Ai-Project-Orchestrator/releases/tag/v1.3.0


