# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
This site has an agentic ask interface you may use to query the documentation dynamically by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.aisl.science/index.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

---

# Home

Public documentation and curated toolstack resources from AISL.

**AISL Docs** is the public documentation hub of the **Accountable Intelligent Systems Lab (AISL)**, part of the **Centre for Business Artificial Intelligence (CBAI)** at the **FHNW School of Business**. It documents selected AISL applications, access information, learning and training resources, public artifacts, external tools, and parts of the practical technology stack used in our work.

It is intended for **FHNW students and instructors, researchers, project teams, collaborators, and current or prospective partners** who want to understand or use the tools around AISL's applied AI activities.

For the lab's research profile, projects, and collaboration opportunities, visit [aisl.science](https://aisl.science/).

{% hint style="info" %}
**Start here:** If you want to use an AISL-hosted application, begin with Getting Access. For learning materials and public AISL resources, see [Learning & Resources](/learning-and-resources). If you want to explore the broader toolstack, see [AISL Applications](/applications) and [External Tools and Services](/external-tools-and-services).
{% endhint %}

{% hint style="warning" %}
**Test and teaching environment:** AISL-hosted services are not production services. Availability, storage, backups, and recovery are not guaranteed. Keep your own copies of important work. AISL assumes no liability for data loss.
{% endhint %}

## Explore AISL Docs

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>AISL Applications</strong></td><td>Explore the applications operated or administered for teaching, research, and project work.</td><td><a href="/applications">AISL Applications</a></td></tr><tr><td><strong>Getting Access</strong></td><td>Learn how access and pre-enrollment work for FHNW users.</td><td></td></tr><tr><td><strong>Learning &#x26; Resources</strong></td><td>Find training material, tutorials, public AISL resources, and selected learning-oriented starting points.</td><td><a href="/learning-and-resources">Learning &amp; Resources</a></td></tr><tr><td><strong>External Tools and Services</strong></td><td>Explore external compute, notebook, developer, and AI services relevant to our toolstack.</td><td><a href="/external-tools-and-services">External Tools and Services</a></td></tr><tr><td><strong>Events and Community</strong></td><td>Find AISL-related hackathons, challenges, and community activities.</td><td></td></tr></tbody></table>

## About this documentation

{% hint style="info" %}
**AI-assisted and agentic documentation:** Most content in AISL Docs is produced through AI-assisted and agentic documentation workflows based on detailed instructions from domain experts and subsequent human review. This allows us to document a broad and rapidly changing toolstack efficiently, but it does not guarantee that every detail is complete or current.
{% endhint %}

Information about **external tools and services** changes particularly quickly and cannot be continuously maintained or manually re-verified. Always confirm current quotas, pricing, eligibility, privacy terms, and product capabilities on the provider's official website before relying on them.

## Access, questions, or corrections

{% hint style="success" %}
**Contact:** <engines@aisl.science>
{% endhint %}

For access requests, include the **application name** and a short description of the intended use, such as a course, teaching activity, research activity, or project. AISL does not provide a formal support service.


# Getting Access

Use your **FHNW account** to sign in to AISL applications. Before first use, your account must either be **enabled on request** or have been **pre-enrolled for a module, course, or project**.

{% hint style="info" %}
**Sign in:** Use your FHNW account after access has been enabled for the application.
{% endhint %}

{% hint style="warning" %}
**Test and teaching environment:** AISL-hosted services are not production systems. Availability and data persistence are not guaranteed. Keep your own copies of important work. AISL assumes no liability for data loss.
{% endhint %}

## How access works

For **LiteLLM, Open WebUI, Langflow, and n8n**, access is provided in one of two ways:

* you request access for a course, teaching activity, or project; or
* you are pre-enrolled as part of a module, course, or project.

## Request access

Email <engines@aisl.science> and include:

* the **application** you want to use
* a short description of the **intended use**, such as a course, teaching activity, or project

{% hint style="success" %}
**Request access:** <engines@aisl.science>
{% endhint %}

## Get help

AISL does not provide a formal support service. For access questions or problems using an AISL application, contact <engines@aisl.science>.


# AISL Applications

AISL operates and administers selected applications for **teaching, learning, research, experimentation, prototyping, and project work**. Together, these services provide a practical view of the application layer used across parts of the AISL toolstack.

For collaborators and prospective partners, this section also provides a high-level overview of the environments we work with. **Access to AISL-hosted applications is generally limited to approved FHNW users and activities** unless a specific project arrangement provides otherwise.

{% hint style="info" %}
**Access:** For LiteLLM, Open WebUI, Langflow, and n8n, an FHNW user's account must be enabled before first use. Access is either granted on request or pre-enrolled for a module, course, research activity, or project.
{% endhint %}

{% hint style="warning" %}
**Test and teaching environment:** AISL-hosted applications are not production services. Availability, storage, backups, and recovery are not guaranteed. Keep your own copies of important work. AISL assumes no liability for data loss.
{% endhint %}

## Service use

* **Non-commercial use only.** AISL services are provided for teaching, learning, research, experimentation, and related project work.
* **Request metadata:** By using an AISL service, you consent to the collection and use of request metadata to support research and service operation.
* **API key security:** Keep any API keys or access credentials secure. Do not share them publicly or include them in client-side code.

## Applications

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>LiteLLM</strong><br>Generate your own LLM access keys and use supported AI models.</td><td>Best for managed model access in tools, prototypes, and projects.</td><td><a href="/applications/litellm">LiteLLM</a></td></tr><tr><td><strong>Open WebUI</strong><br>Browser-based chat with supported AI models.</td><td>Best for direct conversational use and model exploration.</td><td><a href="/applications/open-webui">Open WebUI</a></td></tr><tr><td><strong>Langflow</strong><br>Visual environment for AI and agent workflows.</td><td>Best for rapid prototyping and workflow experimentation.</td><td><a href="/applications/langflow">Langflow</a></td></tr><tr><td><strong>n8n</strong><br>Visual environment for automations and tool connections.</td><td>Best for workflow automation and tool-connected prototypes.</td><td><a href="/applications/n8n">n8n</a></td></tr><tr><td><strong>DigiBP</strong><br>Process-management environment used in selected modules and project work.</td><td>Available where it is part of a specific exercise or project.</td><td><a href="/applications/digibp">DigiBP</a></td></tr><tr><td><strong>Additional HSW Services</strong><br>Flowable, Trisotech, and Visual Paradigm for selected modules.</td><td>Services and licenses administered for FHNW School of Business teaching.</td><td><a href="/applications/additional-hsw-services">Additional HSW Services</a></td></tr></tbody></table>

## Access and help

{% hint style="success" %}
**Request access:** Email <engines@aisl.science> with the application name and a short description of your course, teaching activity, research activity, or project.
{% endhint %}

AISL does not provide a formal support service. For access questions, documentation corrections, or questions about the documented toolstack, contact <engines@aisl.science>.


# LiteLLM

## What it is

LiteLLM is the AISL platform for accessing supported AI models and creating your own **LLM access keys** for approved teaching, learning, and project activities.

{% hint style="warning" %}
**Test and teaching environment:** Availability and data persistence are not guaranteed. Keep your own copies of important work. AISL assumes no liability for data loss.
{% endhint %}

## What you can do with it

* create and manage your own model access keys
* use supported AI models in compatible tools and projects
* work with model access provided for your module, course, or project

## Who it is for

FHNW students and instructors who need model access for coursework, teaching, experimentation, or project work.

## Sign in

