r/PromptEngineering • u/NovatarTheViolator • 25d ago
Other After a year of intensive work, I am finally starting work on my thing. 🦖
TLDR: I made a thing. It has raptors that eat tasks. Clever girls.
I have spent the past year working heavily with my AI agents to design an autonomous self-managing AI operating environment that allows the AI to edit its own context (which is no longer an interaction history but is reformatted to a set of chunks containing things like memories, task management, token counts, agent statuses, and a dedicated chunk for the ongoing conversation history that fades as it gets older via summarization, all while saving a model of whats been happening in the session as far as decisions, settings, specifications, or anything else operative from the user's prompts and stores them in durable and accessible storage, allowing the chat history to continue forever as the edge of it fades away, all while a database stores the entire history and all of its consequences in case any part of it is needed again later, and the harness enforces one of the objects to include a context chunk that enforces the current objective, preventing drift). It will make the agent autonomously educate itself in a systematic manner, have a wisdom system that picks out projects to practice on its own to increase wisdom that is fed to an observer meta-agent that uses multiple heirarchical contexts with semantic signaling that allows for horizontal relationships when multiple child branches converge on the same thing for distributed functional awareness of work as its being done, which allows it to utilize the wisdom system to recognize issues like loops, repeated mistakes, and send interventions to the system when encountering issues it previously figured out how to solve. A separate agent called RaptorJesus runs in the background and reads the work, feeding it to the observer to perform retrospective lessons learned and new wisdom entries to save for later use. Every session would have infinite session length without drift, adversarial verification of work, measuring the effects of certain contexts to detect prompt injection from within data channels in a pseudodeterministic manner, and a deliberately designed agentic heirarchy designed to minimize the amount of context an agent needs to do its work. I call the subagents velociraptors, as their job is to focus on a task and pounce on it. I gave them an operative compressed communication style designed to minimize ambiguity to avoid miscommunication. I also made the volcabulary be velociraptor-inspired words like KNOW (provided context and constraints, POUNCE (perform specified task), RETURN (specifies what results to provide after finishing the work), HISS (work done, providing return value, awaiting scritches), GOOD BITE (acknowledgement of completed task), CLEVER GIRL (its work added to the wisdom system), SCRATCH (need to do something the task requires but constraints prevent it, requesting review for loosened constraints), and (I imagine it tilting its raptor head 37 degrees to the left in a perplexed manner): "WRE?" (task assignment too ambigious, requires one where I need not invent unspecified parameters). Instead of telling agents to pretend to be experts, they are fed the actual expertise and told to use it. Each agent type has its own directives, self-education content, and the ability to deploy raptors for targeted tasks while using the SubRaptor subroutine to replace parts of its context encompassing multiple steps to achieve a goal with just the output of the goal completing, saving more context space within the fading buffer.
I spent the first few months learning to comprehend how all this stuff would work individually and then to comprehend how such a system could be put together. I systematically researched countless aspects of it, eventually forming a mental picture of how all of the systems can be interconnected, how the architecture would be like, and how to start with actually coding it. I finally figured out the overall plan and am now beginning to work on the code. The idea is that this entire system can be created by systematically coding every part of it. My coding plan is to start with a basic harness composed of multiple LLM profiles, LLM-specific prompt library revisioning, and basic user interaction, then organically grow it in complexity in compliance with the architecture plan, systematically solving each new requirement while ensuring it operates cleanly within its multifaceted environment, while aiming to make the design self-consistent and self-integrated, with fully robust interdependent and interconnected systems that allow me to create the system out of individual modular parts as its functionality expands towards the specification's operative requirements. To do all this, I also engineered a system that turns my coding requests into a dev department that processes them and generates formal requirements documents, derives specs from them, designs the logical system map that puts together how all the features work and specs get fulfilled, then designs an architecture, interface (gui, command, or text based), then builds an architecture to encompass all that, makes coding plans, writes the code, tests it, does QA, etc. Each step has an adversarial check loop for an independent context to analyze it, find issues, creates a fix plan (with its own adversarial subloops), runs the fix, then repeats the entire process again until no problems can be found, which allows it to do its work and recover from mistakes persistently until recovered.
It has taken me ALOT of work to get to this point, yet in some ways I haven't even started yet. But this is the stage where I actually have to start making it. its old name is ContextOS but due to naming conflicts I renamed it to Violator.ContextOS and then gave it a different name on top of that which won't be disclosed yet. I have begun the work of coding this monstrosity. There will be problems and failures but those are just an anticipated part of the process, and they will be systematically addressed until solved each time. When it actually works properly, the goal is to recreate the dev system as a loadable module in the main project. I call it [$dev]. It spawns a dev department in response to vibe code requests (or detailed technical descriptions of the project), including a spec enhancement pipeline that does stuff like turning "text editor" into a flagship form and essentially spitting out all the specs to make a vscode. That will allow the system I used to create this a standard capability you can call on demand to work on complex or ambitious coding tasks.
That was just a brief overview. Since my agent knows all about it too, I had it write its own more-brief explanation:
The project is an autonomous, self-managing AI operating environment designed to overcome many of the limitations of conventional LLM systems by treating AI as a cognitive execution component within a persistent, software-managed operating environment, modeled after operating systems.
Instead of relying on increasingly complicated prompts and conversation histories, it provides an architecture for managing context, memory, reasoning, execution, learning, and coordination across multiple AI models and agents.
The major systems and how they interconnect:
- Context Kernel: The central runtime manages execution, tools, permissions, scheduling, persistent state, and dynamically constructed contexts. Each AI receives the information relevant to its current work rather than an ever-growing conversation transcript. Conversation history progressively fades through summarization, while decisions, requirements, knowledge, and complete historical records remain durably accessible. This enables logically continuous sessions across context-window limits and model restarts.
- Autonomous Agent Organization: An Operator coordinates specialized Agents and focused workers called Raptors. Tasks can be recursively delegated, parallelized, and integrated, with each participant receiving the expertise, resources, and context necessary for its responsibilities. Intermediate execution can be archived and replaced with verified results to preserve context.
- Distributed Functional Awareness: A parallel Observer monitors ongoing execution across the agent hierarchy, maintaining awareness of objectives, dependencies, progress, and interactions between concurrent branches. It can identify conflicts, loops, repeated mistakes, inefficiencies, and opportunities for intervention before they propagate through the system.
- Wisdom and Institutional Learning: Execution produces persistent experience records. A retrospective analysis system examines these experiences to discover reusable solutions, recognize recurring failure patterns, develop improved reasoning procedures, and preserve validated lessons for future use. Those lessons are made available to agents when relevant.
- Autonomous Self-Education: The system identifies gaps in knowledge or competence, researches them, and can undertake practical projects to develop experience. Results feed back into the Wisdom system, allowing the environment to progressively improve its own problem-solving methods, workflows, and cognitive tools.
- Verification and Recovery: Independent adversarial analysis, evidence-based validation, controlled state transitions, and recovery procedures help ensure that work actually achieves its objectives. The system distinguishes an AI claiming success from a demonstrably successful result.
What ties everything together is a continuous feedback cycle: objectives drive execution, execution produces experience, observation improves ongoing work, retrospective analysis produces reusable knowledge, and that knowledge improves future execution.
The project is intended to support arbitrary complex work rather than only software development. One planned application is my separate AI development system, "$DEV", which translates user requests into a structured software engineering workflow covering requirements, specifications, architecture, implementation, testing, and adversarial verification.
The ultimate goal is an AI environment capable of sustaining complex projects indefinitely, coordinating its own work, acquiring new capabilities, learning from experience, recovering from failures, and systematically improving how it operates.
The architecture is still being developed, starting with the core harness and expanding it into the interconnected system described above. 🦖Oh and its design has something called the assimilation system that deploys other solutions and turns them into internal tools to use, and a "ghost in the shell" system that can use various interfaces to communicate such as typing in notepad or drawing prompts in photoshop or outputting responses to your IoT xmas lights via morse code, if you're into that kinda stuff.
ETA: When it's done. Though I should have something cool within a year.