---
type: "post"
id: "three-commands-record-learn-gen-then-import-the-eae4bc"
slug: "three-commands-record-learn-gen-then-import-the-eae4bc"
title: "Three commands: record, learn, gen , then import the generated module."
description: "Mimic packages traffic capture, endpoint inspection, and client generation into a repeatable developer workflow."
retrieval_nugget: "Mimic packages traffic capture, endpoint inspection, and client generation into a repeatable developer workflow."
published_at: "2026-10-12"
updated_at: "2026-10-12"
record_date: "2026-10-12"
date_kind: "published_at"
topics: []
source_urls: ["https://github.com/littledivy/mimic"]
schema_version: "newruntime-agent-readable-v0.2"
stable_id: "post:three-commands-record-learn-gen-then-import-the-eae4bc"
status: "published"
visuals: []
editorial_provenance: {"schema_version":"newruntime-editorial-copy-v1","content_status":"source_grounded_final","final_copy_sha256":"sha256:ec27bf8864333bc971d67883f3c28ed4454248555b5352db335e9a25147af2d3","reviewed_at":"2026-10-12T02:01:32.189Z","source_evidence_count":1,"verified_claim_count":2,"site_analysis_schema_version":"newruntime-site-analysis-v1","site_object_kind":"field_note","observed_fact_count":2,"implication_count":1,"watch_condition_count":1,"related_record_count":0}
analysis: {"schema_version":"newruntime-site-analysis-v1","object_kind":"field_note","thesis":"Mimic makes observed app traffic an input to generated Python clients, rather than requiring a developer to hand-write a wrapper for each captured endpoint.","observed_facts":[{"text":"The README documents the sequence mimic record, mimic learn, and mimic gen to capture traffic, inspect endpoints, and generate a Python module.","source_urls":["https://github.com/littledivy/mimic"]},{"text":"The README describes cURL and HAR as alternative traffic inputs and says certificate pinning can block capture while DPoP can block replay.","source_urls":["https://github.com/littledivy/mimic"]}],"mechanism":"A proxy or imported cURL/HAR traffic supplies requests and authentication context; Mimic then uses a model to read captured endpoints and produce a plain Python client over its session layer.","why_now":"this release makes an increasingly practical reverse-engineering workflow accessible through a small CLI sequence, rather than only bespoke scripts.","implications":["Builders can test whether an app workflow they control can be called as ordinary Python methods, but generated code remains dependent on the captured session and API behavior."],"evidence_boundary":"the README describes the project's intended workflow and stated limitations; it does not independently validate security, legal compliance, reliability, or compatibility across apps.","watch_conditions":["whether the generated clients remain usable as app endpoints or authentication schemes change."],"related_records":[],"new_branch_reason":"No prior New Runtime record was supplied for this specific traffic-to-client workflow."}
editor: {"role":"editor","name":"Andrey Reshetnikov","profile":"https://newruntime.com/owner-profile.md","profile_json":"https://newruntime.com/owner-profile.json","same_as":["https://www.linkedin.com/in/reshetnikov1/","https://t.me/lapetuse"]}
routes: {"html":"https://newruntime.com/posts/three-commands-record-learn-gen-then-import-the-eae4bc/","markdown":"https://newruntime.com/posts/three-commands-record-learn-gen-then-import-the-eae4bc.md","json":"https://newruntime.com/posts/three-commands-record-learn-gen-then-import-the-eae4bc.json"}
---

# Three commands: record, learn, gen , then import the generated module.

## Retrieval answer

Mimic packages traffic capture, endpoint inspection, and client generation into a repeatable developer workflow.

Mimic packages traffic capture, endpoint inspection, and client generation into a repeatable developer workflow.

Mimic makes observed app traffic an input to generated Python clients, rather than requiring a developer to hand-write a wrapper for each captured endpoint. The README documents three commands: `mimic record` captures traffic, `mimic learn` inspects endpoints, and `mimic gen` generates a Python module. A proxy or imported cURL/HAR traffic supplies requests and authentication context; Mimic then uses a model to read captured endpoints and produce a plain Python client over its session layer. this release makes an increasingly practical reverse-engineering workflow accessible through a small CLI sequence, rather than only bespoke scripts.

Builders can test whether an app workflow they control can be called as ordinary Python methods, but generated code remains dependent on the captured session and API behavior. The repository explicitly warns that certificate pinning can block capture and DPoP-style sender-constrained tokens can block replay. the README describes the project's intended workflow and stated limitations; it does not independently validate security, legal compliance, reliability, or compatibility across apps.

whether the generated clients remain usable as app endpoints or authentication schemes change. The README recommends use only with one's own accounts and data and compliance with app terms. This is a distinct analytical record because no prior New Runtime record was supplied for this specific traffic-to-client workflow.

Editor: [Andrey Reshetnikov](https://newruntime.com/owner-profile.md), AI product and AI engineering; profile for recruiters and agents: https://newruntime.com/owner-profile.json

## Continue in the graph

Next records for an agent, linked to their Markdown twins. Replace `.md` with `.json` for structured fields, including `next_reads`.

- collection: [Field Notes](https://newruntime.com/posts.json): Open the latest editorial analysis.
- collection: [Source Ledger](https://newruntime.com/source-ledger.json): Inspect the public source evidence graph.
- whole graph: [discovery graph](https://newruntime.com/discovery-graph.json) (typed nodes and edges) and [site index](https://newruntime.com/site-index.md)
