All posts
Product4 min read

Teach it. It remembers. Give it hands.

Cognira has a new look, so it has a new film. It runs fifty seconds and it is cut to the beat. Every shot of the app is a screen recording of cognira.dev as it is today. Nothing in it is mocked up: what the chat says, what it remembers and what the robot prints all happened during the takes.

Sound on. Every shot of the app is a screen recording of cognira.dev.

§ 01

Teach it

It opens on a line from the brand: every other AI forgets you. Then the chat. We typed Hey Cognira, I want you to call me Max!, and under the reply a Learned chip says what it saved: Prefers to be called ‘Max’.

That chip is the whole lesson. Undo sits beside it, and the same memory is listed in Saved lessons, where you can mute it or forget it. There is no settings page to fill in and no special mode: you tell it in the chat. How to teach Cognira something that sticks has the phrasings it recognises.

§ 02

It remembers

Then New chat, so nothing from the first conversation is on screen, and Huh, what's my name? The reply is yo max. Under it is Used 1 memory. Open it and there is the fact it used, word for word, with its own Forget button.

Every reply that draws on something you taught it says so. You can always see why it answered the way it did, and correct it if it got you wrong. Teach it once. See what stuck. explains what happens to a lesson after that.

§ 03

Give it hands

The second half is the Robotics SDK. Install it with pip install cognira-robotics, then write the seventeen lines below: a robot called Rover with a Wave button and a Speed slider. Each decorator becomes a control on cognira.dev.

rover.py

from cognira_robotics import Robot

robot = Robot("Rover")

@robot.button("Wave", key="w")
def wave():
    print("hello!")

@robot.slider("Speed", min=0, max=100, unit="%")
def speed(value):
    print("speed is now", value)

@robot.on_stop
def stop():
    print("motors off")

robot.run()

The first time it runs, the script prints a link code and opens cognira.dev so you can approve it. One click on Approve and Rover is online with its two controls. In the film, pressing Run on the Wave control prints hello! in the terminal, and dragging the slider prints speed is now 74.

Put a robot on the web with five decorators wires the same SDK to a real servo, and the Robotics page has the quickstart.

§ 04

How it was made

  • The app is the live site. We recorded cognira.dev in a browser, signed in to a demo account, at 3200 by 1800 pixels. That is well above the film's 1080p, so the camera can push in on a button without it going soft.
  • Every cut is on the beat. The edit is a list of shots measured in beats of the track, which runs at about 129 beats a minute. Where a shot speeds up or slows down, the motion blur is real: each frame blends the recorded frames it covers, the way a film camera's shutter would.
  • The notes follow the screen. The italic notes, like remembered. and your code hears it., are pinned to what they point at and move with the camera.
  • The terminal isn't retyped. The robot script's output was logged with the time of every line. Each line appears in the film at the moment it was printed, through the same speed changes as the picture.
  • The sky is drawn frame by frame. The clouds are a shader, so they drift on their own and stay sharp at any size. At the end they part in the shape of the Sunny Spark.
  • The film is a web page. It is HTML, rendered to video one frame at a time with HyperFrames. Changing a shot means editing the page and rendering again, not filming again.
  • The music was generated. We made the track with MusicGen on a desktop PC, from the brief behind our first film, made brighter for the new look. The sound effects sit on the beats.

§ 05

Try it yourself