DEV Community

Aegis-Specter
Aegis-Specter

Posted on

Neural Terminal - #1

Update-1

Today I worked on the internal flow architecture of the project.

The terminal is not designed as an AI assistant. Instead, it works like a behaviour layer between the user and the actual system shell.

Current flow:

User's Command

(python3 code.py)

Command gets splitted

([python3] , [code.py])

Command Classification / Tags

(such as python3 = executing a script) At this point the terminal knows what is being executed.

Memory & State Update

The reaction variable is updated based one the commands executed. If the user executes the code.py multiple times the terminal knows that this action is repetitive and the debugging=+1 is updated

Behaviour Engine

Here it analyses the past commands and accesses the memory

Reaction Decision

Here the final decision is made to what to react from our case the user executed the files multiple times so the terminal replies with seems to be debugging a lot

Real Command Execution

Here the actual command is executed using subprocess

Example:

Command:
sudo rm -rf temp

Detected Tags:

  • dangerous
  • admin
  • delete

The behaviour system updates internal state values like stress/trust based on these tags and then decides whether Neural should react or stay silent.

Important thing I realised the “alive” feeling doesn’t only needs to come from AI it can also comes from consistency, memory, restrained reactions, and long-term behavioural patterns.

Current stack:

  • Python
  • subprocess
  • Rich
  • JSON memory system

Next goal:
Building the actual shell execution layer and connecting it with the parser system.

Top comments (0)