{"id":28517942,"url":"https://github.com/sourcegraph/training-cody-typescript","last_synced_at":"2026-07-15T00:36:02.773Z","repository":{"id":294223253,"uuid":"984188082","full_name":"sourcegraph/training-cody-typescript","owner":"sourcegraph","description":null,"archived":false,"fork":false,"pushed_at":"2026-07-12T00:05:51.000Z","size":107,"stargazers_count":3,"open_issues_count":14,"forks_count":2,"subscribers_count":4,"default_branch":"main","last_synced_at":"2026-07-15T00:36:00.751Z","etag":null,"topics":["training-material"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sourcegraph.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-05-15T14:29:25.000Z","updated_at":"2026-02-26T00:43:00.000Z","dependencies_parsed_at":"2026-01-01T14:02:08.355Z","dependency_job_id":null,"html_url":"https://github.com/sourcegraph/training-cody-typescript","commit_stats":null,"previous_names":["sourcegraph/training-cody-typescript"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sourcegraph/training-cody-typescript","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcegraph%2Ftraining-cody-typescript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcegraph%2Ftraining-cody-typescript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcegraph%2Ftraining-cody-typescript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcegraph%2Ftraining-cody-typescript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sourcegraph","download_url":"https://codeload.github.com/sourcegraph/training-cody-typescript/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcegraph%2Ftraining-cody-typescript/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35485403,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-14T02:00:06.603Z","response_time":114,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["training-material"],"created_at":"2025-06-09T05:34:41.166Z","updated_at":"2026-07-15T00:36:02.756Z","avatar_url":"https://github.com/sourcegraph.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cody hands on training\nContains a number of training exercises to help engineers learn how to use Cody\n\n## Install the VS Code extension\nYou can install VS Code directly from the [VS Code extension marketplace listing](https://marketplace.visualstudio.com/items?itemName=sourcegraph.cody-ai) or by following these steps directly within VS Code:\n\nOpen VS Code editor on your local machine\nClick the Extensions icon in the Activity Bar on the side of VS Code, or use the keyboard shortcut Cmd+Shift+X (macOS) or Ctrl+Shift+X (Windows/Linux)\nType Cody AI in the search bar and click the Install button\nAfter installing, you may be prompted to reload VS Code to activate the extension\n\n## Dependencies\n\nTo install dependencies:\n```\ncurl -fsSL https://bun.sh/install | bash\n```\n\nVerify the installation by running:\n```\nbun --version\n```\n\nif bun command not found - restart shell:\n```\nsource ~/.zshrc  \n```\n\nTo run exercise files:\n```\nbun run index.ts\n```\n\nUpgrade bun\n```\nbun upgrade\n```\n\nBun can directly execute .ts and .tsx files just like vanilla JavaScript, with no extra configuration.  \nBun internally transpiles it into JavaScript then executes the file.\n\nThis project was created using `bun init` in bun v1.2.4. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.\n\n## Overview\nThis full-day workshop is designed to provide hands-on training for engineers on using Cody, Sourcegraph's AI coding assistant. The session progresses from basic concepts to advanced techniques, ensuring participants leave with practical experience they can immediately apply to their daily work.\n\n\n## Exercise Repository Structure\nThe repository contains progressive exercises in the following categories:\n\n### Stage 1: Beginner Exercises\n- **Exercise 1**: Code Explanation - Practice using Cody to understand unfamiliar code\n- **Exercise 2**: Documentation - Generate documentation for existing code\n- **Exercise 3**: Simple Generation - Use Cody to generate basic functions and utilities\n\n### Stage 2: Intermediate Exercises\n- **Exercise 1**: Debugging Workflows - Identify and fix bugs with Cody's assistance\n- **Exercise 2**: Test Generation - Create unit tests for existing functionality\n- **Exercise 3**: Code Refactoring - Improve a complex order processing system by applying refactoring techniques to enhance readability, performance, and maintainability\n\n### Stage 3: Advanced Exercises\n- **Exercise 1**: API Development \u0026 Feature Extension - Transform an existing order system into a REST API and implement new features\n- **Exercise 2**: Security Review - Identify and fix security vulnerabilities in code\n- **Exercise 3**: Performance Optimization - Analyze and improve code performance\n\n## Project structure\n```\ncody_workshop/\n├── prompts_0/\n│   └── GUIDE.md\n├── stage_1/\n│   ├── exercise_1_code_exaplanation/\n│   │   ├── README.md\n│   │   └── sample_code.ts\n│   ├── exercise_2_documentation/\n│   │   ├── README.md\n│   │   └── undocumented_code.ts\n│   └── exercise_3_simple_generation/\n│       ├── README.md\n│       └── generate_function.ts\n├── stage_2/\n│   ├── exercise_1_debugging/\n│   │   ├── README.md\n│   │   └── buggy_code.ts\n│   ├── exercise_2_test_generation/\n│   │   ├── README.md\n│   │   └── code_to_test.ts\n│   └── exercise_3_refactoring/\n│       ├── README.md\n│       └── refactor_me.ts\n├── stage_3/\n│   ├── exercise_1_api_development/\n│   │   ├── README.md\n│   │   └── complex_app.ts\n│   ├── exercise_2_security_review/\n│   │   ├── README.md\n│   │   ├── security_review.ts\n│   │   ├── setup_users_db.ts\n│   │   └── users.db\n│   └── exercise_3_performance/\n│       ├── README.md\n│       └── optimise_me.ts\n├── README.md\n├── bun.lock\n├── hello_world.ts\n├── index.ts\n├── package-lock.json\n├── package.json\n└── tsconfig.json\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsourcegraph%2Ftraining-cody-typescript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsourcegraph%2Ftraining-cody-typescript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsourcegraph%2Ftraining-cody-typescript/lists"}