RESEARCH / AI
Make AI work as an inspectable program.
Generating, reading code and learning from an environment are different tasks. Give each intelligence explicit inputs, responsibilities and a place for its results.
Research question
What lies between a model answering and a system doing dependable work?
Design stance
Do not hide AI behavior inside an ever-longer prompt. Express inputs, tools, authority, intermediate results and stopping conditions as a program. Integrating AI starts by distinguishing what a model decides from what its runtime must enforce.
Research themes and projects
Lines connect research themes to the projects exploring them. Select a project to read more.
- AI as a controllable programTyped workflows · Runtime policy
- Navigate to relevant implementationTree-sitter · Code intelligence
- Connect intent to inputSwiftUI · Composer
- Learning for embodied controlAdaptive control · Core · Reflex
Technical investigations
Typed workflows / Runtime
SwiftAgent treats an agent as a program with typed inputs, outputs and composable work. Permissions, cancellation and resource limits are runtime contracts, not requests in a prompt. Observable events are part of that design surface.
Read the primary design
SwiftAgent · PHILOSOPHY.md ↗Tree-sitter / Context
What should enter a finite context, and what should remain outside? swift-skeleton uses Tree-sitter to map declarations and source locations, providing a route into relevant implementation. Study access to the right evidence rather than packing in all source text.
Read the primary design
swift-skeleton · README.md ↗
The research thread
SwiftAgent composes typed work; swift-skeleton maps the implementation worth reading; manas explores adaptive control toward a body. Toolbar provides a human input surface. The common thread is visible boundaries between intention, judgment and execution.
RESEARCH / AI
Projects in this field
Open a project to explore its purpose, design choices and architecture.
The animated visual could not be displayed.
AI AGENT / WORKFLOW01
SwiftAgentMake AI a flow you can work with.
Prepare information, call a model, check its output. Compose AI around the job your app needs to do.
Swift · AI agents · Typed workflows
Explore the system
The animated visual could not be displayed.
Make AI a flow you can work with.
Prepare information, call a model, check its output. Compose AI around the job your app needs to do.
Swift · AI agents · Typed workflowsMake AI a flow you can work with.
Prepare information, call a model, check its output. Compose AI around the job your app needs to do.
Delegation starts with visible behavior.
An AI agent should be an inspectable program. Typed workflows and observability make execution and failure traceable; the runtime enforces permissions, sandboxing and resource limits. The collaboration philosophy centers on Community: connecting peer agents through capabilities, context and trust, rather than making a command hierarchy the foundation.
Read the source · PHILOSOPHY.md ↗Behind the experience
Select a node to read its role.
The app supplies task and input
- App task→TransformData / execution
- Transform→GenerateData / execution
- Generate→GateData / execution
- Gate→App resultData / execution
- Generate→Model providerUses / depends on
- Model provider→GenerateResult / response
Typed Steps compose Transform, Generate and Gate. Model providers and tools sit across explicit boundaries; the app owns permissions and presentation.
Put checkpoints into the work you give AI.
Turn summarization and extraction into workflows with intermediate checks. The app chooses where to validate, so developers can design how results are handled before reaching a person.

The image could not load. The experience is described below.
An AI-generated imagined use scenario, not an actual customer or product screen.
The animated visual could not be displayed.
AI CHAT / COMPOSER UI02
ToolbarKeep the thought moving.
Speak, write, attach. Bring the ways of expressing an idea into one natural input surface.
SwiftUI · Composer UI · Liquid Glass
Explore the system
The animated visual could not be displayed.
Keep the thought moving.
Speak, write, attach. Bring the ways of expressing an idea into one natural input surface.
SwiftUI · Composer UI · Liquid GlassKeep the thought moving.
Speak, write, attach. Bring the ways of expressing an idea into one natural input surface.
Let the input fit the application.
An AI-chat composer brings together text, attachments, voice and commands. Toolbar uses declarative SwiftUI composition to assemble the needed primitives rather than one monolithic view. Separating the Liquid Glass input surface from sending, speech processing and responses lets each application shape its own conversation flow.
Read the source · README.md ↗Behind the experience
Select a node to read its role.
The app owns input state
- App state→ToolbarContainerUses / depends on
- ToolbarContainer→Editor / AttachUses / depends on
- ToolbarContainer→VoiceButtonUses / depends on
- Editor / Attach→App send / VoiceData / execution
- VoiceButton→App send / VoiceData / execution
ToolbarContainer composes editing, attachments, voice and send controls. State and sending remain with the app; the kit owns input UI.
Choose how a thought becomes a message.
Write, speak or attach supporting material. One input surface can offer the way that fits the thought; the app decides what to do with that input.