{% hint style="info" %}
**Sign in:** [Open LiteLLM](https://litellm.engines.aisl.science) with your **FHNW account** after access has been enabled.
{% endhint %}

Access is either enabled on request or pre-enrolled for a module, course, or project.

## Important use conditions

{% hint style="warning" %}
**API key security:** Keep your API key secure. Do not share it publicly or include it in client-side code.
{% endhint %}

* **Request metadata:** By using this service, you consent to the collection and use of request metadata to support research and service operation.
* **Non-commercial use only:** The service is provided for teaching, learning, research, and related project work, not for commercial or startup use.

## Request access

{% hint style="success" %}
**Request access:** Email <engines@aisl.science> with **LiteLLM** and a short description of your course, teaching activity, or project.
{% endhint %}

## Get help

For access or usage questions, contact <engines@aisl.science>.


# Open WebUI

## What it is

Open WebUI is a **browser-based chat interface** for AI models made available through AISL.

{% hint style="warning" %}
**Test and teaching environment:** Availability and data persistence are not guaranteed. Keep your own copies of important work. AISL assumes no liability for data loss.
{% endhint %}

## What you can do with it

* chat with supported AI models in your browser
* switch between models available to you
* use conversational AI for learning, teaching, exploration, and project work

## Who it is for

FHNW students and instructors who want a straightforward chat interface for supported AISL models.

## Sign in

{% hint style="info" %}
**Sign in:** [Open Open WebUI](https://chat.engines.aisl.science) with your **FHNW account** after access has been enabled.
{% endhint %}

Access is either enabled on request or pre-enrolled for a module, course, or project.

## Important use conditions

* **Non-commercial use only.** The service is provided for teaching, learning, research, and related project work.
* **Request metadata:** By using this service, you consent to the collection and use of request metadata to support research and service operation.
* **Credentials:** Keep any API keys or access credentials secure. Do not share them publicly or include them in client-side code.

## Request access

{% hint style="success" %}
**Request access:** Email <engines@aisl.science> with **Open WebUI** and a short description of your course, teaching activity, or project.
{% endhint %}

## Get help

For access or usage questions, contact <engines@aisl.science>.


# Langflow

## What it is

Langflow is a **visual environment for building and testing AI workflows**.

{% hint style="warning" %}
**Test and teaching environment:** Availability and data persistence are not guaranteed. Keep your own copies of important work. AISL assumes no liability for data loss.
{% endhint %}

## What you can do with it

* prototype AI workflows visually
* combine models, prompts, and workflow steps
* test and refine flows for courses, teaching, or projects

## Who it is for

FHNW students and instructors who want to explore AI workflows without starting from a code-only environment.

## Sign in

{% hint style="info" %}
**Sign in:** [Open Langflow](https://langflow.engines.aisl.science) with your **FHNW account** after access has been enabled.
{% endhint %}

Access is either enabled on request or pre-enrolled for a module, course, or project.

## Important use conditions

* **Non-commercial use only.** The service is provided for teaching, learning, research, and related project work.
* **Request metadata:** By using this service, you consent to the collection and use of request metadata to support research and service operation.
* **Credentials:** Keep any API keys or access credentials secure. Do not share them publicly or include them in client-side code.

## Request access

{% hint style="success" %}
**Request access:** Email <engines@aisl.science> with **Langflow** and a short description of your course, teaching activity, or project.
{% endhint %}

## Get help

For access or usage questions, contact <engines@aisl.science>.


# n8n

## What it is

n8n is a **visual environment for automations and connections between tools**.

{% hint style="warning" %}
**Test and teaching environment:** Availability and data persistence are not guaranteed. Keep your own copies of important work. AISL assumes no liability for data loss.
{% endhint %}

## What you can do with it

* build trigger-and-action workflows
* connect supported tools and services
* include AI steps in automations where these are available for your use case

## Who it is for

FHNW students and instructors who want to prototype automations and tool-connected workflows for teaching or project work.

## Sign in

{% hint style="info" %}
**Sign in:** [Open n8n](https://n8n.engines.aisl.science) with your **FHNW account** after access has been enabled.
{% endhint %}

Access is either enabled on request or pre-enrolled for a module, course, or project.

## Important use conditions

* **Non-commercial use only.** The service is provided for teaching, learning, research, and related project work.
* **Request metadata:** By using this service, you consent to the collection and use of request metadata to support research and service operation.
* **Credentials:** Keep any API keys or access credentials secure. Do not share them publicly or include them in client-side code.

## Request access

{% hint style="success" %}
**Request access:** Email <engines@aisl.science> with **n8n** and a short description of your course, teaching activity, or project.
{% endhint %}

## Get help

For access or usage questions, contact <engines@aisl.science>.


# DigiBP

### What it is

DigiBP is a process-management environment used for **project work and practical exercises in selected FHNW modules**.

{% hint style="warning" %}
**Test and teaching environment:** DigiBP is provided for coursework and project work. Availability and data persistence are not guaranteed. Keep your own copies of important work. AISL assumes no liability for data loss.
{% endhint %}

### What you can do with it

* work with process models and exercises provided in a module
* use the environment for assigned project work
* complete course-specific practical tasks

### Who it is for

FHNW students and instructors using DigiBP as part of a specific module, exercise, or project.

### Access

DigiBP uses a separate access model from the other AISL applications. Access is provided only where DigiBP is part of the relevant module, exercise, or project.

{% hint style="info" %}
**DigiBP – Community Edition (CE):** [digibp.engines.aisl.science](https://digibp.engines.aisl.science/)

**DigiBP – Enterprise Edition (EE):** [digibp-ee.engines.aisl.science](https://digibp-ee.engines.aisl.science/)

Both environments are operated separately, including their user accounts, projects, and process data. Use the environment designated by your instructor or project lead, and follow the access information provided for your module or project.
{% endhint %}

### Important use conditions

* **Non-commercial use only.** The service is provided for teaching, learning, research, and related project work.
* **Request metadata:** By using this service, you consent to the collection and use of request metadata to support research and service operation.
* **Credentials:** Keep any API keys or access credentials secure. Do not share them publicly or include them in client-side code.

### Get help

For questions about DigiBP access, first follow the instructions provided for your module or project. General contact: <engines@aisl.science>.


# Additional HSW Services

In addition to AISL-hosted applications, AISL administers access to selected **FHNW School of Business (HSW)** teaching tools. These services use separate access or licensing arrangements and are typically provided as part of a module.

## Flowable

A process-management and automation platform used in selected HSW modules and project work.

**Best for:** Process modeling, execution, and automation activities defined in a course.

[Open Flowable](https://fhnw.cloud.flowable.com/)

## Trisotech

A modeling environment used in selected HSW modules for business process and decision modeling.

**Best for:** Course activities involving process and decision models.

[Open Trisotech](https://fhnw.trisotech.com)

## Visual Paradigm

Visual Paradigm licenses are made available in selected HSW modules for modeling and related coursework.

**Best for:** Modeling activities where the module specifically uses Visual Paradigm.

{% hint style="info" %}
**Access:** Follow the instructions provided by your instructor or module team. Access and licenses can differ by course.
{% endhint %}

For general access questions, contact <engines@aisl.science>.


# Learning & Resources

Practical AISL learning, training, tutorials, public resources, and selected starting points for teaching, experimentation, and project work.

AISL uses practical AI and developer tooling in teaching, learning, experimentation, prototyping, and skills development. This section brings together **public AISL resources, training material, tutorials, and selected learning-oriented starting points** rather than duplicating complete vendor documentation.

## AISL resources

The following resources are publicly available and can be used independently of access to AISL applications:

* [AISL website](https://aisl.science/) — research, projects, teaching, and community information
* [AISL on GitHub](https://github.com/AISL-science) — public repositories and project resources
* [AISL on Hugging Face](https://huggingface.co/AISL-science) — public models, datasets, and artifacts when available
* [Reading Is All You Need](https://huggingface.co/collections/AISL-science/reading-is-all-you-need) — curated AISL reading collection

## Training and tutorials

* [Training Apertus](/learning-and-resources/training-apertus) — practical Apertus 1.5 SFT workflow covering the Kaggle training notebook, the text-focused checkpoint, baseline evaluation, current tooling status, and scaling to larger compute
* [AI-assisted Software Development (AI-SDLC)](/learning-and-resources/ai-sdlc) — canonical method documentation for disciplined software development with AI coding agents, including lifecycle phases, repository artefacts and getting started guidance

Additional tutorials and notebooks will be added here over time.

## Developer and notebook resources

* [GitHub Education for Students](/external-tools-and-services/github-education-for-students) — GitHub Pro, Copilot Student, Codespaces, and Student Developer Pack benefits
* [JetBrains for Students](/external-tools-and-services/jetbrains-for-students) — professional IDEs, educational licenses, and JetBrains AI Free
* [AI Coding Assistants](/external-tools-and-services/ai-coding-assistants) — free and open-source coding tools and current free tiers
* [Notebook Services](/external-tools-and-services/notebook-services) — free and education-oriented browser notebook platforms
* [External Tools and Services](/external-tools-and-services) — broader external infrastructure and toolstack overview

{% hint style="info" %}
External tools and educational offers can change quickly. Check the provider's official documentation before planning a course, assignment, or project around a specific quota or feature.
{% endhint %}


# Training Apertus

Guide for supervised fine-tuning Apertus 1.5, starting on Kaggle and scaling text-focused training workflows on CSCS Clariden.

Use the [Apertus 1.5 SFT notebook on Kaggle](https://www.kaggle.com/code/andreasmartinch/sft-apertus-v1-5-8b-hack-apertus-template) as the common notebook for Kaggle and CSCS Clariden.

The notebook supports three training methods:

* **QLoRA** — validated on Kaggle and CSCS Clariden;
* **LoRA** — validated on CSCS Clariden;
* **Full SFT** — validated on CSCS Clariden with DeepSpeed ZeRO-3.

Select the method in the notebook:

```python
TRAINING_METHOD = "qlora"
# "qlora" | "lora" | "full"
```

## Recommended workflow

1. Define or reserve a held-out evaluation set.
2. Evaluate the base model as a baseline.
3. Fine-tune on the training data.
4. Evaluate the adapted model on the same held-out examples.
5. Compare loss, task behaviour, format adherence and task-specific metrics.

Start with QLoRA on Kaggle using 2 x T4 GPUs. Once the complete workflow works, use the same notebook on CSCS Clariden when more compute is needed.

## Text-focused checkpoint

For the current teaching workflow, use [`andreasmartin/apertus-v1.5-8b-text`](https://huggingface.co/andreasmartin/apertus-v1.5-8b-text).

## CSCS Clariden

For larger experiments, use the same notebook through the [Clariden JupyterHub](https://jupyter-clariden.cscs.ch/). QLoRA, LoRA and Full SFT have been validated in the current JupyterHub workflow. The tested setup and CSCS-specific notes are documented in [Training Apertus on CSCS Clariden](https://docs.aisl.science/learning-and-resources/training-apertus/cscs-clariden).

## Credentials

On Kaggle, use Kaggle Secrets. On CSCS JupyterLab, the notebook can ask interactively for missing Hugging Face and Weights & Biases credentials.

Do not place tokens, passwords, or private keys directly in notebook source code, repositories, screenshots, or shared chats.

## Related resources

* [Apertus 1.5 SFT notebook on Kaggle](https://www.kaggle.com/code/andreasmartinch/sft-apertus-v1-5-8b-hack-apertus-template)
* [Training Apertus on CSCS Clariden](https://docs.aisl.science/learning-and-resources/training-apertus/cscs-clariden)
* [Apertus 1.5 8B text-focused checkpoint](https://huggingface.co/andreasmartin/apertus-v1.5-8b-text)
* [Official Apertus 1.5 8B model](https://huggingface.co/swiss-ai/Apertus-v1.5-8B)
* [Hack Apertus](https://hackapertus.ch/)


# Training Apertus on CSCS Clariden

JupyterHub workflow for training Apertus with QLoRA, LoRA and Full SFT on CSCS Clariden.

Use the same Apertus SFT notebook on Kaggle and CSCS Clariden.

Open [Clariden JupyterHub](https://jupyter-clariden.cscs.ch/) and start JupyterLab with the settings provided for your course or project. The tested setup used `Dedicated`, the CSCS project account, `nvcr.io/nvidia/pytorch:25.04-py3`, and no Advanced options. The notebook saw 4 x NVIDIA GH200 120 GB GPUs.

## Notebook

Use the [Apertus 1.5 SFT notebook](https://www.kaggle.com/code/andreasmartinch/sft-apertus-v1-5-8b-hack-apertus-template).

Select the training method in the notebook:

```python
TRAINING_METHOD = "qlora"
# "qlora" | "lora" | "full"
```

QLoRA, LoRA and Full SFT have been validated with the current Clariden JupyterHub workflow.

The notebook detects Clariden and the visible GPUs automatically. It keeps the target global batch size at 8, so the tested setups use:

```
Kaggle:   2 GPUs x batch 2 x accumulation 2 = 8
Clariden: 4 GPUs x batch 2 x accumulation 1 = 8
```

## Python dependencies

The CSCS NGC PyTorch image provides the NVIDIA/PyTorch runtime. The notebook installs the Hugging Face training stack itself, including Transformers, TRL, PEFT, Accelerate, Datasets and Safetensors. It adds bitsandbytes for QLoRA, Weights & Biases when enabled, and DeepSpeed for Full SFT.

CSCS exports a global `PIP_CONSTRAINT` that can pin older Hugging Face packages. The notebook disables this constraint only for its package-installation subprocess and leaves the NVIDIA/PyTorch runtime unchanged.

No separate virtual environment or custom Jupyter kernel is required for this workflow.

## Credentials

If credentials are missing, the notebook asks interactively for `HF_TOKEN` and, when enabled, `WANDB_API_KEY`. Do not store tokens in notebook source code.

## QLoRA on GH200

On the tested CUDA 12.9 environment, bitsandbytes reports that it loads its CUDA 12.8 binary. This warning did not prevent QLoRA from running on the GH200 GPUs. The notebook uses BF16 on Clariden when supported.

## LoRA on GH200

LoRA has also been validated with the current JupyterHub workflow on Clariden. It uses the same notebook and training/evaluation flow without 4-bit quantization.

## Full SFT on GH200

Full SFT can be selected with:

```python
TRAINING_METHOD = "full"
```

The validated setup uses DeepSpeed ZeRO-3 across 4 x NVIDIA GH200 120 GB GPUs. Full SFT trains all approximately 8.05 billion model parameters and uses the same notebook launcher and training/evaluation flow as the other methods.

The current CSCS NGC environment exposes an NVTX implementation that is incompatible with the DeepSpeed NVTX domain API. The notebook therefore applies a small Full-SFT-only workaround before DeepSpeed is initialized:

```python
if TRAINING_METHOD == "full":
    import deepspeed.accelerator.cuda_accelerator as ds_cuda
    ds_cuda.nvtx = None
```

DeepSpeed may also print repeated linker messages such as `cannot find -laio`. In the validated run these messages were non-fatal and training continued normally.

## Related resources

* [Training Apertus](https://docs.aisl.science/learning-and-resources/training-apertus)
* [Apertus SFT notebook on Kaggle](https://www.kaggle.com/code/andreasmartinch/sft-apertus-v1-5-8b-hack-apertus-template)
* [CSCS Clariden](https://docs.aisl.science/external-tools-and-services/cscs-clariden)


# AI-Assisted Software Development Life Cycle (AI-SDLC)

Comprehensive canonical documentation for the AI-Assisted Software Development Life Cycle used in the FHNW BSc Business Artificial Intelligence module.

{% hint style="info" %}
**One method, two reading paths.** This page explains AI-SDLC and its artifacts. For a guided exercise from a new template repository, use the classroom walkthrough. Repository instructions remain short; explanations and examples live here.
{% endhint %}

## Reading this guide

AI-SDLC organizes a change around a simple question: what must be true before another person or agent can continue the work? A specification captures the intended behavior, project documentation records technical context, and tests provide evidence about the implementation.

Read the lifecycle first, then the worked example. The artifact sections explain where the results belong. This page distinguishes the intended method from the starter implementation: instructions are not an automated lifecycle engine, and an example is not evidence of measured effectiveness.

**AI-SDLC — September 2026.** The repository instructions now include a scoped Fast Track, on-demand architecture decision records (ADRs) in DESIGN, and reviewed feedback of accepted decisions into agent instructions. These are human/agent procedures, not automated enforcement.

## Overview

The **AI-Assisted Software Development Life Cycle (AI-SDLC)** is a lightweight, spec-driven lifecycle for governed agentic software engineering. “Lean” and “spec-driven” describe the approach; they are not additional words in the expansion of AI-SDLC. It supports collaboration between human developers and AI coding agents such as GitHub Copilot, Cline, Claude Code, Codex, Cursor, Windsurf or comparable tools.

The method integrates:

* **Test-Driven Development (TDD)** and the testing pyramid
* **Clean Architecture** and explicit dependency boundaries
* **Continuous Integration and Continuous Delivery (CI/CD)**
* **Containerized releases** where the selected technology stack benefits from them
* **Lean Spec-Driven Development (SDD)** orchestrated by `AGENTS.md` and phase-specific `skills/ai-sdlc-[phase]`
* **SAFe-compatible** iterative delivery
* **Kanban-based execution** using GitHub Projects

The method is repository-centred. Project knowledge, current state, use-case specifications, architecture decisions and agent instructions remain close to the code so that they can be inspected, versioned and reviewed together.

## Visual Overview

```mermaid
flowchart TD
  X["0 BOOTSTRAP<br/>Project Initialization"] --> A["1 SPECIFY<br/>Use Case Definition"]
  A --> B["2 DESIGN<br/>Architecture and Decisions"]
  B --> C["3 DEVELOP<br/>Integration → Unit → Code (TDD)"]
  C --> D["4 VALIDATE<br/>E2E + CI + Release Build"]
  D --> E["5 DEPLOY<br/>Prepare and Verify Delivery"]

  D -. failing tests .-> C
  D -. iteration .-> A
  E -. feedback .-> A
```

The lifecycle is iterative. A failed quality gate is evidence for another development or specification cycle, not a reason to bypass validation.

## Phase Summary

| Phase       | Guiding question                       | Main output                                          |
| ----------- | -------------------------------------- | ---------------------------------------------------- |
| 0 BOOTSTRAP | What project are we building?          | Working project context                              |
| 1 SPECIFY   | What must the change do?               | Testable acceptance criteria                         |
| 2 DESIGN    | Where does behavior belong?            | Boundaries and necessary decisions                   |
| 3 DEVELOP   | Does implementation satisfy the tests? | Tests and code                                       |
| 4 VALIDATE  | What evidence supports readiness?      | Verified checks and artifact evidence                |
| 5 DEPLOY    | Is delivery prepared or executed?      | Workflow verification and, if run, delivery evidence |

### 0. BOOTSTRAP

Initialize the project structure and establish the architecture baseline:

* clarify the system or application purpose;
* record language, framework and runtime;
* inspect existing source, tests, dependency files and documentation;
* establish compatible Clean Architecture boundaries;
* document dependencies, commands and runtime assumptions;
* prepare the context for the first use-case specification in SPECIFY;
* complete `docs/PROJECT.md`;
* record the initial state in `docs/TASKS.md`.

BOOTSTRAP should adapt an existing repository where possible. It creates only missing structure and does not remove or restructure existing content without a clear decision.

### 1. SPECIFY

Turn one user story or change request into a **single executable use-case specification** in `docs/specs/UC-XXX.md`.

The specification records:

* intent and business value;
* actors and preconditions;
* scope, including explicit IN and OUT boundaries;
* the normal flow;
* errors and exceptional cases;
* acceptance criteria;
* minimal non-functional requirements;
* test-intent mapping for unit, integration and end-to-end tests.

“Executable specification” means precise enough to derive tests from; the Markdown itself is not runnable. The current template contains Intent, Actors, Preconditions, Flow, Errors, Acceptance and Tests. Scope and non-functional requirements can be recorded within those sections.

No implementation is generated during SPECIFY. The specification is the contract against which design, tests and implementation are reviewed.

### 2. DESIGN

Stabilize the architecture and boundaries for the current use case.

The team or agent:

* reads the use-case specification and `docs/PROJECT.md`;
* identifies the minimum required domain, application, interface and infrastructure components;
* confirms frameworks, libraries, data stores and external integrations;
* defines ports, adapters and dependency direction;
* slices the work into small vertical tasks in `docs/TASKS.md`;
* identifies the tests needed at each boundary.

The current DESIGN skill explicitly identifies components and updates `docs/PROJECT.md` if needed. Vertical task slicing is a recommendation from the original overview, but not an explicit output in that skill. Consequential architecture choices now require an on-demand ADR; ordinary implementation details do not. The DESIGN skill records alternatives and consequences, distinguishes proposed from accepted decisions, and links accepted decisions to current architecture and durable agent rules.

DESIGN does not implement code or generate tests. It produces a sufficiently precise plan for a small end-to-end slice.

### 3. DEVELOP

Implement the current use case using strict test-first development:

1. write or extend integration tests for boundary behavior;
2. write or extend unit tests for domain rules and use-case logic;
3. implement the smallest change that makes the tests pass;
4. refactor while preserving behavior;
5. review the result after each step and run the relevant local tests.

The working sequence is **Red → Green → Refactor**. Tests are derived from acceptance criteria and domain rules. Existing tests and source files should be extended before new files are created.

### 4. VALIDATE

Make the use case release-ready by checking the complete evidence chain:

* unit tests;
* integration tests;
* end-to-end tests where the system has an end-to-end boundary;
* build or packaging process;
* Dockerfile and container execution where containerization is part of the project;
* GitHub Actions CI;
* release workflow and published artifact;
* quality gates, such as a recommended coverage target of 80% or higher;
* documentation of known limitations and configuration.

The current VALIDATE skill explicitly expects a Dockerfile, a container build, E2E tests and artifact publication. Its implementation is therefore container-oriented, even though the starter contains no application stack. Other delivery models require a deliberate project adaptation.

A configured project should run unit and integration tests on pull requests. End-to-end tests can run against a built container or another reproducible deployment artifact during release validation.

### 5. DEPLOY

The current skill verifies or collaboratively defines a deployment workflow. Completing it does not prove a deployment has run. Actual delivery needs a configured target, authorization and execution evidence.

Deploy only a validated artifact. The deployment workflow is defined together with the project owner and depends on the selected platform.

A CD workflow should document:

* its trigger and approval model;
* the artifact being deployed;
* required environment variables and secret names;
* the deployment target;
* post-deployment smoke checks;
* rollback or recovery expectations.

The template includes an inactive provider-neutral CD workflow skeleton. Configure `.github/workflows/cd.yml` during DEPLOY after the deployment target, required secrets and operational responsibilities have been decided.

## Lean SDD (Spec-Driven Development)

Lean SDD is controlled by a small set of repository-local artifacts:

* `AGENTS.md` routes the agent to the current lifecycle phase and defines guardrails;
* `docs/TASKS.md` defines the current phase, active use case and backlog;
* `docs/PROJECT.md` provides project-specific architecture and runtime instructions;
* `docs/specs/UC-XXX.md` defines the executable use-case contract;
* `skills/ai-sdlc-[phase]` provides phase-specific execution guidance.

At the beginning of a task, the agent loads the context in this order:

1. `docs/TASKS.md`
2. `docs/PROJECT.md`
3. the active `docs/specs/UC-XXX.md`, or the eligible Fast Track task entry when no specification applies
4. the skill for the current phase

### Phase and status

`PHASE` identifies the selected phase; `STATUS` describes progress within it. All six skills use the same convention, including BOOTSTRAP. Completion keeps the phase number; the next phase is selected explicitly, not automatically.

| Status        | Meaning                            |
| ------------- | ---------------------------------- |
| `ready`       | Phase selected, work not started   |
| `in-progress` | Phase being executed               |
| `done`        | Phase output verified              |
| `blocked`     | Cannot continue; record the reason |

```mermaid
stateDiagram-v2
    [*] --> ready
    ready --> in_progress: Start selected phase
    in_progress --> done: Verify phase output
    in_progress --> blocked: Missing input or prerequisite
    blocked --> in_progress: Resolve blocker
    done --> ready: Explicitly select next or repeated phase
    state "in-progress" as in_progress
```

For example, completed BOOTSTRAP is `PHASE: 0 / STATUS: done`. Selecting SPECIFY changes this to `PHASE: 1 / STATUS: ready`. These are maintained records, not an enforced state machine.

{% hint style="warning" %}
`done` applies to the selected phase output. In DEPLOY, a verified workflow is not proof that an artifact was deployed. Record actual deployment evidence separately.
{% endhint %}

The router explicitly permits agents to maintain `docs/TASKS.md`. Changes to `AGENTS.md` require an explicitly approved rule change or human review before merge. An agent may propose a change but must not silently rewrite its own operating rules.

This separation keeps the method stable while allowing each project to record its own technology and domain context.

## Artifacts

The primary workflow artifacts are repository-local:

| Artifact                          | Responsibility                                              |
| --------------------------------- | ----------------------------------------------------------- |
| `AGENTS.md`                       | Workflow router, context order and guardrails               |
| `docs/TASKS.md`                   | Lifecycle state, active use case and backlog                |
| `docs/PROJECT.md`                 | Purpose, architecture, structure, commands and dependencies |
| `docs/specs/UC-XXX.md`            | Use-case intent, flow, errors, acceptance and test intent   |
| `skills/ai-sdlc-[phase]`          | Execution guidance for each lifecycle phase                 |
| `docs/adr/ADR-NNN-short-title.md` | On-demand architecture decisions, status and rationale      |
| Tool-specific instruction adapter | Thin adapter to the shared AGENTS.md rules                  |
| Environment configuration         | Reproducible project development environment                |
| `.github/workflows/ci.yml`        | Automated structural and project quality checks             |
| `.github/workflows/release.yml`   | Versioned release baseline                                  |
| `.github/workflows/cd.yml`        | Included deployment skeleton; configured during DEPLOY      |

These artifacts are operational project files, not a replacement for this method documentation. Their concrete format depends on the selected tools and development environment. A project README should provide a short description and link to this page rather than duplicating the complete method.

## Fast Track for small changes

Fast Track reduces documentation and validation scope for small, localized changes within existing behavior and architecture. It does not introduce a seventh phase or a separate skill. A typo or a regression correction can qualify; new features, public contract changes, migrations, security changes, dependency changes and architecture decisions cannot. If the scope grows or eligibility is unclear, return to the regular flow.

Use an existing specification when behavior needs clarification. Otherwise, a short entry in `docs/TASKS.md` is sufficient. Record scope, the eligibility reason, an acceptance criterion, the validation plan, actual results and omitted checks with reasons. Shorten SPECIFY and record why DESIGN is skipped or shortened. Do not create a use-case document solely for Fast Track.

For behavior corrections, write a failing regression test before the fix and run relevant tests. Documentation-only changes need content and link checks, not artificial code tests. Required CI and human review still apply. Scoped validation does not certify the entire repository as release-ready or authorize release/deployment; a later release needs its normal validation.

### Example: restore rejection of blank comments

Assume an existing specification already requires blank comments to be rejected, but a regression accepts whitespace-only input.

```
Use AI-SDLC Fast Track to restore rejection of whitespace-only comments.
Keep the existing API contract, dependencies and architecture unchanged.
```

The acceptance criterion is: whitespace-only input is rejected and no comment is stored. A suitable test checks this at the affected boundary; adding unrelated tests at every layer is not required. Record real commands and results rather than copying a fictional “passed” result. For a spelling correction, use the same short record with content/link verification instead.

## Architecture decisions and shared project knowledge

DESIGN creates an ADR only when a consequential choice needs a durable rationale, for example a persistence boundary, a technology choice or a cross-cutting constraint. Create `docs/adr/ADR-NNN-short-title.md` on demand with an unused number. No empty ADR directory or routine decision document is required.

Use five short sections: Status, Context, Alternatives, Decision and Consequences. The status starts as Proposed; record the authorized human's acceptance and review reference before treating it as Accepted. Preserve a replaced decision as Superseded and link its replacement.

| File                              | What it records                                                      |
| --------------------------------- | -------------------------------------------------------------------- |
| `docs/adr/ADR-NNN-short-title.md` | Decision, alternatives, rationale, consequences and approval history |
| `docs/PROJECT.md`                 | Current architecture and links to relevant accepted decisions        |
| `AGENTS.md`                       | Only durable, actionable constraints and ADR links                   |
| `docs/TASKS.md`                   | Active work, phase and links to decisions or validation evidence     |

### Example: keep persistence behind application ports

An ADR might compare direct database access from controllers with access through an application port. If the team accepts the port-based boundary, `PROJECT.md` describes the resulting architecture. The corresponding short agent rule could be: “Do not access the database directly from API controllers; use the application port. See ADR-001.” This is an illustrative decision, not an ADR already created in the starter.

```
Execute phase 2 of AI-SDLC.

Compare direct database access from controllers with application ports.
Propose an ADR if this requires a consequential architecture decision.
```

Agents can prepare the proposed ADR and associated documentation diffs together. The human review establishes acceptance; an agent proposal is not approval. When a decision changes, preserve its history and reconcile affected architecture descriptions and agent rules in the same reviewed change. Parallel branches must reconcile task state and decision identifiers before merge. This is a collaboration convention, not a lock or automatic synchronization service.

## TDD and the Testing Pyramid

The testing pyramid balances fast feedback and realistic system confidence:

* **Unit tests ≈ 70%**: domain rules and application logic;
* **Integration tests ≈ 20%**: interfaces, adapters and infrastructure boundaries;
* **End-to-end tests ≈ 10%**: complete user flows against the built artifact.

The proportions and the earlier 80% coverage target are teaching heuristics from the original overview, not empirically established AI-SDLC thresholds. The template does not enforce them. Coverage alone cannot establish assertion quality or acceptance-criterion completeness.

The proportions are guidelines, not a mathematical requirement. The important principle is to test each risk at the cheapest reliable boundary.

A typical CI expectation is:

* unit and integration tests on pull requests;
* static checks and formatting checks on pull requests;
* end-to-end tests in a release or validation pipeline;
* artifact build and publication only after required checks pass.

## Clean Architecture Mapping

Clean Architecture makes dependencies explicit and keeps business rules independent from technical details.

The artifacts use the following shorthand for inward dependencies. It is not a required chain of imports: a persistence adapter can implement a repository interface in the application layer, while the domain remains independent of both:

`domain ← application ← interfaces ← infrastructure`

| Layer              | Responsibility                                                | Primary validation                      |
| ------------------ | ------------------------------------------------------------- | --------------------------------------- |
| **Domain**         | Entities, value objects and business rules                    | Unit tests                              |
| **Application**    | Use cases, orchestration and repository interfaces            | Unit tests                              |
| **Interfaces**     | API, UI, CLI and other input/output boundaries                | Integration tests                       |
| **Infrastructure** | Persistence, frameworks, external services and runtime wiring | Integration and containerized E2E tests |

The domain and application layers should not depend on web frameworks, databases or vendor-specific infrastructure. Interfaces define boundaries and dependency injection points. Infrastructure implements the technical details behind those boundaries.

The exact directory names may vary by language and framework. The architecture decision belongs in `docs/PROJECT.md`; the method does not require an artificial restructure when an existing compatible structure is already clear.

## Repository Layout and Tool Adapters

AI-SDLC keeps the method's working context close to the source code:

```
.
├── AGENTS.md                      # AI-SDLC workflow router
├── docs/
│   ├── PROJECT.md                 # Project context and architecture
│   ├── TASKS.md                  # Current lifecycle state
│   └── specs/                     # Use-case specifications
└── skills/                        # Phase-specific execution guidance
```

Projects may add tool adapters, environment configuration and automation workflows. These are implementation choices, not additional AI-SDLC phases or universal requirements. Keep `skills/` as the canonical, agent-neutral source. If a selected agent needs another discovery path, use the project's adapter or setup script without changing the canonical artifacts.

## Working with AI Agents

AI-SDLC treats the agent as a capable implementation partner operating within explicit constraints. The agent must not infer missing requirements from code alone.

Before changing code, the agent should:

* identify the current phase and active use case;
* inspect the relevant repository artifacts;
* state assumptions when they affect scope or architecture;
* preserve existing meaningful content;
* keep changes small and traceable;
* derive tests from acceptance criteria;
* avoid unrelated refactoring and unnecessary file creation;
* ask when requirements or architecture remain unclear.

The human remains responsible for:

* approving the problem definition, scope and acceptance criteria;
* deciding architectural boundaries and material trade-offs;
* reviewing generated code, tests, dependencies and security implications;
* approving releases and deployments.

Agents can work with GitHub Copilot or other compatible tools. The method is agent-neutral: the repository artifacts, lifecycle gates and human approvals matter more than the specific model or product.

## Getting Started

AI-SDLC is tool-neutral. The method does not require GitHub, GitHub Copilot, Codespaces or a particular editor. It can be used with local or hosted repositories and with AI coding agents such as Codex, Claude Code, GitHub Copilot, Cline, Cursor, OpenCode, Kiro, Devin or comparable tools.

1. Choose or create a repository for the project.
2. Add or retain the AI-SDLC artifacts: `AGENTS.md`, `docs/PROJECT.md`, `docs/TASKS.md`, `docs/specs/` and the phase skills.
3. Adapt the project context, commands and agent integration to the selected tools.
4. Complete `docs/PROJECT.md` during BOOTSTRAP.
5. Define the first use case from `docs/specs/UC-TEMPLATE.md`, or record a justified Fast Track task.
6. Record the active phase, status and use case in `docs/TASKS.md`.
7. Execute one phase at a time, using `AGENTS.md` and the skill for the current phase.
8. Review the outputs and evidence before selecting the next phase.

The [AI-SDLC project template](https://github.com/AIaSDev/ai-sdlc-template) provides a convenient starting point with optional repository and tool setup. These are implementation conveniences, not requirements of the method. Follow the template documentation for the selected language, editor, agent and development environment.

### Reading the example prompts

The examples use short, human-written prompts. A configured agent should load the repository instructions and discover the applicable skill automatically. Explicit instruction or skill paths are only needed as a fallback when discovery is unavailable. Execute only the selected phase and review its output before selecting the next.

A useful starting prompt is:

```
Execute the current phase of AI-SDLC.
```

### Reading the example prompts

The examples use short, human-written prompts. A configured agent should load the repository instructions and discover the applicable skill automatically. Explicit instruction or skill paths are only needed as a fallback when discovery is unavailable. Execute only the selected phase and review its output before selecting the next.

A useful starting prompt is:

```
Execute the current phase of AI-SDLC.
```

## Worked example: add comments to a record

This fictional example follows one change through all phases. It is an explanatory walkthrough, not a completed implementation or empirical study. Execute one prompt at a time and review its result. Replace assumptions with your actual project context.

{% stepper %}
{% step %}

### 0. Establish context

```
Execute phase 0 of AI-SDLC.

System: an existing web application for managing records.
We want to add comments.
```

The result is project context, not comment code. For a new repository, choose the language, framework and runtime with the project owner.
{% endstep %}

{% step %}

### 1. Specify behavior

```
Execute phase 1 of AI-SDLC.

Users can add and list comments on an existing record.
Each comment has text, author name and a server-generated timestamp.
Reject blank text.
A missing record produces a not-found error.
Editing, deletion and authentication changes are out of scope.
```

Example acceptance criterion: Given an existing record, when nonblank text and an author name are submitted, then the stored comment appears in its comment list with a timestamp. For blank text, validation fails and nothing is stored. Clarify ordering and permissions against the existing system.
{% endstep %}

{% step %}

### 2. Design the boundaries

```
Execute phase 2 of AI-SDLC for the comments use case.
```

A possible design places text validation in the domain, add/list operations in the application, HTTP handling in an interface and storage in an adapter. This is a candidate design, not a mandatory class structure.
{% endstep %}

{% step %}

### 3. Develop using TDD

```
Execute phase 3 of AI-SDLC for the comments use case.
```

Trace one criterion across layers: a unit test rejects blank input, an integration test checks the API response and persistence behavior, and implementation satisfies both. A happy-path test alone is insufficient.
{% endstep %}

{% step %}

### 4. Validate the artifact

```
Execute phase 4 of AI-SDLC for the comments use case.
```

Evidence should identify the commit, commands, test results and built artifact. A green structural check from the starter is not application-validation evidence.
{% endstep %}

{% step %}

### 5. Prepare and verify delivery

```
Execute phase 5 of AI-SDLC for the comments use case.
```

After delivery is authorized and executed, record the deployment and smoke-test results. Feedback, such as unclear validation messages, informs the next specification.
{% endstep %}
{% endstepper %}

## CI, Releases and Deployment

### Continuous integration

The baseline `.github/workflows/ci.yml` checks the existence of selected files and directories. It does not run application tests, linting or type checks. It runs `git diff --check`, but on a clean checkout there is normally no working-tree diff; this does not meaningfully validate whitespace in committed changes. During BOOTSTRAP and VALIDATE, extend it with the project's install, lint, type-check, unit and integration test commands.

### Releases

The baseline `.github/workflows/release.yml` creates a GitHub Release with generated notes for `v*` tags after structural checks. A manual branch run skips publication. It does not build containers, run E2E tests, publish packages or require successful application CI. Those steps still need implementation to satisfy the intended VALIDATE outcome.

A project may extend the release workflow to:

* build a package or container;
* run end-to-end tests against the built artifact;
* publish a package to an appropriate registry;
* attach release notes and provenance information.

A release should correspond to a documented method or project state and should be traceable to the validated commit.

### Continuous deployment

The template includes `.github/workflows/cd.yml`, triggered manually or by another workflow. Deployment is skipped unless `CD_ENABLED` is `true`; a successful preflight can therefore mean no deployment occurred. When enabled, it expects executable `scripts/deploy.sh` and `scripts/smoke-test.sh`; neither is supplied. These scripts must implement authentication, artifact selection and validation. The workflow does not enforce a successful release or pin the artifact. Do not assume the job-level activation condition works with environment-only variables; review activation and credential scope for the project. Configure it only after choosing a deployment platform and defining the required secrets. The workflow should deploy the validated artifact, perform a post-deploy smoke check and document how to recover from a failed deployment. Never store secret values in the repository.

## SAFe and Kanban Alignment

AI-SDLC can be used with SAFe terminology without requiring a full SAFe implementation:

| SAFe concept                 | AI-SDLC phase                |
| ---------------------------- | ---------------------------- |
| Epic or Feature              | SPECIFY                      |
| System Architecture          | DESIGN                       |
| Iteration execution          | DEVELOP                      |
| System demo or validation    | VALIDATE                     |
| Release and operate feedback | DEPLOY → feedback to SPECIFY |

Kanban in GitHub Projects typically tracks:

`Spec/Backlog → In progress → Review/CI → Done/Deployed`

The board is a visibility and flow mechanism. The repository artifacts remain the source of truth for the active use case, architecture and lifecycle state.

## Reference Implementation

[BAIssue](https://github.com/AIaSDev/BAIssue) is the reference application, not the template. The classroom walkthrough starts from the template and builds a smaller issue-tracker slice for teaching.

A reference implementation should be a small, understandable application that demonstrates the method end to end. It should show:

* a meaningful use-case specification;
* explicit architecture boundaries;
* tests derived from acceptance criteria;
* CI and release evidence;
* containerization or another reproducible build where appropriate;
* a documented deployment workflow when deployment is in scope.

A reference implementation is for learning and comparison. It is not the student project template and should not be copied as a complete method documentation source.

## Current implementation boundaries

The starter does not automate phase transitions, check acceptance-to-test traceability, enforce human review gates or automatically synchronize architecture decisions into agent instructions. Fast Track, ADRs and architecture feedback are now explicit repository instructions; their application and review remain human/agent responsibilities.

`docs/TASKS.md` holds one active context. Parallel branches can diverge and need reconciliation at merge time. The file is not a multi-agent coordination service. The root `skills/` directory is intentionally agent-neutral. Run `scripts/setup-skills.sh` to expose it through supported agent paths; verify discovery in the actual tool. Explicit canonical paths remain a fallback.

## Publication and Versioning

### Current release — Version 1.0.0

Version 1.0.0 is the finalized AI-SDLC method and project template associated with the camera-ready paper submitted to the Upper-Rhine Artificial Intelligence Symposium (URAI) 2026. The [AI-SDLC project template](https://github.com/AIaSDev/ai-sdlc-template) is maintained in alignment with this release.

**Martin, A., & Schwander, S. (2026).** *The AI-SDLC Template and Method: AI-Assisted Software Development Life Cycle* (Version 1.0.0) \[Computer software]. Zenodo. <https://doi.org/10.5281/zenodo.22833065>

The immutable Version 1.0.0 research artifact is archived on Zenodo. This documentation describes the current AI-SDLC method and may evolve beyond Version 1.0.0.

### Research publication

The AI-SDLC method and its empirical evaluation are described in:

**Martin, A., & Schwander, S. (2026).** *A Lean and Spec-Driven AI-Assisted Software Development Lifecycle for Applied AI Education: The AI-SDLC Approach* (arXiv:2609.24348). arXiv. <https://doi.org/10.48550/arXiv.2609.24348>

The camera-ready paper has been submitted for presentation at the Upper-Rhine Artificial Intelligence Symposium (URAI) 2026. The final publication in the **URAI Journal** will be linked here once available and will serve as the version of record.

### Evaluation baseline — Version 1.0.0-beta

The empirical evaluation reported in the paper was conducted using the pre-release version of AI-SDLC. This version is preserved to ensure traceability between the empirical study and the evaluated artifact.

**Martin, A., & Schwander, S. (2026).** *The AI-SDLC Template and Method Pre-Release* (Version 1.0.0-beta) \[Computer software]. Zenodo. <https://doi.org/10.5281/zenodo.22724343>

The subsequent Version 1.0.0 incorporates refinements informed by the evaluation and review process. The pre-release should therefore be used when reproducing or referring specifically to the evaluated artifact.

### Version relationship

```mermaid
flowchart TD
  A["1.0.0-beta<br/>Evaluation artifact"] --> B["Student evaluation"]
  B --> C["Method refinement"]
  C --> D["1.0.0<br/>Final method + template"]
  D --> E["URAI 2026 paper"]
  E --> F["arXiv preprint"]
  E --> G["URAI Journal<br/>Version of Record — forthcoming"]
```

For scientific use, cite the immutable Zenodo release corresponding to the method version used and, where appropriate, the accompanying research paper.

## Process changelog

### September 2026 — refinement based on survey and review feedback

AI-SDLC was refined based on feedback from the student survey and the abstract review:

* **Fast Track:** a shortened route for small corrections within the existing six-phase lifecycle.
* **Architecture decisions:** on-demand ADRs in DESIGN record consequential choices and their rationale.
* **Collaboration:** accepted architecture decisions feed back into current project documentation and relevant, human-reviewed rules in `AGENTS.md`.
* **Phase status:** `PHASE` identifies the selected phase; `STATUS` distinguishes readiness, work in progress, completion and blockers. Completing a phase retains its number, including BOOTSTRAP.
* **Minimal agent instructions:** shared rules are consolidated and phase-specific instructions shortened to reduce duplication.

Artifact snapshots: [project template](https://github.com/AIaSDev/ai-sdlc-template/tree/ea2c81d892612ed595df33e77d648eb2d6c7749b) · [reference implementation](https://github.com/AIaSDev/BAIssue/tree/27162f9e23a1ff6ae9d54d9ef96a33751a55560d).

### Before September 2026 — initial baseline

The six-phase AI-SDLC combined spec-driven development, TDD, architecture guidance and repository-local agent instructions. This version formed the basis of the student survey and the reviewed abstract.

{% hint style="info" %}
The survey and abstract review concerned the pre-September baseline. The September refinements incorporate their feedback; they were not themselves evaluated by that earlier survey.
{% endhint %}

## Summary

The AI-SDLC working principle is:

```
Specification → Tests → Code → Validation → Release → Deployment
```

The method keeps the workflow explicit, the implementation incremental, the evidence reviewable and the human accountable for consequential decisions.


# Classroom walkthrough: build a small issue tracker

A classroom walkthrough from the AI-SDLC template to a small issue-tracker API, with prompts, artifacts and review checkpoints.

{% hint style="info" %}
**Start from the template, not from BAIssue.** This exercise borrows the issue-tracker domain from [BAIssue](https://github.com/AIaSDev/BAIssue), but students build their own implementation. The outputs below are targets and illustrative snapshots, not evidence of a completed run.
{% endhint %}

[Return to the AI-SDLC method](https://docs.aisl.science/learning-and-resources/ai-sdlc).

## GitHub-stack classroom variant

This walkthrough is the concrete GitHub-stack quick start for teaching: students use the template repository, GitHub Codespaces, VS Code, GitHub Copilot and the included GitHub Actions workflows. The AI-SDLC method itself is tool-neutral; use the generic [Getting Started](https://docs.aisl.science/learning-and-resources/ai-sdlc#getting-started) guidance when working with another repository, agent or development environment.

## Learning goal and scope

Build a small API that creates and lists issues and exposes FastAPI's interactive Swagger UI. Explain how one requirement becomes a specification, a design, tests, code and delivery evidence. Use Python, FastAPI, SQLite, pytest and Docker for this exercise; these are exercise choices, not requirements for every template project.

| In scope                                       | Out of scope                               |
| ---------------------------------------------- | ------------------------------------------ |
| Create an issue with a nonblank title          | Authentication and real personal data      |
| Assign a server-generated ID and status `open` | Assignments, comments, deletion and search |
| List stored issues                             | A custom UI or production-ready service    |
| Interactive Swagger UI at `/docs`              | Authentication and real personal data      |
| Unit, integration and container E2E checks     | Automatic production deployment            |

Work in pairs: one person drives Copilot, the other reviews the artifacts. Swap roles after DESIGN. The instructor chooses the deployment platform before the delivery exercise.

## Prepare the repository

1. Create a repository using [ai-sdlc-template](https://github.com/AIaSDev/ai-sdlc-template).
2. Open it in GitHub Codespaces.
3. The devcontainer automatically runs `bash scripts/setup-skills.sh 1` and `bash scripts/setup-python.sh` when the Codespace is created. This prepares `.agents/skills`, creates `.venv` and installs the Python profile dependencies.
4. Check whether the phase skills appear in Copilot. If the automatic setup did not run or discovery fails, run `bash scripts/setup-skills.sh 1` and `bash scripts/setup-python.sh` at the repository root, or explicitly reference the canonical `skills/.../SKILL.md` path in the prompts below.
5. Start with `PHASE: 0` and `STATUS: ready` in `docs/TASKS.md`.

The setup exposes `skills/` through an agent-specific path and prepares the Python environment. It does not generate application code. The FastAPI launch configuration is a starting convention; after BOOTSTRAP, update its module path if the project uses a different entry point.

For non-interactive setup, pass the selection directly, for example `bash scripts/setup-skills.sh 1`. The `claude` selection creates a missing `CLAUDE.md` containing `@AGENTS.md`; an existing file is preserved. Shared instructions and skills are not modified.

{% hint style="warning" %}
Execute one phase at a time. Review its result before explicitly selecting the next phase. Never copy an example status of `done` without checking the actual output.
{% endhint %}

## Walk through the six phases

The examples use short, human-written prompts. A configured agent should load the repository instructions and discover the applicable skill automatically. Explicit instruction or skill paths are only needed as a fallback when discovery is unavailable. Execute only the selected phase and review its output before selecting the next.

{% stepper %}
{% step %}

### 0. BOOTSTRAP — establish a working project context

**Prompt**

```
Execute phase 0 of AI-SDLC.

Set up a small teaching issue-tracker API with Python, FastAPI, SQLite, pytest and Docker.
```

**Expected artifact:** project-specific `PROJECT.md`, dependency manifest and minimal compatible structure. Record commands that match the files actually created; distinguish planned test commands from checks that can already run.

**Review checkpoint:** can a teammate install the dependencies, identify the application entry point and explain the intended boundaries? A skeleton is not a completed feature.

**State:** after verified completion, `PHASE: 0`, `STATUS: done`. Select phase 1 explicitly; its initial status is `ready`.
{% endstep %}

{% step %}

### 1. SPECIFY — make acceptance observable

**Prompt**

```
Execute phase 1 of AI-SDLC.

Specify creating and listing issues: POST /issues returns 201 with a generated ID and status open, blank titles return 422, GET /issues lists issues by ascending ID, data persists in SQLite, and Swagger UI is available at /docs.
No authentication or other features.
```

**Expected artifact:** `docs/specs/UC-001-CREATE-LIST-ISSUES.md`, linked as the active UC in `TASKS.md`.

| Acceptance ID | Given / when                                        | Observable result                       |
| ------------- | --------------------------------------------------- | --------------------------------------- |
| AC-1          | Submit title `Broken projector`                     | 201; generated ID; title; status `open` |
| AC-2          | Submit whitespace-only title                        | 422; no issue stored                    |
| AC-3          | Create two valid issues, then list                  | 200; both appear in ascending ID order  |
| AC-4          | Restart the application with the same database file | Previously stored issues remain         |
| AC-5          | Open `/docs`                                        | Swagger UI is returned with status 200  |

These IDs are a teaching aid inside the existing Acceptance section, not a new required artifact.

**Review checkpoint:** can a reviewer derive a test from every row without guessing? Confirm missing or wrong-type title behavior before implementation if it is relevant to the exercise.
{% endstep %}

{% step %}

### 2. DESIGN — assign responsibilities

**Prompt**

```
Execute phase 2 of AI-SDLC.
```

**Expected artifact:** a concise architecture description in `PROJECT.md`. A candidate design has this source dependency direction:

```mermaid
flowchart BT
    API["FastAPI routes"] --> APP["Application operations"]
    DB["SQLite adapter"] --> PORT["Repository port"]
    APP --> PORT
    APP --> DOMAIN["Issue and title validation"]
```

The adapter implements the port; runtime wiring connects them. Do not read the diagram as a required sequence of network calls.

**Optional ADR exercise:** compare direct persistence in routes with an application port. Record the decision as Proposed, ask the human to decide, then update the current architecture and only a relevant durable rule in `AGENTS.md`. If the boundary was already decided, reuse it rather than manufacturing another ADR.

**Review checkpoint:** can domain tests run without FastAPI or SQLite? Is the rationale recorded once?
{% endstep %}

{% step %}

### 3. DEVELOP — connect acceptance to tests and code

**Prompt**

```
Execute phase 3 of AI-SDLC.
```

**Expected artifacts:** tests and implementation for the active UC. Reference AC-1 to AC-4 in test names or descriptions where useful.

| Boundary                 | Example check                                         |
| ------------------------ | ----------------------------------------------------- |
| Domain                   | Whitespace-only title is invalid                      |
| API + persistence        | Invalid input returns 422 without inserting a row     |
| Application + repository | Created issues can be listed in the required order    |
| Persistent storage       | Data survives a fresh connection/application instance |

**Review checkpoint:** did the test fail for the intended missing behavior, rather than a broken test setup? Inspect assertions, not just the green result.

A snapshot during execution might be:

```
PHASE: 3
STATUS: in-progress
```

After verified completion, keep phase 3 and set `done`. A missing decision or unavailable dependency can instead require `blocked` with a reason.
{% endstep %}

{% step %}

### 4. VALIDATE — check the deliverable independently

**Prompt**

```
Execute phase 4 of AI-SDLC.
```

**Expected evidence:** actual commands/results, CI run link when available, container identity and an E2E create/list/restart check against an isolated test database. Choose and document the database volume for the restart test.

{% hint style="warning" %}
The template's green structure check is not a passing application test suite. Its release workflow is initially a source-release baseline, not a container build/test/publication pipeline. Complete the missing project checks; report unmet release-readiness requirements instead of declaring success.
{% endhint %}

**Review checkpoint:** can the other student reproduce the checks? Does the tested artifact correspond to the recorded source? If required validation cannot be completed, record `blocked` and the reason; do not invent evidence.
{% endstep %}

{% step %}

### 5. DEPLOY — distinguish preparation from delivery

**Prompt**

```
Execute phase 5 of AI-SDLC.
```

**Expected artifact:** the reviewed deployment workflow and its operational context. The template's enabled CD path expects deployment and smoke-test scripts; implement them for the agreed target before enabling it.

**Review checkpoint:** a verified workflow can complete the current DEPLOY skill, but does not demonstrate a live deployment. Record `Delivery: prepared; not executed` in the evidence note where that is the actual result. If the instructor authorizes a real run, also record target, artifact, workflow run and smoke-test outcome.

If no target has been selected, record the missing decision as a blocker. Never use an invented target or real credentials in the teaching material.
{% endstep %}
{% endstepper %}

## Fast Track: set the Swagger UI path

After the first API walkthrough, make a small configuration-only change to the developer-facing Swagger UI endpoint. The application API and architecture remain unchanged.

```
Use AI-SDLC Fast Track to move the FastAPI Swagger UI from /docs to /api/docs.
Keep the issue API, architecture and dependencies unchanged.
```

The acceptance criterion is: /api/docs returns the Swagger UI with status 200, while the issue API behavior remains unchanged. This is suitable as a configuration-only Fast Track example; a new custom browser UI would be a regular second use case.

## Submission and reflection

Submit one repository/PR link, not a duplicate document pack:

* `PROJECT.md` with reproducible commands and current architecture;
* the UC with acceptance criteria and meaningful test references;
* `TASKS.md` with honest phase/status and a short evidence note;
* tests, implementation and relevant CI results;
* ADR only if a consequential decision was made;
* delivery evidence, or a clear statement of what remains unexecuted.

**Discussion questions:** Which agent proposal did you reject? Which acceptance criterion exposed a defect? Could a teammate continue from the recorded state? What changed between a green local test and a validated deliverable?

The exercise illustrates the method. It does not establish empirical productivity or quality gains.


# External Tools and Services

This section provides a curated overview of **external platforms, developer tools, compute services, notebook environments, and AI-assisted development tools** that are relevant to AISL teaching, research, experimentation, and project work.

These services are **not operated by AISL** unless explicitly stated otherwise. They are included as practical references for FHNW users, collaborators, and partners exploring the broader AISL toolstack.

{% hint style="warning" %}
**Fast-changing external information:** This section is largely assembled through AI-assisted and agentic research workflows and reviewed by humans with relevant expertise. External products change too quickly for every quota, price, model, feature, and eligibility rule to be continuously maintained or manually re-verified. Always check the provider's official documentation before making technical, financial, privacy, or course-planning decisions.
{% endhint %}

## Research and compute infrastructure

### CSCS Clariden

[Clariden](https://docs.cscs.ch/clusters/clariden/) is the CSCS machine-learning cluster on Alps and provides NVIDIA Grace Hopper (GH200) compute for eligible projects, courses, workshops, and research activities.

For FHNW/AISL users with an allocation, the [CSCS Clariden](/external-tools-and-services/cscs-clariden) quick start covers account verification, signed SSH access, a minimal Slurm test, an optional GPU smoke test, uenv, and the ML Console.

### Swiss AI Research Platform / CSCS

The [Swiss AI Research Platform](https://serving.swissai.svc.cscs.ch/) is an academic LLM inference service developed as part of the Apertus project. It provides access to selected open models hosted on Swiss research infrastructure.

**Best for:** Academic experimentation with open models and Swiss AI research infrastructure.

* [Open the platform](https://serving.swissai.svc.cscs.ch/)
* [Official guides](https://serving.swissai.svc.cscs.ch/guides)
* [Official FAQ](https://serving.swissai.svc.cscs.ch/faq)

#### Chat from the FHNW network

The platform also provides its own Open WebUI-based Chat interface. For FHNW users, it is available from the **FHNW network, including via FHNW VPN**.

[Open Swiss AI Chat](https://chat.swissai.svc.cscs.ch/)

#### API key security

{% hint style="warning" %}
**Keep your API key secure.** Do not share it publicly or include it in client-side code.
{% endhint %}

#### Data collection and use

* **Request metadata:** By using the service, you consent to the collection and use of request metadata. The platform uses this information for research, capacity planning, and service operation.
* **API prompts and responses:** The API does not store prompt or response content. It retains metadata such as user ID, token counts, model, and timestamp.
* **Chat history:** The internal Chat application retains conversation history so users can return to previous chats. Chat content is not extracted and used for model training.
* **Model training:** Prompts and responses are not used to train or fine-tune models.
* **Non-commercial use only:** The service is intended for academic, non-commercial use. Commercial or startup requests should be directed through [Apertus contact](https://apertus-ai.org/contact/).

### FHNW HPC Lab / Calculon

The **FHNW HPC Lab** provides high-performance computing infrastructure for demanding applications, particularly in AI, machine learning, data science, and simulation. Its **Calculon Cluster** supports HPC research and production projects in AI and data science.

* [FHNW HPC Lab](https://www.fhnw.ch/plattformen/hpc-lab/)
* [Calculon User Guide](https://fhnw-hpc.pages.fhnw.ch/docs/)

Access, allocation, and usage conditions are managed by the FHNW HPC Lab.

## Developer, education, and experimentation resources

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>GitHub Education</strong></td><td>GitHub Pro, Copilot Student, Codespaces, and Student Developer Pack benefits.</td><td><a href="/external-tools-and-services/github-education-for-students">GitHub Education for Students</a></td></tr><tr><td><strong>JetBrains for Students</strong></td><td>Professional IDEs, educational licenses, and JetBrains AI Free.</td><td><a href="/external-tools-and-services/jetbrains-for-students">JetBrains for Students</a></td></tr><tr><td><strong>AI Coding Assistants</strong></td><td>Current free and open-source coding assistants and ongoing free service tiers.</td><td><a href="/external-tools-and-services/ai-coding-assistants">AI Coding Assistants</a></td></tr><tr><td><strong>Notebook Services</strong></td><td>Noto, RenkuLab, Kaggle, Deepnote, and Google Colab.</td><td><a href="/external-tools-and-services/notebook-services">Notebook Services</a></td></tr><tr><td><strong>Free Model and API Directories</strong></td><td>Community-maintained collections of free model and API offerings.</td><td><a href="/external-tools-and-services/free-model-and-api-directories">Free Model and API Directories</a></td></tr></tbody></table>

{% hint style="warning" %}
Before using an external service, verify its current **availability, pricing, quotas, privacy practices, model quality, licensing, and terms of use**. A service that is free today may change or may not be suitable for confidential or sensitive FHNW data.
{% endhint %}


# CSCS Clariden

Quick start for accessing CSCS Clariden and validating SSH, Slurm, Python, GPU jobs, uenv, and the ML Console.

[Clariden](https://docs.cscs.ch/clusters/clariden/) is the CSCS machine-learning cluster on Alps. FHNW/AISL users can use it when access has been allocated through a course, research project, workshop, event, or other approved activity.

## JupyterHub / JupyterLab

For interactive teaching and notebook-based experimentation, use the [Clariden JupyterHub](https://jupyter-clariden.cscs.ch/).

After signing in, select the project/account, partition, wall time, and runtime environment provided for your course or project. A tested Apertus setup used:

* Partition: `Dedicated`
* Runtime image: `nvcr.io/nvidia/pytorch:25.04-py3`
* Advanced options: left empty
* Hardware exposed to the notebook: 4 x NVIDIA GH200 120 GB

For the complete notebook workflow, see [Training Apertus on CSCS Clariden](https://docs.aisl.science/learning-and-resources/training-apertus/cscs-clariden).

When finished, stop the Jupyter server through the Hub control panel. Logging out of JupyterLab alone does not necessarily terminate the underlying Slurm allocation.

## Before you start

You need a CSCS account with MFA, access to a project or course allocation that includes Clariden, and the corresponding Slurm project/account code.

Do not share private SSH keys, passwords, CSCS credentials, Hugging Face tokens, or other secrets.

## SSH and Slurm

SSH remains useful for batch jobs, command-line workflows, and debugging outside JupyterLab.

1. Confirm your allocation at [portal.cscs.ch](https://portal.cscs.ch/).
2. Create a local SSH key if needed.
3. Sign the public key at [user-account.cscs.ch](https://user-account.cscs.ch/).
4. Use the SSH configuration provided by CSCS.
5. Connect with `ssh cscs-clariden`.
6. Run compute workloads through Slurm, not directly on the login node.

A minimal allocation check is:

```bash
srun --account=<PROJECT> hostname
```

## CSCS ML Console

The [CSCS ML Console](https://console.mlp.cscs.ch/) is useful for monitoring jobs, viewing StdOut/StdErr, browsing accessible filesystems, and submitting simple jobs. It is a companion to JupyterHub, SSH, and Slurm rather than a separate compute system.

## Related resources

* [Training Apertus on CSCS Clariden](https://docs.aisl.science/learning-and-resources/training-apertus/cscs-clariden)
* [CSCS SSH documentation](https://docs.cscs.ch/access/ssh/)
* [Clariden documentation](https://docs.cscs.ch/clusters/clariden/)
* [CSCS JupyterLab documentation](https://docs.cscs.ch/software/jupyterlab/)
* [CSCS HPC Console documentation](https://docs.cscs.ch/access/hpc-console/)


# GitHub Education for Students

Verified students can access several GitHub services for free through **GitHub Education** and the **GitHub Student Developer Pack**.

{% hint style="info" %}
**Start here:** Use your personal GitHub account, add and verify your FHNW email address, and apply for GitHub Education. GitHub may ask for additional proof of current enrollment.
{% endhint %}

## Current student benefits

| Benefit                    | What you get                                                                        |
| -------------------------- | ----------------------------------------------------------------------------------- |
| **GitHub Pro**             | Free while your student status remains verified                                     |
| **GitHub Copilot Student** | Unlimited code completions and **200 AI Credits per month** for AI-powered features |
| **GitHub Codespaces**      | **180 core hours** and **20 GB storage per month** on your personal account         |
| **Student Developer Pack** | Additional developer tools and partner offers; availability varies by provider      |

## GitHub Copilot Student

Copilot Student is the free Copilot plan for verified students.

* Code completions are **unlimited**.
* AI-powered features such as chat, agents, CLI, and related features consume your monthly **AI Credits**.
* The plan uses **automatic model selection**.

{% hint style="warning" %}
If you do not want to incur charges, do not enable paid additional usage after your included allowance is exhausted.
{% endhint %}

## GitHub Codespaces

Codespaces provides cloud-based development environments that open in your browser or in Visual Studio Code.

Verified students currently receive:

* **180 core hours per month**
* **20 GB of Codespaces storage per month**

The allowance applies to Codespaces used through your **personal GitHub account**. Compute usage depends on the size of the selected virtual machine.

## How to activate your benefits

1. Create or use your **personal GitHub account**.
2. Add and verify your **FHNW email address** in GitHub.
3. Open [GitHub Education benefits](https://github.com/settings/education/benefits) and submit a student application.
4. If requested, provide official proof of current enrollment.
5. After verification, activate **Copilot Student** from your Education benefits.
6. Explore the full [GitHub Student Developer Pack](https://education.github.com/pack).

## Official resources

* [GitHub Education for students](https://docs.github.com/en/education/about-github-education/github-education-for-students)
* [Apply to GitHub Education](https://docs.github.com/en/education/about-github-education/github-education-for-students/apply-to-github-education-as-a-student)
* [GitHub Student Developer Pack](https://education.github.com/pack)
* [GitHub Copilot plans](https://docs.github.com/en/copilot/get-started/plans)
* [GitHub Codespaces billing and included usage](https://docs.github.com/en/billing/concepts/product-billing/github-codespaces)

{% hint style="warning" %}
GitHub can change student benefits, quotas, and eligibility rules. Check the official GitHub pages if you depend on a specific benefit for a course or project.
{% endhint %}


# JetBrains for Students

Verified students can use the **JetBrains Student Pack** free of charge for non-commercial educational use. It provides access to JetBrains' professional IDEs and developer tools together with student learning resources.

{% hint style="info" %}
**Start here:** Apply with your JetBrains Account using an accepted university email address, an ISIC/ITIC card, or a verified GitHub Student Developer Pack account.
{% endhint %}

## Current student benefits

| Benefit                         | What you get                                                                                                                                                                                                    |
| ------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Professional IDEs and tools** | Free access to JetBrains IDEs and .NET tools, including IntelliJ IDEA Ultimate, PyCharm Professional, WebStorm, CLion, Rider, PhpStorm, DataGrip, GoLand, RubyMine, RustRover, DataSpell, ReSharper, and others |
| **Student license**             | Valid for 12 months and renewable annually while you remain eligible                                                                                                                                            |
| **Learning resources**          | Access to free JetBrains coding courses and learning resources                                                                                                                                                  |
| **JetBrains AI Pro trial**      | An optional **30-day trial** of the AI Pro plan                                                                                                                                                                 |
| **JetBrains AI Free**           | After the trial, eligible IDE users can continue with unlimited code completion, unlimited use of their own local models, and currently **3 AI Credits per 30 days** for cloud AI features                      |

## Who qualifies

The Student Pack is intended for **full-time students** enrolled at an accredited educational institution in a program lasting at least one year.

You can currently verify your status using one of these methods:

* an accepted **university email address**
* an **ISIC/ITIC** card
* a verified **GitHub Student Developer Pack** account

Uploaded school documents are not offered as a standalone application method.

## License conditions

* The educational license is for **non-commercial educational use**, including academic research.
* It cannot be used for commercial work, employment projects, internships, or freelance work.
* The license can be used on multiple personal computers.
* Access must be **renewed annually** while you remain eligible as a student.

## JetBrains AI

The Student Pack does **not** include an ongoing AI Pro subscription. New users can start with a **30-day AI Pro trial** and then continue on the **AI Free** plan where supported.

### AI Free includes

* **unlimited code completion** powered by JetBrains models
* **unlimited use of your own local models** through tools such as Ollama, LM Studio, or another OpenAI-compatible server
* a limited cloud-model allowance of currently **3 AI Credits per 30 days**
* access to JetBrains AI features within the limits of the Free plan

{% hint style="warning" %}
Cloud AI Credits are limited. If your monthly allowance is exhausted, cloud-based AI features pause until the next allowance becomes available unless you move to a paid plan.
{% endhint %}

## How to activate

1. Create or use your **JetBrains Account**.
2. Open the JetBrains Student Pack page and choose an eligible verification method.
3. Verify your student status.
4. Activate the educational licenses in your JetBrains Account.
5. Install the IDEs you need through JetBrains Toolbox or directly from JetBrains.
6. In a supported IDE, activate JetBrains AI if you want to use AI features.

## Official resources

* [JetBrains Student Pack](https://www.jetbrains.com/academy/student-pack/)
* [Free educational licenses FAQ](https://sales.jetbrains.com/hc/en-gb/articles/207241195-Do-you-offer-free-educational-licenses-for-students-and-teachers)
* [JetBrains AI plans and usage](https://www.jetbrains.com/help/ai-assistant/licensing-and-subscriptions.html)
* [JetBrains AI FAQ](https://lp.jetbrains.com/ai-ides-faq/)

{% hint style="warning" %}
JetBrains can change eligibility rules, AI quotas, and included products. Check the official JetBrains pages if you depend on a specific benefit for a course or project.
{% endhint %}


# AI Coding Assistants

This page highlights AI coding assistants that are useful for **teaching, experimentation, prototyping, software development, and evaluation of agentic coding workflows**. Some are relevant primarily to students; others are part of the broader tool landscape used by developers and project teams.

The key distinction is whether the **tool itself is free** or whether the provider also includes **free model usage**.

{% hint style="warning" %}
Free plans, limits, supported models, and terms can change. A free editor or extension does **not** automatically mean that the underlying AI model is free. Verify current conditions with the provider before relying on a tool for a course or project.
{% endhint %}

## Free and open-source tools

These tools have no software subscription fee. Depending on the setup, you may still need your own model API access or a local model.

### Cline

[Cline](https://cline.bot/) is an open-source coding agent available as a VS Code extension and CLI. It can read and edit files, run commands, and use MCP servers.

**Cost:** The Cline software is free for individual developers. AI inference is separate: you can bring your own API key or use Cline's inference service on a usage basis.

**Free model promotions:** Users with a Cline account may periodically receive access to selected models at no cost, up to a limited usage quota. These promotions rotate and are available for a limited time only, so the specific models and quotas can change. After the free quota is used, you can continue by switching to another available model, using your own API key, or using paid inference.

**Best for:** Agentic coding in VS Code with flexible model choice and MCP support.

* [Cline](https://cline.bot/)
* [Cline free models](https://docs.cline.bot/getting-started/free-models)
* [Cline pricing](https://cline.bot/pricing)

### OpenCode

[OpenCode](https://opencode.ai/) is an open-source coding agent for the terminal, desktop, and IDEs. It supports many model providers and can also use local models.

**Cost:** The OpenCode software is free and open source. Model access is separate. OpenCode sometimes offers free hosted models, but these can be temporary and should not be treated as a permanent quota.

**Best for:** Model-agnostic coding workflows in the terminal, desktop, or IDE.

* [OpenCode](https://opencode.ai/)
* [OpenCode documentation](https://opencode.ai/docs)

## Ongoing free service tiers

These providers currently offer a $0 tier or an education-based free entitlement without a fixed short trial period. Usage limits and included models can change.

### GitHub Copilot Student

Verified students can use **GitHub Copilot Student** for free while their student status remains verified. It currently includes unlimited code completions and 200 AI Credits per month.

**Best for:** Students working with GitHub and Visual Studio Code.

[GitHub Education for Students](/external-tools-and-services/github-education-for-students)

### JetBrains AI Free

Students with an active JetBrains educational IDE license can use **JetBrains AI Free** after the optional AI Pro trial. It currently includes unlimited code completion, unlimited use of your own local models, and **3 AI Credits per 30 days** for cloud AI features.

**Best for:** Students using IntelliJ IDEA Ultimate, PyCharm Professional, or other JetBrains IDEs through the Student Pack.

[JetBrains for Students](/external-tools-and-services/jetbrains-for-students)

### Kiro Free

[Kiro](https://kiro.dev/) explicitly describes its Free tier as **perpetual**. The current plan includes **50 credits per month** and access to selected open-weight models and Claude Sonnet 4.5, subject to rate limits.

**Best for:** Trying an agentic development environment with a clearly defined ongoing free allowance.

* [Kiro](https://kiro.dev/)
* [Kiro pricing](https://kiro.dev/pricing/)

### Cursor Hobby

[Cursor](https://cursor.com/) currently offers a **Hobby** plan for $0 with no credit card required. It includes limited Agent usage plus Chat and Tab completions using the Auto model.

**Best for:** Evaluating an AI-focused code editor with a free entry tier.

* [Cursor](https://cursor.com/)
* [Cursor pricing](https://cursor.com/pricing)

### Devin Desktop (formerly Windsurf)

[Devin Desktop](https://windsurf.com/editor) is the current name of the Windsurf editor. Its current **Free** plan is $0, and the provider currently advertises unlimited access to its SWE-1.7 model on the free tier.

**Best for:** Evaluating an AI-first editor and agent workflow without starting with a paid plan.

* [Devin Desktop / Windsurf](https://windsurf.com/editor)

## Choosing a tool

| Tool                   | Software cost                  | Included AI usage                                                             | Good starting point for         |
| ---------------------- | ------------------------------ | ----------------------------------------------------------------------------- | ------------------------------- |
| **Cline**              | Free / open source             | Limited-time rotating free-model promotions; otherwise BYOK or paid inference | VS Code + agents + MCP          |
| **OpenCode**           | Free / open source             | Bring your own or local model; temporary free hosted models may exist         | Terminal, desktop, IDE          |
| **Copilot Student**    | Free for verified students     | 200 AI Credits/month + unlimited completions                                  | GitHub + VS Code                |
| **JetBrains AI Free**  | Free with eligible IDE license | 3 AI Credits/30 days + unlimited code completion and local models             | JetBrains IDEs                  |
| **Kiro Free**          | $0 perpetual tier              | 50 credits/month                                                              | Agentic development environment |
| **Cursor Hobby**       | $0 current tier                | Limited included usage                                                        | AI-first editor                 |
| **Devin Desktop Free** | $0 current tier                | Current free SWE-1.7 access                                                   | AI-first editor and agents      |

{% hint style="info" %}
For formal course work, use the tool and model access recommended by the instructor where a specific software environment or AISL model access is provided.
{% endhint %}


# Notebook Services

Browser-based notebook platforms can be useful for teaching, exercises, data analysis, and machine-learning experiments without requiring students to configure a local environment.

{% hint style="warning" %}
These are **external services** and are not operated by AISL or FHNW. Free plans, compute quotas, hardware availability, privacy practices, and terms can change. Check the provider's current conditions before relying on a service for a course or project.
{% endhint %}

## Noto (EPFL)

[Noto](https://noto.epfl.ch/) is EPFL's centralized JupyterLab platform for education. It runs entirely in the browser and supports Python, R, C, JavaScript, and Octave.

**Free resources:** Standard Noto provides free computing for teaching and learning. EPFL currently documents a maximum allocation of **4 GB RAM and 2 CPUs per user**. GPU-enabled GNoto resources are separate and provided on request for suitable courses.

**Access:** FHNW users can sign in with a **SWITCH edu-ID linked to their FHNW organizational identity**. Noto is open to users from Swiss universities in the SWITCH network.

**Best for:** Course exercises, demonstrations, assignments, and lightweight Jupyter-based teaching with almost no setup.

* [Open Noto](https://noto.epfl.ch/)
* [EPFL Noto information](https://www.epfl.ch/education/educational-initiatives/cede/teaching-interactively/jupyter-notebooks-for-education/one-click-access-to-jupyter-notebooks-online-with-noto/)

## RenkuLab

[RenkuLab](https://renkulab.io/) is a collaborative data-science platform developed by the Swiss Data Science Center. It connects code, data, compute, and browser-based development environments such as Jupyter and VS Code.

**Free resources:** Creating projects and running sessions in the **public compute tier is free**. The available resource classes can change with the platform configuration. Public sessions currently auto-pause after about **2 hours of inactivity** and are shut down after **2 weeks** if not resumed.

**Access:** Accounts can be created using **SWITCH edu-ID**, GitHub, or ORCID.

**Best for:** Reproducible projects that combine notebooks, repositories, datasets, collaboration, and configurable compute.

* [Open RenkuLab](https://renkulab.io/)
* [Renku documentation](https://docs.renkulab.io/)

## Kaggle Notebooks

[Kaggle](https://www.kaggle.com/) provides hosted notebooks with free CPU and accelerator resources alongside datasets, models, competitions, and learning resources.

**Free resources:** Kaggle currently documents notebook sessions of up to **12 hours for CPU/GPU** and **9 hours for TPU**, with **20 GB of autosaved working storage**. CPU sessions provide **4 CPU cores and 30 GB RAM**. Free GPU access includes NVIDIA P100-class resources; the weekly GPU quota is typically **30 hours and can sometimes be higher depending on demand**. TPU access is documented at up to **20 hours per week**.

**Access requirements:** A Kaggle account is required. **Phone verification is required for accelerator access**; Kaggle may apply additional verification requirements to some newer features or accounts. Hardware and quotas are subject to availability.

**MCP:** Kaggle also provides an official remote **Model Context Protocol (MCP) Server** for accessing Kaggle resources from compatible AI clients and agents.

**Best for:** Data-science exercises, public datasets, machine-learning experiments, competitions, and free GPU/TPU notebook workloads.

* [Open Kaggle](https://www.kaggle.com/)
* [Kaggle Notebook documentation](https://www.kaggle.com/docs/notebooks)
* [Kaggle MCP Server](https://www.kaggle.com/docs/mcp)

## Deepnote

[Deepnote](https://deepnote.com/) is a collaborative cloud notebook designed for data science, teaching, and team-based analysis.

**Free Education plan:** Students, teachers, and researchers can qualify using an institutional email address. Each member of an Education workspace currently receives **unlimited Basic-machine hours with up to 5 GB RAM and 2 vCPU**. Advanced machines and GPUs require a payment method, and the free Education plan does not include advanced compute, Scheduling, or Deepnote AI.

**Access:** Sign up and verify your **FHNW school email address** to request the Education plan.

**Best for:** Collaborative notebook teaching, group assignments, shared classroom workspaces, comments, and real-time editing.

* [Open Deepnote](https://deepnote.com/)
* [Deepnote Education](https://deepnote.com/docs/edu-overview)
* [Education plan verification](https://deepnote.com/docs/edu-verification)

## Google Colab

[Google Colab](https://colab.research.google.com/) is Google's hosted Jupyter Notebook service with free CPU access and optional GPU and TPU runtimes.

**Free resources:** Colab provides free access to GPUs and TPUs, but **does not publish fixed accelerator quotas or guarantee specific hardware**. Limits, idle timeouts, GPU/TPU types, and availability change dynamically. Free notebooks can currently run for **up to 12 hours**, depending on availability and usage patterns.

**Access:** A Google account is required. Free accelerator access is subject to Colab's dynamic usage and anti-abuse limits.

**Best for:** Quick notebook experiments, teaching examples, Google Drive integration, and occasional GPU/TPU workloads where fixed capacity is not required.

* [Open Google Colab](https://colab.research.google.com/)
* [Colab FAQ and resource limits](https://research.google.com/colaboratory/faq.html)

## Choosing a service

| Service          | Good starting point for                         | Free compute highlights                         |
| ---------------- | ----------------------------------------------- | ----------------------------------------------- |
| **Noto**         | FHNW/Swiss university teaching                  | 4 GB RAM, 2 CPUs per user; SWITCH edu-ID        |
| **RenkuLab**     | Reproducible research and project collaboration | Free public compute tier                        |
| **Kaggle**       | ML exercises and accelerator workloads          | CPU plus weekly GPU/TPU quotas                  |
| **Deepnote**     | Collaborative classroom notebooks               | Unlimited Basic-machine hours on Education plan |
| **Google Colab** | Quick experiments and examples                  | Dynamic free CPU/GPU/TPU access                 |


# Free Model and API Directories

These community-maintained directories can help you discover models and services with free access options. They are **external link collections**, not AISL recommendations.

## Awesome Free Models

A broad directory of free AI models, APIs, open-weight models, and local inference tools.

**Best for:** General discovery.

[Open directory](https://github.com/12britz/awesome-free-models)

## Free-LLM

A directory for discovering and comparing providers and models with free access options.

**Best for:** Comparing free LLM providers.

[GitHub](https://github.com/nejib1/Free-LLM) · [Live directory](https://free-llm.com/)

## awesome-freellm-apis / freellm.net

A structured collection of free LLM APIs with a companion browsing website.

**Best for:** Finding API-based model access for prototypes and experiments.

[GitHub](https://github.com/open-free-llm-api/awesome-freellm-apis) · [Live directory](https://freellm.net/)

## awesome-free-llm-apis

A directory focused on LLM APIs that advertise permanent free tiers for text inference.

**Best for:** Finding providers with ongoing free-tier offerings.

[Open directory](https://github.com/mnfst/awesome-free-llm-apis)

{% hint style="warning" %}
Availability, pricing, privacy practices, model quality, and terms can change at any time. Verify them with the provider before use.
{% endhint %}


# Events and Community

AISL-related events connect students, instructors, researchers, and external partners around applied and open AI.

## Hack Apertus

[Hack Apertus](https://hackapertus.ch/) is an open-source hackathon series centered on Apertus and open AI. Access to event-specific resources can depend on participation, the event stage, and the project.

For preparation and hands-on model adaptation, start with [Training Apertus](/learning-and-resources/training-apertus), which brings together the Kaggle SFT notebook, the text-focused Apertus checkpoint, baseline evaluation guidance, and current tooling notes.

If a course, project, or Hack Apertus allocation includes CSCS compute, use [CSCS Clariden](/external-tools-and-services/cscs-clariden) separately for SSH access, Slurm validation, GPU testing, uenv, and the ML Console.

## MAKEathon @ FHNW

[MAKEathon @ FHNW](https://makeathonfhnw.ch/) is an annual two-day event at FHNW where students, engineers, designers, and developers build AI prototypes around real company and societal challenges.

## watsonx Agentic AI Challenge Switzerland

The [watsonx Agentic AI Challenge Switzerland](https://ch.linkedin.com/company/watsonx-agentic-ai-challenge-switzerland) is an annual student challenge that brings Swiss universities and industry partners together to develop agentic AI solutions for real-world use cases.

{% hint style="info" %}
Participation, eligibility, schedules, and access to event resources are defined by the respective organizers and may change from year to year.
{% endhint %}


# About AISL

**Accountable Intelligent Systems Lab (AISL)** is part of the **Centre for Business Artificial Intelligence (CBAI)** at the **FHNW School of Business**. It researches human-centered dialogue, agentic, and hybrid AI systems, with a particular focus on accountability at the socio-technical system level.

AISL combines machine learning, generative AI, and knowledge engineering to study intelligent systems that are more reliable, verifiable, and controllable, particularly in sensitive and safety-critical settings.

## AISL Docs and the toolstack

AISL Docs provides a **public, practical view of selected tools and services** used around AISL teaching, research, prototyping, and project work. It is intended for FHNW users as well as collaborators and potential partners who want to understand the environments and technologies we work with.

The documentation intentionally focuses on **user-facing applications, learning resources, public artifacts, and selected external services** rather than internal administration or infrastructure details.

{% hint style="info" %}
**Documentation approach:** Most AISL Docs content is created through AI-assisted and agentic workflows based on precise expert instructions and human review. This approach helps us document a broad and fast-moving tool landscape. It can still contain errors or become outdated, especially where external providers change products, quotas, pricing, or terms.
{% endhint %}

## Learn more

* [AISL Research & Innovation Lab](https://aisl.science/)
* [AISL Applications](/applications)
* [External Tools and Services](/external-tools-and-services)
* [AISL on Hugging Face](https://huggingface.co/AISL-science)
* [AISL on GitHub](https://github.com/AISL-science)

## Contact

For questions about AISL applications, access, documentation corrections, or the documented toolstack, contact <engines@aisl.science>.


