Reference
Commands
Every k1ln session starts with one of five verbs. Each takes a target — a sentence, a path or a service name — and flags that shape how the AI works.
k1ln describe
Turns a sentence, a spec or an existing codebase into a shared understanding. The output is a SPEC.md that every later command reads.
--depth n How many levels of imports to follow when reading a path. --out file Where to write the result. Defaults to SPEC.md. $ k1ln describe "a habit tracker with streaks and reminders"
k1ln design
Generates flows and screens from intent, using your design tokens when it finds them. Opens a local preview you can refine in conversation.
--style name A visual direction, such as minimal, editorial or dense. --mobile Lay out for a phone viewport first. --dark Produce the dark theme alongside the light one. $ k1ln design "onboarding flow" --style minimal
k1ln architect
Proposes services, data models and boundaries, and records each decision with its trade-offs as an ADR you can accept or reject.
--from file The spec to design against. Defaults to SPEC.md. --target platform Where it will run: serverless, containers or edge. --pattern name Steer toward a pattern, such as event-driven or modular-monolith. $ k1ln architect --from SPEC.md --target serverless
k1ln code
Writes, tests and refactors inside your repo. Every run ends as a reviewable diff on its own branch — nothing is merged for you.
--tests Write or update tests, and run them before handing back. --lang name Language for new files when the repo uses several. $ k1ln code "add dark mode to settings" --tests
k1ln deploy
Builds, checks and ships a service to a preview or production environment, with canaries and automatic rollback when you ask for them.
--env name Target environment, such as staging or production. --preview Create a throwaway environment for the current branch. --canary n% Send a share of traffic to the new version before promoting it. --rollback-on-error Revert automatically if health checks fail. $ k1ln deploy api --env production --canary 10%
Global flags
--plan Show what k1ln would do, step by step, and stop. --yes Approve every step without asking. Use with care. --config file Use a config other than ./k1ln.toml. --verbose Print the agent's reasoning as it works.