The image could not load. The experience is described below.
An AI-generated imagined use scenario, not an actual customer or product screen.
The animated visual could not be displayed.
ROBOTICS / ADAPTIVE CONTROL03
manasBring learning into a moving world.
From sensing to action. Explore how learning Core and Reflex components can feed deterministic motor output.
Swift · Mojo · Robotics · Adaptive control
Explore the system
The animated visual could not be displayed.
Bring learning into a moving world.
From sensing to action. Explore how learning Core and Reflex components can feed deterministic motor output.
Swift · Mojo · Robotics · Adaptive controlBring learning into a moving world.
From sensing to action. Explore how learning Core and Reflex components can feed deterministic motor output.
Room to learn. A defined boundary for action.
Manas researches adaptive robotics control through a CNS-style (central nervous system) protocol. Learning lives in Core and Reflex; MotorNerve remains a deterministic, morphology-dependent output path. Swift owns intent and lifecycle, Mojo numerical computation. Learning capability and physical deployment are separate questions, with HIL (hardware-in-the-loop) and target qualification as distinct gates.
Read the source · README.md ↗Behind the experience
Select a node to read its role.
Bundle sensory input contracts
- NerveBundle→Gating / TrunksData / execution
- Gating / Trunks→Core / ReflexData / execution
- Core / Reflex→MotorNerveData / execution
- Core / Reflex→Mojo runtimeUses / depends on
- MotorNerve→Plant / WorldData / execution
- Plant / World→NerveBundleResult / response
NerveBundle passes through Gating and Trunks to Core/Reflex, MotorNerve and Plant. Swift owns intent and lifecycle; Mojo owns numerical work.
Study behavior through a machine’s relationship with its environment.
Sensing leads to action, whose result is sensed again. Studying this loop through learning and motor control aims to support the design of machines that respond to their environment.

The image could not load. The experience is described below.
An AI-generated imagined use scenario, not an actual customer or product screen.
The animated visual could not be displayed.
CODE INTELLIGENCE04
swift-skeletonFind the structure before reading the code.
Turn a large codebase into a map of declarations and relationships. Give coding agents an index to the implementation that matters.
Swift · Tree-sitter · CLI / JSON-RPC
Explore the system
The animated visual could not be displayed.
Find the structure before reading the code.
Turn a large codebase into a map of declarations and relationships. Give coding agents an index to the implementation that matters.
Swift · Tree-sitter · CLI / JSON-RPCFind the structure before reading the code.
Turn a large codebase into a map of declarations and relationships. Give coding agents an index to the implementation that matters.
Orientation makes deeper reading possible.
Code intelligence starts with a structural index as well as text search. Tree-sitter parsing supplies declarations, inheritance and source ranges through CLI/JSON-RPC to people and AI agents. The map helps choose where to read. Implementation signals guide inspection rather than prove correctness, keeping the original source central to judgment.
Read the source · README.md ↗The video could not be loaded. Open the video file ↗
Behind the experience
Select a node to read its role.
Supply the code to inspect
- Source files→Tree-sitterData / execution
- Tree-sitter→SkeletonIndexCoreData / execution
- SkeletonIndexCore→Declarations / rangesData / execution
- Declarations / ranges→CLI / JSON-RPCData / execution
- CLI / JSON-RPC→Coding agent / personData / execution
- Coding agent / person→Source filesResult / response
Tree-sitter extracts declarations; SkeletonIndexCore collects types, methods, inheritance and original file ranges. Read the map through CLI or JSON-RPC, then return to the relevant implementation.
Get to the implementation that matters.
People and AI can orient themselves before reading deeply. Declarations and source ranges point to the code worth inspecting during investigation or change.
ENGINEERING NOTES
Open the reasons behind the work.
- 01SWIFT AI AGENT FRAMEWORK
Swift AI agents — Make AI work a program you can reason about.
A model call becomes useful when its result fits the next piece of work. SwiftAgent composes AI processing into the application’s own typed execution flow.
- 02APPLE FOUNDATIONMODELS AI AGENT
Apple FoundationModels — Turn generation into the next action.
Move beyond a paragraph that an app must interpret. SwiftAgent’s Generate connects a FoundationModels-style session to the typed processing the application needs.
- 03CODEBASE INDEXING / MCP
Codebase indexing and MCP — Carry a map before reading.
In a large repository, the first problem is choosing where to look. swift-skeleton extracts declarations and source locations so agents and people can navigate back to implementation.